public function passengerInfo($package, $cabin) { $chosenPackage = App\cruise_package::where('id', $package)->first(); $chosenCabin = App\cruise_cabin::where('id', $cabin)->first(); AIServer::trackEvent('redirect to passenger registration'); AIServer::flush(); return view('book.Passenger', ["package" => $package, "cabin" => $cabin, "cabin_price" => $chosenCabin->cruiseclass->price, "package_price" => $chosenPackage->price]); }
public function view($id) { $package = App\cruise_package::where('id', $id)->first(); $cruises = App\cruise::all(); $data = array("package" => $package); AIServer::trackEvent('view cruise'); AIServer::flush(); return view('admin.AdminView', $data); }