diff --git a/app/Filament/Resources/Events/Tables/EventsTable.php b/app/Filament/Resources/Events/Tables/EventsTable.php index e47a117c..bd99847d 100644 --- a/app/Filament/Resources/Events/Tables/EventsTable.php +++ b/app/Filament/Resources/Events/Tables/EventsTable.php @@ -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([ diff --git a/app/Providers/Filament/AdminPanelProvider.php b/app/Providers/Filament/AdminPanelProvider.php index ee1f2068..a25c154c 100644 --- a/app/Providers/Filament/AdminPanelProvider.php +++ b/app/Providers/Filament/AdminPanelProvider.php @@ -96,7 +96,7 @@ class AdminPanelProvider extends PanelProvider Authenticate::class, ])->plugins([ FilamentShieldPlugin::make(), - // HooksHelperPlugin::make(), + HooksHelperPlugin::make(), FilamentEditProfilePlugin::make()->shouldRegisterNavigation(false), LightSwitchPlugin::make()->position(Alignment::BottomCenter), FilamentBackgroundsPlugin::make() diff --git a/resources/css/filament/admin/theme.css b/resources/css/filament/admin/theme.css index 4fa59e8a..19e20da4 100644 --- a/resources/css/filament/admin/theme.css +++ b/resources/css/filament/admin/theme.css @@ -15,9 +15,14 @@ button[wire\:click="resetTableFiltersForm"] { @apply flex-row-reverse; } */ /* searchbox move to left */ -.fi-ta-header-toolbar>*:nth-child(2) { +.fi-ta-header-toolbar> :nth-child(2) { + justify-content: center; + width: 100%; +} + +.fi-ta-filter-indicators { + justify-content: center; width: 100%; - justify-content: space-between; } /* label bettypes centered */ diff --git a/resources/views/livewire/bettype-toggle.blade.php b/resources/views/livewire/bettype-toggle.blade.php index 260b6b9a..6582a3b1 100644 --- a/resources/views/livewire/bettype-toggle.blade.php +++ b/resources/views/livewire/bettype-toggle.blade.php @@ -1,4 +1,6 @@
+ + @foreach ($bettype_toggles as $toggle) diff --git a/todo.md b/todo.md index cf17e627..5d982099 100644 --- a/todo.md +++ b/todo.md @@ -12,4 +12,8 @@ - [x] stars in frontend - [x] txodds last call -- [x] logifuture production grapper \ No newline at end of file +- [x] logifuture production grapper + + +- [ ] Find Fixture +- [ ] Event Filter Indicators and reset button \ No newline at end of file