refactor: rename Unit Support to Heavy Equipment across views, controllers, reports, and tests

This commit is contained in:
Ray1111-aa
2026-10-24 14:37:46 +07:00
parent ce365481aa
commit a2e087771d
37 changed files with 238 additions and 238 deletions
@@ -495,7 +495,7 @@ class ActivityLogController extends Controller
$typeText = 'Semua Armada';
if ($type === 'lv' || $type === 'light_vehicle') $typeText = 'Light Vehicle';
elseif ($type === 'support' || $type === 'unit_support') $typeText = 'Unit Support';
elseif ($type === 'support' || $type === 'unit_support') $typeText = 'Heavy Equipment';
$totalKmAll = $vehicleSummaries->sum('total_km');
$totalTripsAll = $vehicleSummaries->sum('total_trips');
@@ -531,7 +531,7 @@ class ActivityLogController extends Controller
$veh?->code ?: '-',
$veh?->brand_type ?: '-',
$veh?->license_plate ?: '-',
$veh?->isLightVehicle() ? 'Light Vehicle' : 'Unit Support',
$veh?->isLightVehicle() ? 'Light Vehicle' : 'Heavy Equipment',
$veh?->ownership ?: '-',
$veh?->division ?: ($veh?->department ?: '-'),
(int) $vs->in_trips,
@@ -620,7 +620,7 @@ class ActivityLogController extends Controller
$typeText = 'Semua Armada';
if ($type === 'lv' || $type === 'light_vehicle') $typeText = 'Light Vehicle';
elseif ($type === 'support' || $type === 'unit_support') $typeText = 'Unit Support';
elseif ($type === 'support' || $type === 'unit_support') $typeText = 'Heavy Equipment';
$totalKmAll = $vehicleSummaries->sum('total_km');
$totalTripsAll = $vehicleSummaries->sum('total_trips');
@@ -660,7 +660,7 @@ class ActivityLogController extends Controller
$veh?->code ?: '-',
$veh?->brand_type ?: '-',
$veh?->license_plate ?: '-',
$veh?->isLightVehicle() ? 'Light Vehicle' : 'Unit Support',
$veh?->isLightVehicle() ? 'Light Vehicle' : 'Heavy Equipment',
$veh?->ownership ?: '-',
(int) $vs->in_trips,
(int) $vs->out_trips,