/** * Display the specified resource. * * @param int $id * @return Response */ public function show($id) { $page = Page::findOrFail($id); $contentAreas = ContentArea::orderBy('display_order', 'Asc')->get(); $pagesAll = Page::all(); $articlesAll = Article::all(); $templatesAll = Template::all(); $contentAreasAll = ContentArea::all(); return view('site.show', compact('contentAreas', 'page', 'pagesAll', 'articlesAll', 'templatesAll', 'contentAreasAll')); }
/** * Display a listing of the resource. * * @return Response */ public function index() { $content_areas = ContentArea::orderBy('display_order', 'ASC')->get(); return view('content_area.index', compact('content_areas')); }