/** * Display a listing of the resource. * * @return Response */ public function index() { parent::show(); $menus = Page::where("slug", "!=", "")->orderBy("menu_sort_order")->get(); $banner = $this->banner; return $this->respond($menus, 'menus.index', compact('menus', 'banner')); }
/** * Show the form for editing the specified resource. * GET /banners/{id}/edit * * @param int $id * @return Response */ public function edit($id = NULL) { parent::show(); $banner = Banner::find($id); $path = $this->banner_path; return View::make('banners.edit', compact('banner', 'path')); }
/** * Show the form for editing the specified resource. * GET /settings/{id}/edit * * @param int $id * @return Response */ public function edit($id = NULL) { parent::show(); $banner = $this->banner; $path = "/img/settings"; $setting = Setting::find($id); return View::make('settings.edit', compact('setting', 'path', 'banner')); }
public function dash() { parent::show(); return View::make('admins.dash'); }
/** * Show the form for editing the specified resource. * * @param int $id * @return Response */ public function edit($id = NULL) { parent::show(); $page = Page::findOrFail($id); return View::make('pages.edit', compact('page')); }
/** * Show the form for editing the specified portfolio. * * @param int $id * @return Response */ public function edit($id = NULL) { parent::show(); $portfolio = Portfolio::find($id); return View::make('portfolios.edit', compact('portfolio')); }
public function create() { parent::show(); $user = new User(); return View::make('users.create', compact('user'))->withMessage("Create User"); }
/** * Show the form for editing the specified project. * * @param int $id * @return Response */ public function edit($id = NULL) { parent::show(); $project = Project::find($id); $portfolios = Portfolio::allPortfoliosSelectOptions(); $path = $this->project_uri; return View::make('projects.edit', compact('project', 'portfolios', 'path')); }