public function MyAccount() { $hotels = Hotel::where('publicado', '=', 1)->count(); $translados = Translado::where('publicado', '=', 1)->count(); $especiais = EventoEspecial::where('publicado', '=', 1)->count(); $passeios = Passeio::where('publicado', '=', 1)->count(); $produtos = Produto::Where('publicado', '=', 1)->orderBy('created_at', 'DESC')->take(6)->get(); return View::make('cliente.minhaconta', compact('hotels', 'translados', 'especiais', 'passeios', 'produtos')); }
/** * Remove the specified translado from storage. * * @param int $id * @return Response */ public function destroy($id) { $translado = Translado::find($id); $translado->imagens()->delete(); $translado->delete(); return Redirect::to('admin/translado/')->with('success', array('Registro deletado.')); }
/** * Remove the specified translado from storage. * * @param int $id * @return Response */ public function destroy($id) { Translado::destroy($id); return Redirect::route('translados.index'); }