style: Pint 포맷팅 적용
This commit is contained in:
@@ -71,10 +71,10 @@ public function list(Request $request): JsonResponse
|
||||
$search = $request->search;
|
||||
$query->where(function ($q) use ($search) {
|
||||
$q->where('driver_name', 'like', "%{$search}%")
|
||||
->orWhere('department', 'like', "%{$search}%")
|
||||
->orWhere('departure_name', 'like', "%{$search}%")
|
||||
->orWhere('arrival_name', 'like', "%{$search}%")
|
||||
->orWhere('note', 'like', "%{$search}%");
|
||||
->orWhere('department', 'like', "%{$search}%")
|
||||
->orWhere('departure_name', 'like', "%{$search}%")
|
||||
->orWhere('arrival_name', 'like', "%{$search}%")
|
||||
->orWhere('note', 'like', "%{$search}%");
|
||||
});
|
||||
}
|
||||
|
||||
@@ -233,9 +233,9 @@ public function summary(Request $request): JsonResponse
|
||||
COUNT(*) as count,
|
||||
SUM(distance_km) as total_distance
|
||||
')
|
||||
->groupBy('trip_type')
|
||||
->get()
|
||||
->keyBy('trip_type');
|
||||
->groupBy('trip_type')
|
||||
->get()
|
||||
->keyBy('trip_type');
|
||||
|
||||
$tripTypes = VehicleLog::getTripTypes();
|
||||
$result = [];
|
||||
|
||||
Reference in New Issue
Block a user