/**
  * Display the specified resource.
  *
  * @param  int  $id
  * @return \Illuminate\Http\Response
  */
 public function show($id)
 {
     $cruise = Cruise::find($id);
     $cabins = Cabin::where('ship_id', $cruise->ship_id)->get();
     $port = Port::all();
     $cabin_type = Cruise_Cabin_Type::where('cruise_id', $cruise->id)->get();
     return view("pages.cruises_show", compact('cruise', 'cabins', 'port', 'cabin_type'));
 }
 public function search_result()
 {
     $searchterm = Input::get('searchterm');
     $cruises = Cruise::where('name', 'LIKE', '%' . $searchterm . '%')->get();
     //$cruises = Cruise::first();
     $port = Port::all();
     return view('partial.partial_search', ['cruises' => $cruises, 'port' => $port]);
 }
 public function create_helper_confirmation()
 {
     $cruiseid = Input::get('cruiseid');
     $cabinid = Input::get('cabinid');
     $cruise = Cruise::findOrFail($cruiseid);
     $ship = Ship::findOrFail($cruise->ship_id);
     $cabin = Cabin::where('id', $cabinid)->first();
     $port = Port::all();
     $cabin_type = Cruise_Cabin_Type::where('cruise_id', $cruise->id)->get();
     return view('partial.partial_confirmation', compact('cruise', 'ship', 'cabin', 'port', 'cabin_type'));
 }