/** * Display the specified hotel. * * @param int $id * @return Response */ public function getShow($id) { $hotel = Hotel::with('imagens', 'caracteristicas')->find($id); $this->addVisita($hotel); $similar = Hotel::similares(); return View::make('hotels.show', compact('hotel'))->nest('similar_listing', 'widgets.similar_listing', array('data' => $similar, 'caminho' => 'uploads/hoteis/')); }
/** * Show the form for editing the specified pacote. * * @param int $id * @return Response */ public function edit($id) { $pacote = Pacote::with('hoteis', 'apartamentos', 'passeios', 'servicosnoturnos')->find($id); $paises = Pais::lists("name", "id"); $hoteis = Hotel::with('pais')->get(); $apartamentos = Apartamento::with('pais')->get(); $passeios = Passeio::with('pais')->get(); $servicosnoturnos = ServicoNoturno::with('pais')->get(); $pacote_hoteis = $pacote->hoteis; $angular['hoteis'] = $pacote_hoteis->map(function ($hotel) { unset($hotel->descricao_br); unset($hotel->descricao_en); return $hotel; }); return View::make('admin.pacote.edit', compact('pacote', 'paises', 'hoteis', 'apartamentos', 'passeios', 'servicosnoturnos', 'angular')); }
/** * Show the form for editing the specified hotel. * * @param int $id * @return Response */ public function edit($id) { $hotel = Hotel::with('caracteristicas')->find($id); $paises = Pais::lists("name", "id"); $caracteristicas = Caracteristica::where('publicado', '=', 1)->get(); return View::make('admin.hotel.edit', compact('hotel', 'paises', 'caracteristicas')); }
/** * Show the form for editing the specified pacote. * * @param int $id * @return Response */ public function edit($id) { $evento = EventoEspecial::with('hoteis', 'apartamentos', 'passeios', 'servicosnoturnos')->find($id); $paises = Pais::lists("name", "id"); $hoteis = Hotel::with('pais')->get(); $apartamentos = Apartamento::with('pais')->get(); $passeios = Passeio::with('pais')->get(); $servicosnoturnos = ServicoNoturno::with('pais')->get(); return View::make('admin.eventoespecial.edit', compact('evento', 'paises', 'hoteis', 'apartamentos', 'passeios', 'servicosnoturnos')); }