Example #1
0
 /**
  * Display a listing of the resource.
  * GET /portfolios
  *
  * @return Response
  */
 public function index($society)
 {
     if (Helpers::perm('admin', $society) or Helpers::perm('edit', $society)) {
         $data['society'] = $society;
         $data['portfolios'] = Portfolio::where('society_id', '=', $society)->orderBy('portfolio')->get();
         return View::make('portfolios.index', $data);
     } else {
         return view('shared.unauthorised');
     }
 }
Example #2
0
 public function index()
 {
     return view('home.index', ['services' => Service::where('on_the_home', 1)->orderBy('weight')->get(), 'portfolios' => Portfolio::where('on_the_home', 1)->orderBy('weight')->get()]);
 }