Changes to import and notifications

This commit is contained in:
Simon Pocrnjič
2025-10-13 21:14:10 +02:00
parent 0bbed64542
commit 79b3e20b02
28 changed files with 2173 additions and 438 deletions
+3 -3
View File
@@ -53,7 +53,7 @@ public function index(Client $client, Request $request)
return Inertia::render('Client/Index', [
'clients' => $query
->paginate(15)
->paginate($request->integer('perPage', 15))
->withQueryString(),
'filters' => $request->only(['search']),
]);
@@ -104,7 +104,7 @@ public function show(Client $client, Request $request)
])
->where('active', 1)
->orderByDesc('created_at')
->paginate(15)
->paginate($request->integer('perPage', 15))
->withQueryString(),
'types' => $types,
'filters' => $request->only(['search']),
@@ -158,7 +158,7 @@ public function contracts(Client $client, Request $request)
return Inertia::render('Client/Contracts', [
'client' => $data,
'contracts' => $contractsQuery->paginate(20)->withQueryString(),
'contracts' => $contractsQuery->paginate($request->integer('perPage', 20))->withQueryString(),
'filters' => $request->only(['from', 'to', 'search']),
'types' => $types,
]);