/** * Show the form for adding a new resource. * * @return Response */ public function addWithTab($widgetType, $tab) { $widgets = []; switch ($tab) { case 'search': // code... break; /* case 'upload': # code... break; */ /* case 'upload': # code... break; */ case 'api': $widgets = $this->getPaginatorFromApi($widgetType); break; default: return redirect()->route('zxadmin.widget.addWithTab', 'search'); break; } return view_backend('widget.add', compact('widgets', 'tab', 'widgetType')); }
/** * Display a listing of the resource. * * @return Response */ public function index(Request $request) { $notifications = Notification::visible()->recents(); $notifications = $this->filterNotificationsByDateRange($request, $notifications)->paginate(20); $currency = setting('currency'); return view_backend('notification.index', compact('notifications', 'currency')); }
/** * Show the form for editing the specified resource. * * @return Response */ public function index() { $setting = setting(); $currencies = Country::distinct()->where('currency', '<>', '')->groupBy('currency')->lists('currency')->toArray(); $languages = $this->getLanguages(); return view_backend('setting.index', compact('setting', 'currencies', 'languages')); }
/** * Show update files for a specific package. * * @param UpdaterRequest $request * @param string $type * * @return Response */ public function show(UpdaterRequest $request, $type = 'core') { $force = $request->has('force') && $request->force == 'true'; $this->setPackage($request, $type); $changedFiles = Updater::getChangedFiles(); $version = Updater::getPackageVersion(); return view_backend('update.component.show', compact('type', 'force', 'version', 'changedFiles')); }
/** * Show the form for editing the specified resource. * * @param int $id * * @return Response */ public function edit(Adtype $adtype) { return view_backend('adtype.edit', compact('adtype')); }
/** * Show the form for editing the specified resource. * * @param int $id * * @return Response */ public function edit(Gateway $gateway) { $attributes = json_decode($gateway->options, true); return view_backend('gateway.edit', compact('gateway', 'attributes')); }
/** * Choose the adType. * * @return Response */ public function choose() { $adtypes = Adtype::all(); return view_backend('ad.choose', compact('adtypes')); }
/** * Show the form for editing the specified resource. * * @param int $id * * @return Response */ public function edit(Page $page, $templateblock) { $selectedThemePartials = $page->themepartials->lists('id')->toArray(); return view_backend('page.edit', compact('page', 'templateblock', 'selectedThemePartials')); }
/** * Show the form for editing the specified resource. * * @param Template $template * * @return \Illuminate\Http\Response */ public function edit(Template $template) { return view_backend('template.edit', compact('template')); }
/** * Display a listing of the resource. * * @return Response */ public function index() { $countries = Country::search(Request::get('q'))->paginate(10); return view_backend('country.index', compact('countries')); }
/** * Show the form for editing the specified resource. * * @param int $id * * @return Response */ public function edit(Subscription $subscription) { $adtypes = $subscription->adtypes()->lists('number', 'adtype_id'); return view_backend('subscription.edit', compact('subscription', 'adtypes')); }
/** * Show the form for editing the specified resource. * * @param int $id * * @return Response */ public function edit(Category $category) { $codes = $category->codes; $selectedFieldsId = array_reverse($category->fields()->lists('fields.id')->toArray()); $fields = Field::whereNotIn('id', $selectedFieldsId)->get(); $parent_id = $category->parent_id; return view_backend('category.edit', compact('category', 'codes', 'fields', 'parent_id')); }
/** * Show the application login form. * * @return \Illuminate\Http\Response */ public function getLogin() { return view_backend('auth.login'); }
/** * Show the form for editing the specified resource. * * @param int $id * * @return Response */ public function edit() { $admin = $this->admin; return view_backend('profile', compact('admin')); }
/** * Display a listing of the resource. * * @return Response */ public function index() { $dashboardWidgets = Dashboardwidget::orderBy('position', 'asc')->get(); return view_backend('dashboard', compact('dashboardWidgets')); }
/** * Show the form for editing the specified resource. * * @param int $id * * @return Response */ public function edit(User $user) { $subscriptions = Subscription::has('adtypes')->get(); return view_backend('user.edit', compact('user', 'subscriptions')); }
/** * Display a listing of the resource by group. * * @return \Illuminate\Http\Response */ public function filterByGroupName($groupName) { $groups = $this->getGroups(); $menus = Menu::whereGroupName($groupName)->orderBy('lft')->get()->toHierarchy(); return view_backend('menu.index', compact('menus', 'groupName', 'groups')); }
/** * Display a listing of the resource. * * @return Response */ public function index() { $blacklist = $this->readFile(head(config('firewall.blacklist'))); $whitelist = $this->readFile(head(config('firewall.whitelist'))); return view_backend('firewall.index', compact('blacklist', 'whitelist')); }