{{-- Admin pagination wrapper --}}
@props([
    'paginator',
    'position' => 'bottom',
])

@if($paginator->hasPages())
    @php
        $borderClass = $position === 'top'
            ? 'border-b border-gray-200 dark:border-gray-700'
            : 'border-t border-gray-200 dark:border-gray-700';
    @endphp
    <nav class="surface-panel-alt px-6 py-4 {{ $borderClass }}" aria-label="Pagination">
        {{ $paginator->onEachSide(5)->links() }}
    </nav>
@endif
