{{-- Inputs (from x-dash-data-table): $rows Paginator $columns list of ['key'=>..., 'label'=>..., 'sortable'=>bool] $sort current sort key (component listens to a parent property) $direction 'asc' | 'desc' $selectable bool (renders the row-selection checkboxes) Slots: filters row above the toolbar (search + chips) actions right side of toolbar (e.g. "New") bulk bulk-actions bar (always rendered; you decide when to show it) row per-row content (receives $row via @scope) empty shown when paginator is empty --}}
@if (isset($filters) || isset($actions))
{{ $filters ?? '' }}
{{ $actions ?? '' }}
@endif @if (isset($bulk))
{{ $bulk }}
@endif
@if ($selectable) @endif @foreach ($columns as $col) @endforeach @forelse ($rows as $row) {{ $slot->withAttributes(['row' => $row]) }} @empty @endforelse
@if (! empty($col['sortable'])) @else {{ $col['label'] }} @endif {{ __('dashboard::dashboard.fields.actions') }}
{{ $empty ?? __('dashboard::dashboard.notifications.empty') }}
{{ $rows->links() }}