Exemple #1
0
 /**
  * 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'));
 }
Exemple #2
0
 /**
  * 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'));
 }
Exemple #3
0
 /**
  * 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'));
 }
Exemple #4
0
 public function dash()
 {
     parent::show();
     return View::make('admins.dash');
 }
Exemple #5
0
 /**
  * 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'));
 }
Exemple #6
0
 /**
  * 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'));
 }
Exemple #7
0
 public function create()
 {
     parent::show();
     $user = new User();
     return View::make('users.create', compact('user'))->withMessage("Create User");
 }
Exemple #8
0
 /**
  * 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'));
 }