public function getTerracePage($id = null) { $terraces = TerraceLivingPage::orderBy('order_id')->get(); if ($id) { $terrace = TerraceLivingPage::find($id); } else { $terrace = null; } return View::make('admin.terrace', array('terraces' => $terraces, 'terrace' => $terrace)); }