Esempio n. 1
0
 /**
  * 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'));
 }
Esempio n. 2
0
 /**
  * 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'));
 }
Esempio n. 3
0
 /**
  * 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'));
 }
Esempio n. 4
0
 /**
  * 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'));
 }
Esempio n. 5
0
 /**
  * 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'));
 }
Esempio n. 6
0
 /**
  * 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'));
 }
Esempio n. 7
0
 /**
  * Choose the adType.
  *
  * @return Response
  */
 public function choose()
 {
     $adtypes = Adtype::all();
     return view_backend('ad.choose', compact('adtypes'));
 }
Esempio n. 8
0
 /**
  * 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'));
 }
Esempio n. 9
0
 /**
  * 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'));
 }
Esempio n. 10
0
 /**
  * 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'));
 }
Esempio n. 11
0
 /**
  * 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'));
 }
Esempio n. 12
0
 /**
  * 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'));
 }
Esempio n. 13
0
 /**
  * Show the application login form.
  *
  * @return \Illuminate\Http\Response
  */
 public function getLogin()
 {
     return view_backend('auth.login');
 }
Esempio n. 14
0
 /**
  * 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'));
 }
Esempio n. 15
0
 /**
  * Display a listing of the resource.
  *
  * @return Response
  */
 public function index()
 {
     $dashboardWidgets = Dashboardwidget::orderBy('position', 'asc')->get();
     return view_backend('dashboard', compact('dashboardWidgets'));
 }
Esempio n. 16
0
 /**
  * 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'));
 }
Esempio n. 17
0
 /**
  * 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'));
 }
Esempio n. 18
0
 /**
  * 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'));
 }