Пример #1
0
 public function create()
 {
     $city = City::all();
     $type = VehicleType::all();
     $partner = Partner::all();
     return view::make('vehicle::addVehicle', compact('city', 'type', 'partner'));
 }
Пример #2
0
 function armada()
 {
     $armada = Vehicle::where('VEHICLE_CREATEBY', '=', $this->partner_id)->get();
     $route = Route::getRoutePartner($this->partner_id);
     $city = City::all();
     $type = VehicleType::all();
     return view('travelpartner::armada.index', compact('armada', 'route', 'city', 'type'));
 }