fix: resolve client-side table search limitation across all 7 paginated views with global server search and per-page selector

This commit is contained in:
Ray1111-aa
2026-10-27 13:42:40 +07:00
parent 500547116f
commit 8c41f33c19
14 changed files with 292 additions and 691 deletions
@@ -125,8 +125,13 @@ class SupportTimesheetController extends Controller
// Jika user belum mengisi filter tanggal dan ingin semua, bisa dikosongkan.
// Tapi default awal memuat hari ini agar cepat dan relevan.
$perPage = (int) $request->input('per_page', 15);
if (!in_array($perPage, [15, 50, 100])) {
$perPage = 15;
}
$query = $this->getFilteredQuery($request);
$timesheets = $query->paginate(15)->withQueryString();
$timesheets = $query->paginate($perPage)->withQueryString();
// KPI Ringkasan Data Terfilter
$statsQuery = clone $this->getFilteredQuery($request);