Skip to content

Commit 9caf45e

Browse files
committed
refactor: use plural folder names in Inertia render paths
1 parent 517acfa commit 9caf45e

3 files changed

Lines changed: 9 additions & 9 deletions

File tree

app/Http/Controllers/Admin/Inventory/DamagedItemController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public function index(Request $request)
3030
$filters = $request->only(['search', 'status']);
3131
$damagedItems = $this->damagedItemService->getAllPaginated(10, $filters);
3232

33-
return Inertia::render('admin/Inventory/DamagedItem/Index', [
33+
return Inertia::render('admin/Inventory/DamagedItems/Index', [
3434
'damagedItems' => $damagedItems,
3535
'filters' => $filters
3636
]);

app/Http/Controllers/Admin/Inventory/ItemController.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public function index(Request $request)
2929
$filters = $request->only(['search', 'category', 'stock_status']);
3030
$items = $this->itemService->getAllPaginated(10, $filters);
3131

32-
return Inertia::render('admin/Inventory/Item/Index', [
32+
return Inertia::render('admin/Inventory/Items/Index', [
3333
'items' => $items,
3434
'filters' => $filters
3535
]);
@@ -42,7 +42,7 @@ public function create()
4242
{
4343
$suppliers = Supplier::all();
4444

45-
return Inertia::render('admin/Inventory/Item/Create', [
45+
return Inertia::render('admin/Inventory/Items/Create', [
4646
'suppliers' => $suppliers
4747
]);
4848
}
@@ -71,7 +71,7 @@ public function show(int $id)
7171
$item->load('supplier');
7272
}
7373

74-
return Inertia::render('admin/Inventory/Item/Show', [
74+
return Inertia::render('admin/Inventory/Items/Show', [
7575
'item' => $item,
7676
'supplier' => $item->supplier ?? null
7777
]);
@@ -90,7 +90,7 @@ public function edit(int $id)
9090

9191
$suppliers = Supplier::all();
9292

93-
return Inertia::render('admin/Inventory/Item/Edit', [
93+
return Inertia::render('admin/Inventory/Items/Edit', [
9494
'item' => $item,
9595
'suppliers' => $suppliers
9696
]);

app/Http/Controllers/Admin/Inventory/SupplierController.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public function index(Request $request)
2828
$filters = $request->only('search');
2929
$suppliers = $this->supplierService->getAllPaginated(10, $filters);
3030

31-
return Inertia::render('admin/Inventory/Supplier/Index', [
31+
return Inertia::render('admin/Inventory/Suppliers/Index', [
3232
'suppliers' => $suppliers,
3333
'filters' => $filters,
3434
]);
@@ -39,7 +39,7 @@ public function index(Request $request)
3939
*/
4040
public function create()
4141
{
42-
return Inertia::render('admin/Inventory/Supplier/Create');
42+
return Inertia::render('admin/Inventory/Suppliers/Create');
4343
}
4444

4545
/**
@@ -62,7 +62,7 @@ public function show(int $id)
6262
return $this->flashError('Supplier not found', 'admin.suppliers.index');
6363
}
6464

65-
return Inertia::render('admin/Inventory/Supplier/Show', [
65+
return Inertia::render('admin/Inventory/Suppliers/Show', [
6666
'supplier' => $supplier,
6767
]);
6868
}
@@ -78,7 +78,7 @@ public function edit(int $id)
7878
return $this->flashError('Supplier not found', 'admin.suppliers.index');
7979
}
8080

81-
return Inertia::render('admin/Inventory/Supplier/Edit', [
81+
return Inertia::render('admin/Inventory/Suppliers/Edit', [
8282
'supplier' => $supplier,
8383
]);
8484
}

0 commit comments

Comments
 (0)