Esempio n. 1
0
 /**
  * Show the form for editing the specified passeio.
  *
  * @param  int  $id
  * @return Response
  */
 public function edit($id)
 {
     $passeio = Passeio::find($id);
     $paises = Pais::lists("name", "id");
     return View::make('admin.passeio.edit', compact('passeio', 'paises'));
 }
Esempio n. 2
0
 /**
  * Show the form for editing the specified translado.
  *
  * @param  int  $id
  * @return Response
  */
 public function edit($id)
 {
     $translado = Translado::find($id);
     $paises = Pais::lists("name", "id");
     return View::make('admin.translado.edit', compact('translado', 'paises'));
 }
 /**
  * Show the form for editing the specified evento.
  *
  * @param  int  $id
  * @return Response
  */
 public function edit($id)
 {
     $evento = PacoteDestaque::find($id);
     $paises = Pais::lists("name", "id");
     return View::make('admin.pacotedestaque.edit', compact('evento', 'paises'));
 }
Esempio n. 4
0
 /**
  * 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'));
 }
Esempio n. 5
0
 /**
  * Show the form for editing the specified mailing.
  *
  * @param  int  $id
  * @return Response
  */
 public function edit($id)
 {
     $mailing = Mailing::find($id);
     $paises = Pais::lists("name", "id");
     return View::make('admin.mailing.edit', compact('mailing', 'paises'));
 }
Esempio n. 6
0
 /**
  * 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'));
 }
 /**
  * Show the form for editing the specified apt.
  *
  * @param  int  $id
  * @return Response
  */
 public function edit($id)
 {
     $apartamento = Apartamento::with('caracteristicas')->find($id);
     $paises = Pais::lists("name", "id");
     $caracteristicas = Caracteristica::where('publicado', '=', 1)->get();
     return View::make('admin.apartamento.edit', compact('apartamento', 'paises', 'caracteristicas'));
 }
 /**
  * Show the form for editing the specified serviconoturno.
  *
  * @param  int  $id
  * @return Response
  */
 public function edit($id)
 {
     $serviconoturno = ServicoNoturno::find($id);
     $paises = Pais::lists("name", "id");
     return View::make('admin.serviconoturno.edit', compact('serviconoturno', 'paises'));
 }