/** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function inquiry_store($slug) { $tour = Charters::where('slug', '=', $slug)->first(); $customers = Customers::first(); $booking = Booking::first(); $customers = new Customers(array($email = \Input::get('email'), $phone = \Input::get('phone'), $country = \Input::get('country'))); $bookings = new Booking(array($cust_name = \Input::get('name'), $message = \Input::get('message'))); $bookings->cust_name = $cust_name; $bookings->tour_name = $tour->name; $customers->cust_name = $cust_name; $customers->email = $email; $customers->phone = $phone; $customers->country = $country; //$bookings->tour_date = $tour_date; $bookings->price = $tour->price; //$bookings->status = $status; $bookings->save(); $customers->save(); return \Redirect::back()->with('message', 'Your inquiry has been successfully send to us.', $tour); }