@props([ 'id' => 'dt_' . uniqid(), 'headers' => [], 'pageLength' => 10, 'order' => '[]', 'card' => true, ]) {{-- Shared DataTable used by every panel. Pass :headers and the rows as the slot. Usage: @foreach($rows as $r) ... @endforeach --}} @if($card)
@endif @foreach($headers as $h) @endforeach {{ $slot }}
{{ admin_label($h) }}
@if($card)
@endif