add search and pagination at Customer maps, fix query

This commit is contained in:
Ibnu Maksum
2024-04-29 13:44:59 +07:00
parent 980af58eb1
commit b6fde35eb6
6 changed files with 113 additions and 78 deletions

View File

@ -20,7 +20,6 @@ class Paginator
}
$url .= '&p=';
$totalReq = $query->count();
$next = $page + 1;
$lastpage = ceil($totalReq / $per_page);
$lpm1 = $lastpage - 1;
$limit = $per_page;