vehicle detail

This commit is contained in:
Pringgosutono
2025-09-09 13:02:52 +07:00
parent c7e0b57ad6
commit 36ec099cd9
3 changed files with 77 additions and 3 deletions

View File

@ -61,7 +61,10 @@ class MenuController extends Controller
public function view_vehicles(Request $req)
{
$data = [
$listPool = DB::select("SELECT * FROM t_conf_pool WHERE dlt IS NULL ORDER BY pool_code ASC");
$listDistribution = DB::select("SELECT * FROM t_conf_distribution_category WHERE dlt IS NULL ORDER BY dc_code ASC");
$data = [
// 'cats' => Vehicles::listCats(), // default Truck
"brands" => Vehicles::listBrands(),
"types" => Vehicles::listTypes(),
@ -73,6 +76,8 @@ class MenuController extends Controller
"is_idle_yes" => 1,
"is_available" => Devices::IS_AVAIL,
]),
"listPool" => $listPool,
"listDistribution" => $listDistribution
];
// dd($data);
return view("menu_v1.vehicles", $data);