@props([ 'headers' => [], 'data' => [], 'searchable' => true, 'filterable' => true, 'sortable' => true, 'actions' => true, ])
{{-- Search and Filters --}}
@if($searchable) @endif @if($filterable)
@endif
{{-- Table --}}
@foreach($headers as $key => $header) @endforeach @if($actions) @endif {{ $slot }}
@if($sortable) @else {{ $header }} @endif الإجراءات