wip
This commit is contained in:
1 parent
bc1ca5bdea
commit
b01e7c98fc
5 files changed
+35
-26
No files matched your search
@@ -33,6 +33,7 @@ use Filament\Forms\Components\Toggle;
|
||||
use Filament\Schemas\Components\Utilities\Get;
|
||||
use Filament\Support\Enums\FontWeight;
|
||||
use Filament\Support\Enums\VerticalAlignment;
|
||||
use Filament\Support\Enums\Width;
|
||||
use Filament\Tables\Columns\IconColumn;
|
||||
use Filament\Tables\Columns\TextColumn;
|
||||
use Filament\Tables\Enums\FiltersLayout;
|
||||
@@ -223,7 +224,6 @@ class EventsTable
|
||||
->schema([
|
||||
Select::make(name: 'country_id')
|
||||
->placeholder('Country')
|
||||
->columnSpan(4)
|
||||
->hiddenLabel()
|
||||
->label('')
|
||||
->searchable()
|
||||
@@ -243,7 +243,6 @@ class EventsTable
|
||||
->hiddenLabel()
|
||||
->label('')
|
||||
->multiple()
|
||||
->columnSpan(6)
|
||||
->searchable()
|
||||
->options(function (Get $get) {
|
||||
if ($get('country_id')) {
|
||||
@@ -261,29 +260,28 @@ class EventsTable
|
||||
})
|
||||
->live(),
|
||||
DateRangePicker::make('starttime_period')
|
||||
->columnSpan(8)
|
||||
->startPrefix('From')
|
||||
->displayFormat('d M Y')
|
||||
->minDate(now())
|
||||
->hiddenLabel()
|
||||
->label('')
|
||||
->live(),
|
||||
Toggle::make('stars_status')
|
||||
->hiddenLabel()
|
||||
->onIcon('phosphor-star-fill')
|
||||
->offIcon('phosphor-star')
|
||||
->offColor('gray')
|
||||
->live(),
|
||||
Action::make('resetAction')
|
||||
->hiddenLabel()
|
||||
->color('primary')
|
||||
->outlined()
|
||||
->keyBindings(['esc', 'escape'])
|
||||
->icon('phosphor-x')
|
||||
->action(function ($livewire) {
|
||||
$livewire->resetTableFiltersForm(); // Clears all filters
|
||||
$livewire->tableSearch = ''; // Clears the main search bar
|
||||
}),
|
||||
// Toggle::make('stars_status')
|
||||
// ->hiddenLabel()
|
||||
// ->onIcon('phosphor-star-fill')
|
||||
// ->offIcon('phosphor-star')
|
||||
// ->offColor('gray')
|
||||
// ->live(),
|
||||
// Action::make('resetAction')
|
||||
// ->hiddenLabel()
|
||||
// ->color('primary')
|
||||
// ->outlined()
|
||||
// ->keyBindings(['esc', 'escape'])
|
||||
// ->icon('phosphor-x')
|
||||
// ->action(function ($livewire) {
|
||||
// $livewire->resetTableFiltersForm(); // Clears all filters
|
||||
// $livewire->tableSearch = ''; // Clears the main search bar
|
||||
// }),
|
||||
])
|
||||
->query(function (Builder $query, array $data): Builder {
|
||||
return $query
|
||||
@@ -321,9 +319,9 @@ class EventsTable
|
||||
}
|
||||
);
|
||||
})
|
||||
->columns(20)->columnSpan(20),
|
||||
], layout: FiltersLayout::AboveContent)
|
||||
->filtersFormColumns(6)
|
||||
->columns(1)->columnSpan(1),
|
||||
], layout: FiltersLayout::Modal)
|
||||
->filtersFormWidth(Width::TwoExtraLarge)
|
||||
->deferFilters(false)
|
||||
->persistFiltersInSession()
|
||||
->recordActions([
|
||||
|
||||
Reference in new issue
Block a user