Files
RomhackPlaza/resources/views/vendor/livewire/tailwind.blade.php
Benjamin a778222564 A lot of things
- Added Database page.
- Added Xenforo API compatibility
- Added Hovercard
- Added Notifications
2026-05-24 11:47:20 +02:00

36 lines
1.1 KiB
PHP

@if ($paginator->hasPages())
<div class="database-pagination">
{{-- Précédent --}}
@if ($paginator->onFirstPage())
<button class="btn" disabled>«</button>
@else
<button class="btn" wire:click="previousPage">«</button>
@endif
{{-- Pages --}}
@foreach ($elements as $element)
@if (is_string($element))
<button class="btn" disabled>{{ $element }}</button>
@endif
@if (is_array($element))
@foreach ($element as $page => $url)
<button
class="btn {{ $page == $paginator->currentPage() ? 'active' : '' }}"
wire:click="gotoPage({{ $page }})"
>{{ $page }}</button>
@endforeach
@endif
@endforeach
{{-- Suivant --}}
@if ($paginator->hasMorePages())
<button class="btn" wire:click="nextPage">»</button>
@else
<button class="btn" disabled>»</button>
@endif
</div>
@endif