diff --git a/backend/resources/views/admin/templates/index.blade.php b/backend/resources/views/admin/templates/index.blade.php index 63cba52..4376666 100644 --- a/backend/resources/views/admin/templates/index.blade.php +++ b/backend/resources/views/admin/templates/index.blade.php @@ -21,7 +21,7 @@ @endif - + @if (session('success'))
{{ session('success') }} @@ -67,8 +67,6 @@ {{ $template->nama_template }} {{ $template->kategori->nama ?? '-' }} - -
@forelse($template->fiturs as $f) @@ -106,15 +104,13 @@ data-name="{{ $template->nama_template }}"> Hapus -
@empty - Belum ada - template + Belum ada template @endforelse @@ -122,183 +118,106 @@
- - - - - - - @if ($templates->hasPages()) -
-
- {{-- Tombol Previous --}} - @if ($templates->onFirstPage()) - Prev - @else - Prev - @endif - - @php - $total = $templates->lastPage(); - $current = $templates->currentPage(); - @endphp - - {{-- Selalu tampilkan halaman pertama --}} - @if ($current > 2) - 1 - @if ($current > 3) - ... - @endif - @endif - - {{-- Hanya tampilkan 3 halaman di tengah --}} - @for ($i = max(1, $current - 1); $i <= min($total, $current + 1); $i++) - @if ($i == $current) - {{ $i }} - @else - {{ $i }} - @endif - @endfor - - {{-- Selalu tampilkan halaman terakhir --}} - @if ($current < $total - 1) - @if ($current < $total - 2) - ... - @endif - {{ $total }} - @endif - - {{-- Tombol Next --}} - @if ($templates->hasMorePages()) - Next - @else - Next - @endif -
-
- @endif - - @if (!isset($kategori))