@props([ 'headers' => [], 'rows' => [], 'searchable' => false, 'searchPlaceholder' => 'Search...', 'sortable' => true, 'hoverable' => true, 'striped' => false, 'compact' => false, 'paginator' => null, ])
@if($searchable || !empty($filters))
@if($searchable) @endif @if(!empty($filters))
{{ $filters }}
@endif
@endif
@foreach($headers as $header) @endforeach {{ $slot }}
{{ $header['label'] }} @if($header['sortable'] ?? $sortable) @endif
@if($paginator && $paginator->hasPages())
Showing {{ $paginator->firstItem() }} to {{ $paginator->lastItem() }} of {{ $paginator->total() }} results
@if ($paginator->onFirstPage()) Previous @else Previous @endif
Page of {{ $paginator->lastPage() }}
@if ($paginator->hasMorePages()) Next @else Next @endif
@endif