public function create() { $locations = Location::orderBy('name_eng', 'asc')->lists('name_eng', 'id'); $sub_locations = Sub_location::orderBy('name_eng', 'asc')->lists('name_eng', 'id'); $addresses = Address::orderBy('name_eng', 'asc')->lists('name_eng', 'id'); $car_types = Car_type::select(DB::raw("name_eng || ' (max ' || max_passengers || ' passengers)' AS car_type, id"))->lists('car_type', 'id'); return view('booking.create')->with(['car_types' => $car_types, 'locations' => $locations, 'sub_locations' => $sub_locations, 'addresses' => $addresses]); }
public function addresses() { $addresses = Address::orderBy('city_name', 'asc')->get(); return view('scrapers.addresses')->with(['addresses' => $addresses]); }