{{-- resources/views/components/admin/data-table.blade.php --}} {{-- Reusable Bootstrap table wrapper with headers and a slot for rows --}} {{-- Props: headers (array of column labels) --}} @props(['headers' => []])
@if(count($headers)) @foreach($headers as $header) @endforeach @endif {{ $slot }}
{{ $header }}