@props(['headers' => []]) {{-- Reusable table shell. Pass $headers array; provide rows via the default slot, and optional toolbar via the "toolbar" slot. --}}
merge(['class' => 'data-table-wrap']) }}> @isset($toolbar)
{{ $toolbar }}
@endisset
@if(count($headers)) @foreach($headers as $h)@endforeach {{-- escaped: headers are static developer strings --}} @endif {{ $slot }}
{{ $h }}