{{-- A table in the theme's report style: every row its own card. Headers are strings, or ['label' => …, 'align' => 'right', 'sr' => true] for a numeric column or an actions column with no visible heading. --}} @props(['headers' => []])
@foreach ($headers as $header) @php $label = is_array($header) ? ($header['label'] ?? '') : $header; $align = is_array($header) ? ($header['align'] ?? 'left') : 'left'; $sr = is_array($header) ? ($header['sr'] ?? false) : false; @endphp @endforeach {{ $slot }}
@if ($sr) {{ $label }} @else {{ $label }} @endif