function generate_vehicle_reports() { $vehicles = vehicle::all(); return view('Pick-up_&_Drop-off_System_Views.P & D-Admin.Generate vehicle reports', compact('vehicles')); }
public function AddVehicleLegal() { $vehicles = vehicle::all(); return view('Pick-up_&_Drop-off_System_Views.P & D-Admin.Add new V legal info', compact('vehicles')); }
public function SalesUnpaid() { $vehicle = vehicle::all(); return view('Reports.sales_unpaid')->with('vehicles', $vehicle); }
public function history_view(Request $request) { $id = $request->input('id'); $loadMain = loadMain::find($id); $vehicle = vehicle::find($loadMain->vehicle_id); $loadItems = DB::select(DB::raw("Select A.*,\n (SELECT CONCAT( (SELECT C.product_name FROM `products` C where C.id = B.pro_id), '-',B.sub_name) FROM `sub_products` B where B.id = A.sub_product_id) as pro_name\n from `load_items` A where A.load_main_id ='{$id}'")); return view('LoadUnload.historyview')->with('vehicle', $vehicle)->with('loadMain', $loadMain)->with('loadItems', $loadItems); }
public function customer_sales() { $customers = customer::all(); $vehicles = vehicle::all(); $docs = TempDocs::where('user_id', $this->userid)->get(); foreach ($docs as $d) { File::delete($d->doc_path); TempDocs::destroy($d->id); } return view('Sales.customerSales')->with('customers', $customers)->with('vehicles', $vehicles); }