@props([
'headers' => [],
'striped' => true,
'empty' => null,
])
merge(['class' => 'cmu-card p-0 overflow-hidden']) }}>
@if(count($headers) > 0)
@foreach($headers as $h)
@php
$isArray = is_array($h);
$label = $isArray ? ($h['label'] ?? '') : (string) $h;
$align = $isArray ? ($h['align'] ?? 'left') : 'left';
$width = $isArray ? ($h['width'] ?? null) : null;
@endphp
|
{{ $label }}
|
@endforeach
@endif
{{ $slot }}
@if($empty !== null)
{{ $empty }}
@endif