@aware(['columns', 'tableName', 'visibleColumns', 'columnConfig', 'searchPlaceholder']) @props(['filterable', 'rows', 'sortable', 'exportable', 'searchable']) @php $request = request(); @endphp
{{-- Dynamic Pagination / Per Page --}} @if ($rows) @php $perPage = $request->per_page?? gs('paginate_number'); @endphp
@endif {{-- Order Data --}} @if ($sortable)
@php $orderByColumns = $columns->whereIn('id', $visibleColumns)->where('sortable', true)->all(); @endphp
@if($request->has('order_by_column') || $request->has('order_by')) @endif
@endif @if ($exportable) @endif @if ($columnConfig) @endif
@if ($columnConfig || $searchable || $filterable)
@if ($searchable) @endif @if ($filterable) @endif
@endif
@if ($filterable) @endif @if ($exportable) @endif @push('script-lib') @endpush @push('script') @endpush @push('style') @endpush