@if ($this->searchable)
@endif
@if ($this->canSaveSearches && $this->hasSearchApplied)
Save Search
@endif
@if (count($this->tableFilters) && $this->filterable)
Filters
@if ($this->activeFiltersCount)
({{ $this->activeFiltersCount }})
@endif
@endif
@if (count($this->savedSearches) && $this->canSaveSearches)
@foreach ($this->savedSearches as $savedSearch)
$this->savedSearch == $savedSearch['key'],
])>
{{ $savedSearch['label'] }}
@if ($this->savedSearch == $savedSearch['key'])
@endif
@endforeach
@endif
@if (count($this->rows))
@if (count($this->bulkActions))
@endif
@foreach ($this->columns as $column)
@livewire(
'lunar.livewire-tables.components.head',
[
'heading' => $column->getHeading(),
'sortable' => $column->isSortable(),
'field' => $column->field,
'sortField' => $sortField,
'sortDir' => $sortDir,
],
key($column->field),
)
@endforeach
@if (count($this->actions))
@endif
@foreach ($this->rows as $row)
@if ($this->bulkActions->count())
@endif
@foreach ($this->columns as $column)
@if ($column->isLivewire())
@elseif($column->isViewComponent())
@else
{{ $column->record($row)->render() }}
@endif
@endforeach
@if (count($this->actions))
@endif
@endforeach
@else
@endif