@props([ 'createRoute' => null, 'tableHeading', 'createLabel' => 'Add New', 'headers' => [], 'showCreateButton' => true, 'showTableHeading' => false, 'tableSubtitle' => null, 'pagination' => '', 'headerSuffixHtml' => [], 'headerAction' => null, 'headerToolbar' => null, 'tableId' => 'example1', 'paginationClass' => '', 'emptyMessage' => null, 'emptyHint' => null, 'sortColumns' => [], 'perPageSlot' => null, 'filterRow' => null, ]) @php $hasHeaderActions = $headerAction || ($showCreateButton && $createRoute); $showCardHeader = $showTableHeading || $tableSubtitle || $headerToolbar || $hasHeaderActions; @endphp
{{ $tableSubtitle }}
@endif| !empty($sortColumns[$index])]) @if(!empty($sortColumns[$index])) data-sort-col="{{ $sortColumns[$index] }}" @endif> @if($index === 0 && isset($firstHeader)) {!! $firstHeader !!} @else {{ $header }} @endif @if(!empty($headerSuffixHtml[$index] ?? null)) {!! $headerSuffixHtml[$index] !!} @endif | @endforeach
|---|