/** * Show the application dashboard to the user. * * @return Response */ public function index(General $general) { $theme = $general->theme(); $theme['title'] = 'Home'; $theme['description'] = 'main page of admin panel'; return view('admin.dashboard', compact('theme')); }
/** * Show the form for editing the specified resource. * * @param int $id * @return Response */ public function edit(General $general, Group $group) { $theme = $general->theme(); $roles = Role::orderBy('level')->lists('name', 'id'); $theme['title'] = 'Edit Group'; $theme['description'] = 'edit group entry'; $button_text = 'Update Group'; return view('admin.group.edit', compact('theme', 'group', 'roles', 'button_text')); }
/** * Display a listing of the resource. * * @return Response */ public function index(General $general) { $theme = $general->theme(); $settings = Setting::first(); $languages = ['1' => 'Georgian', '2' => 'English', '3' => 'Russian']; $modes = ['1' => 'Up', '2' => 'Down']; $theme['title'] = 'Settings'; $theme['description'] = 'here you set website settings'; $button_text = "Update Settings"; return view('admin.settings.index', compact('theme', 'settings', 'languages', 'modes', 'button_text')); }
/** * Show the form for creating a new resource. * * @return Response */ public function create(General $general, Request $request) { $theme = $general->theme(); $menu = Menu::find($request['menu']); $menus = null; if (!$menu) { $menus = Menu::all()->lists('name_en', 'id'); } $content = new Content(); $types = ['0' => '---']; foreach (ContentType::all()->lists('name', 'id') as $key => $value) { array_push($types, $value); } $theme['title'] = 'Create Content'; $theme['description'] = 'description for content creation'; $button_text = 'Create Content'; return view('admin.content.create', compact('theme', 'menu', 'menus', 'content', 'types', 'button_text')); }
/** * Show the form for editing the specified resource. * * @param int $id * @return Response */ public function edit(General $general, Menu $menu) { $theme = $general->theme(); $menuLocations = MenuLocation::orderBy('id')->lists('name_en', 'id'); $menuStatuses = MenuStatus::orderBy('id')->lists('name_en', 'id'); $theme['title'] = 'Edit Menu'; $theme['description'] = 'edit menu entry'; $button_text = 'Update Menu'; return view('admin.menu.edit', compact('theme', 'menu', 'menuLocations', 'menuStatuses', 'button_text')); }
/** * Display a listing of the resource. * * @return Response */ public function index(General $general) { $theme = $general->theme(); return view('admin.filemanager.index', compact('theme')); }
/** * Show the form for editing the specified resource. * * @param int $id * @return Response */ public function edit(General $general, User $user) { $theme = $general->theme(); if ($user->id == Auth::user()->id) { return redirect('/admin/user/' . $user->id); } dd($user); $roles = Role::orderBy('level')->lists('name', 'id'); $theme['title'] = 'Edit User'; $theme['description'] = 'edit user entry'; $button_text = 'Update User'; return view('admin.group.edit', compact('theme', 'group', 'roles', 'button_text')); }