@props([ 'title' => '', 'subtitle' => '', 'columns' => [], 'data' => [], 'actions' => [], 'filters' => [], 'searchable' => true, 'exportable' => true, 'pagination' => null, 'emptyMessage' => 'No data available', 'loading' => false ])
@if($title)
{{ $title }}
@endif @if($subtitle)

{{ $subtitle }}

@endif
@if($searchable || !empty($filters))
@if($searchable)
@endif @if(!empty($filters)) @foreach($filters as $filter)
@endforeach @endif
@endif
@if($loading)
Loading...

Loading data...

@elseif(empty($data) && !$loading)
inbox

{{ $emptyMessage }}

@else @foreach($columns as $column) @endforeach {{ $slot }}
{{ $column['label'] }} @if($column['sortable'] ?? false) unfold_more @endif
@endif
@if($pagination) @endif