function destroy() { $data = Input::all(); $route = Route::findRoute($data['ROUTE_ID']); $route->delete(); return back(); }
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')); }
function show($tanggal) { $route = Route::getAllRoute()->get(); $vehicle = Vehicle::all(); return view('travel::travel.listschedule', compact('tanggal', 'route', 'vehicle')); }
function jadwalUmum() { $route = Route::getRoutePartner($this->partner_id)->get(); $vehicle = Vehicle::where('PARTNER_ID', '=', $this->partner_id)->get(); return view('travelpartner::jadwal.umum_index', compact('jadwal', 'route', 'vehicle')); }