Exemplo n.º 1
0
 public function getNeighborhood()
 {
     $images = FilterImage::all();
     $filter = Filter::take(1)->get()[0];
     $filters = Filter::all();
     return View::make('site.neighborhood', array('images' => $images, 'text' => $filter->text, 'paragraph_title' => $filter->paragraph_title, 'filters' => $filters));
 }
Exemplo n.º 2
0
 public function getDutchKillsPage($id = null)
 {
     $filters = Filter::all();
     $data = array('filters' => $filters);
     $data['filterImages'] = FilterImage::all();
     if ($id) {
         $filter = Filter::find($id);
         $data['text'] = $filter->text;
         $data['paragraph_title'] = $filter->paragraph_title;
     } else {
         $data['text'] = "";
         $data['paragraph_title'] = "";
     }
     return View::make('admin.dutch-kills', $data);
 }