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\Schemas\Components\Utilities\Get;
|
||||||
use Filament\Support\Enums\FontWeight;
|
use Filament\Support\Enums\FontWeight;
|
||||||
use Filament\Support\Enums\VerticalAlignment;
|
use Filament\Support\Enums\VerticalAlignment;
|
||||||
|
use Filament\Support\Enums\Width;
|
||||||
use Filament\Tables\Columns\IconColumn;
|
use Filament\Tables\Columns\IconColumn;
|
||||||
use Filament\Tables\Columns\TextColumn;
|
use Filament\Tables\Columns\TextColumn;
|
||||||
use Filament\Tables\Enums\FiltersLayout;
|
use Filament\Tables\Enums\FiltersLayout;
|
||||||
@@ -223,7 +224,6 @@ class EventsTable
|
|||||||
->schema([
|
->schema([
|
||||||
Select::make(name: 'country_id')
|
Select::make(name: 'country_id')
|
||||||
->placeholder('Country')
|
->placeholder('Country')
|
||||||
->columnSpan(4)
|
|
||||||
->hiddenLabel()
|
->hiddenLabel()
|
||||||
->label('')
|
->label('')
|
||||||
->searchable()
|
->searchable()
|
||||||
@@ -243,7 +243,6 @@ class EventsTable
|
|||||||
->hiddenLabel()
|
->hiddenLabel()
|
||||||
->label('')
|
->label('')
|
||||||
->multiple()
|
->multiple()
|
||||||
->columnSpan(6)
|
|
||||||
->searchable()
|
->searchable()
|
||||||
->options(function (Get $get) {
|
->options(function (Get $get) {
|
||||||
if ($get('country_id')) {
|
if ($get('country_id')) {
|
||||||
@@ -261,29 +260,28 @@ class EventsTable
|
|||||||
})
|
})
|
||||||
->live(),
|
->live(),
|
||||||
DateRangePicker::make('starttime_period')
|
DateRangePicker::make('starttime_period')
|
||||||
->columnSpan(8)
|
|
||||||
->startPrefix('From')
|
->startPrefix('From')
|
||||||
->displayFormat('d M Y')
|
->displayFormat('d M Y')
|
||||||
->minDate(now())
|
->minDate(now())
|
||||||
->hiddenLabel()
|
->hiddenLabel()
|
||||||
->label('')
|
->label('')
|
||||||
->live(),
|
->live(),
|
||||||
Toggle::make('stars_status')
|
// Toggle::make('stars_status')
|
||||||
->hiddenLabel()
|
// ->hiddenLabel()
|
||||||
->onIcon('phosphor-star-fill')
|
// ->onIcon('phosphor-star-fill')
|
||||||
->offIcon('phosphor-star')
|
// ->offIcon('phosphor-star')
|
||||||
->offColor('gray')
|
// ->offColor('gray')
|
||||||
->live(),
|
// ->live(),
|
||||||
Action::make('resetAction')
|
// Action::make('resetAction')
|
||||||
->hiddenLabel()
|
// ->hiddenLabel()
|
||||||
->color('primary')
|
// ->color('primary')
|
||||||
->outlined()
|
// ->outlined()
|
||||||
->keyBindings(['esc', 'escape'])
|
// ->keyBindings(['esc', 'escape'])
|
||||||
->icon('phosphor-x')
|
// ->icon('phosphor-x')
|
||||||
->action(function ($livewire) {
|
// ->action(function ($livewire) {
|
||||||
$livewire->resetTableFiltersForm(); // Clears all filters
|
// $livewire->resetTableFiltersForm(); // Clears all filters
|
||||||
$livewire->tableSearch = ''; // Clears the main search bar
|
// $livewire->tableSearch = ''; // Clears the main search bar
|
||||||
}),
|
// }),
|
||||||
])
|
])
|
||||||
->query(function (Builder $query, array $data): Builder {
|
->query(function (Builder $query, array $data): Builder {
|
||||||
return $query
|
return $query
|
||||||
@@ -321,9 +319,9 @@ class EventsTable
|
|||||||
}
|
}
|
||||||
);
|
);
|
||||||
})
|
})
|
||||||
->columns(20)->columnSpan(20),
|
->columns(1)->columnSpan(1),
|
||||||
], layout: FiltersLayout::AboveContent)
|
], layout: FiltersLayout::Modal)
|
||||||
->filtersFormColumns(6)
|
->filtersFormWidth(Width::TwoExtraLarge)
|
||||||
->deferFilters(false)
|
->deferFilters(false)
|
||||||
->persistFiltersInSession()
|
->persistFiltersInSession()
|
||||||
->recordActions([
|
->recordActions([
|
||||||
|
|||||||
@@ -96,7 +96,7 @@ class AdminPanelProvider extends PanelProvider
|
|||||||
Authenticate::class,
|
Authenticate::class,
|
||||||
])->plugins([
|
])->plugins([
|
||||||
FilamentShieldPlugin::make(),
|
FilamentShieldPlugin::make(),
|
||||||
// HooksHelperPlugin::make(),
|
HooksHelperPlugin::make(),
|
||||||
FilamentEditProfilePlugin::make()->shouldRegisterNavigation(false),
|
FilamentEditProfilePlugin::make()->shouldRegisterNavigation(false),
|
||||||
LightSwitchPlugin::make()->position(Alignment::BottomCenter),
|
LightSwitchPlugin::make()->position(Alignment::BottomCenter),
|
||||||
FilamentBackgroundsPlugin::make()
|
FilamentBackgroundsPlugin::make()
|
||||||
|
|||||||
@@ -15,9 +15,14 @@ button[wire\:click="resetTableFiltersForm"] {
|
|||||||
@apply flex-row-reverse;
|
@apply flex-row-reverse;
|
||||||
} */
|
} */
|
||||||
/* searchbox move to left */
|
/* 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%;
|
width: 100%;
|
||||||
justify-content: space-between;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* label bettypes centered */
|
/* label bettypes centered */
|
||||||
|
|||||||
@@ -1,4 +1,6 @@
|
|||||||
<div class="flex flex-row gap-3">
|
<div class="flex flex-row gap-3">
|
||||||
|
<x-filament::button icon="phosphor-x" outlined>
|
||||||
|
</x-filament::button>
|
||||||
@foreach ($bettype_toggles as $toggle)
|
@foreach ($bettype_toggles as $toggle)
|
||||||
<x-filament::button size="xs" class="flex flex-col justify-center gap-0" tooltip="{{ $toggle['name'] }}"
|
<x-filament::button size="xs" class="flex flex-col justify-center gap-0" tooltip="{{ $toggle['name'] }}"
|
||||||
wire:click="toggleBettype({{ $toggle['id'] }})" wire:dispatch="refreshTable" :color="!$toggle['is_active'] ? 'gray' : 'primary'">
|
wire:click="toggleBettype({{ $toggle['id'] }})" wire:dispatch="refreshTable" :color="!$toggle['is_active'] ? 'gray' : 'primary'">
|
||||||
|
|||||||
Reference in new issue
Block a user