{{-- x-table Two supported shapes: 1. Legacy/table-wrapper: ...full markup... (what every existing list screen uses) 2. Header-driven: pass :headers="[...]" and put only rows in the slot. Props: - headers: array of column headings (optional) - empty: message shown when there are no rows (header-driven shape only) - total: total record count for the footer (optional) --}} @props(['headers' => [], 'empty' => null, 'total' => null]) @if($headers !== [])
merge(['class' => 'table-responsive']) }}>
@foreach($headers as $header) @endforeach {{ $slot }}
{{ $header }}
@else
merge(['class' => 'table-responsive']) }}> {{ $slot }}
@endif @if($total !== null) @endif