Skip to content

Commit 95ba9b4

Browse files
committed
refactor: standardize Inertia view paths and clean up controllers
- Pluralized view paths for consistency (Billing → Billings, Delivery → Deliveries, Order → Orders)
1 parent af03d49 commit 95ba9b4

21 files changed

Lines changed: 10 additions & 9 deletions

File tree

app/Http/Controllers/Admin/BillingController.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public function index(Request $request)
2626
$filters = $request->only(['search', 'status', 'payment_method']);
2727
$billings = $this->billingService->getAllPaginated(10, $filters);
2828

29-
return Inertia::render('admin/Billing/Index', [
29+
return Inertia::render('admin/Billings/Index', [
3030
'billings' => $billings,
3131
'filters' => $filters,
3232
]);
@@ -43,7 +43,7 @@ public function show(int $id)
4343
return $this->flashError('Billing not found', 'admin.billings.index');
4444
}
4545

46-
return Inertia::render('admin/Billing/Show', [
46+
return Inertia::render('admin/Billings/Show', [
4747
'billing' => $billing
4848
]);
4949
}

app/Http/Controllers/Admin/DeliveryController.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public function index(Request $request)
2727
$filters = $request->only(['search', 'status']);
2828
$deliveries = $this->deliveryService->getAllPaginated(10, $filters);
2929

30-
return Inertia::render('admin/Delivery/Index', [
30+
return Inertia::render('admin/Deliveries/Index', [
3131
'deliveries' => $deliveries,
3232
'filters' => $filters
3333
]);
@@ -44,7 +44,7 @@ public function show(int $id)
4444
return $this->flashError('Delivery not found', 'admin.deliveries.index');
4545
}
4646

47-
return Inertia::render('admin/Delivery/Show', [
47+
return Inertia::render('admin/Deliveries/Show', [
4848
'delivery' => $delivery
4949
]);
5050
}

app/Http/Controllers/Admin/OrderController.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public function index(Request $request)
3333

3434
$orders = $this->orderService->getAllPaginated(10, $filters);
3535

36-
return Inertia::render('admin/Order/Index', [
36+
return Inertia::render('admin/Orders/Index', [
3737
'orders' => $orders,
3838
'filters' => $filters,
3939
]);
@@ -50,7 +50,7 @@ public function show(int $id)
5050
return $this->flashError('Order not found', 'admin.orders.index');
5151
}
5252

53-
return Inertia::render('admin/Order/Show', [
53+
return Inertia::render('admin/Orders/Show', [
5454
'order' => $order,
5555
]);
5656
}
File renamed without changes.
File renamed without changes.

resources/js/pages/admin/Delivery/EditDeliveryModal.vue renamed to resources/js/pages/admin/Deliveries/EditDeliveryModal.vue

File renamed without changes.
File renamed without changes.
File renamed without changes.

resources/js/pages/admin/Inventory/DamagedItem/Index.vue renamed to resources/js/pages/admin/Inventory/DamagedItems/Index.vue

File renamed without changes.

resources/js/pages/admin/Inventory/DamagedItem/MarkAsDamagedModal.vue renamed to resources/js/pages/admin/Inventory/DamagedItems/MarkAsDamagedModal.vue

File renamed without changes.

0 commit comments

Comments
 (0)