From e3086919b7ad2530d0e7981a1df53d2ddfbf1fce Mon Sep 17 00:00:00 2001 From: Dwi Swandhana Date: Mon, 20 Apr 2026 09:59:14 +0700 Subject: [PATCH] update --- .../views/admin/glassreport.blade.php | 77 +++++++++++++++++-- 1 file changed, 72 insertions(+), 5 deletions(-) diff --git a/htdocs/resources/views/admin/glassreport.blade.php b/htdocs/resources/views/admin/glassreport.blade.php index feb41d48..dd8100e6 100644 --- a/htdocs/resources/views/admin/glassreport.blade.php +++ b/htdocs/resources/views/admin/glassreport.blade.php @@ -6,10 +6,6 @@ overflow-x: auto; } - .glassreport-pagination nav { - display: block; - } - .glassreport-pagination .pagination { display: inline-flex; flex-wrap: wrap; @@ -34,6 +30,28 @@ line-height: 1.4; text-align: center; border-radius: 4px; + border: 1px solid #dee2e6; + background: #fff; + color: #495057; + text-decoration: none; + } + + .glassreport-pagination .page-item.active .page-link { + background: #4c5667; + border-color: #4c5667; + color: #fff; + } + + .glassreport-pagination .page-item.disabled .page-link { + color: #adb5bd; + background: #f8f9fa; + cursor: not-allowed; + } + + .glassreport-pagination .pagination-summary { + margin-bottom: 10px; + font-size: 13px; + color: #6c757d; }
@@ -80,7 +98,56 @@ @endforeach @if(method_exists($orderbydate, 'links'))
- {{ $orderbydate->links() }} +
+ Menampilkan {{ $orderbydate->firstItem() ?? 0 }} sampai {{ $orderbydate->lastItem() ?? 0 }} dari {{ $orderbydate->total() }} pemeriksaan +
+ @php + $currentPage = $orderbydate->currentPage(); + $lastPage = $orderbydate->lastPage(); + $startPage = max(1, $currentPage - 4); + $endPage = min($lastPage, $currentPage + 4); + @endphp +
    +
  • + @if($orderbydate->onFirstPage()) + Previous + @else + Previous + @endif +
  • + + @if($startPage > 1) +
  • 1
  • + @if($startPage > 2) +
  • ...
  • + @endif + @endif + + @for($page = $startPage; $page <= $endPage; $page++) +
  • + @if($page === $currentPage) + {{ $page }} + @else + {{ $page }} + @endif +
  • + @endfor + + @if($endPage < $lastPage) + @if($endPage < $lastPage - 1) +
  • ...
  • + @endif +
  • {{ $lastPage }}
  • + @endif + +
  • + @if($orderbydate->hasMorePages()) + Next + @else + Next + @endif +
  • +
@endif