@props([ 'headers', 'data', 'actions' => true, 'searchable' => true, 'pagination' => null ])

{{ $title ?? 'Data Table' }}

@if($searchable)
@endif
@foreach($headers as $header) @endforeach @if($actions) @endif {{ $slot }}
{{ $header['label'] }} @if(isset($header['sortable']) && $header['sortable']) @endif Actions
@if($pagination)
{{ $pagination }}
@endif