date picker fix
This commit is contained in:
1 parent
58b9abbd32
commit
1c4480b014
2 files changed
+19
-10
No files matched your search
@@ -59,13 +59,9 @@ class LoadEvents
|
|||||||
$exp_away_from = $exp_away - $accuracy;
|
$exp_away_from = $exp_away - $accuracy;
|
||||||
$exp_away_to = $exp_away + $accuracy;
|
$exp_away_to = $exp_away + $accuracy;
|
||||||
|
|
||||||
// dd($team_id, $exp_home, $exp_away);
|
$start = $filter['start_date'] ?? 0;
|
||||||
|
|
||||||
// "endDate"
|
$end = $filter['end_date'] ?? 0;
|
||||||
// "startDate"
|
|
||||||
|
|
||||||
$start = $filter['startDate'] ?? 0;
|
|
||||||
$end = $filter['endDate'] ?? 0;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* STATTISTIC DATA
|
* STATTISTIC DATA
|
||||||
|
|||||||
@@ -17,6 +17,7 @@ use Filament\Pages\Dashboard as BaseDashboard;
|
|||||||
use Filament\Pages\Dashboard\Concerns\HasFiltersForm;
|
use Filament\Pages\Dashboard\Concerns\HasFiltersForm;
|
||||||
use Filament\Schemas\Components\Section;
|
use Filament\Schemas\Components\Section;
|
||||||
use Filament\Schemas\Components\Utilities\Get;
|
use Filament\Schemas\Components\Utilities\Get;
|
||||||
|
use Filament\Schemas\Components\Utilities\Set;
|
||||||
use Filament\Schemas\Schema;
|
use Filament\Schemas\Schema;
|
||||||
|
|
||||||
class Statistic extends BaseDashboard
|
class Statistic extends BaseDashboard
|
||||||
@@ -62,12 +63,24 @@ class Statistic extends BaseDashboard
|
|||||||
->preload()
|
->preload()
|
||||||
->searchable()
|
->searchable()
|
||||||
->label('Team'),
|
->label('Team'),
|
||||||
DatePicker::make('startDate')
|
DatePicker::make('start_date')
|
||||||
->native(false)
|
->native(false)
|
||||||
->prefixIcon('phosphor-calendar'),
|
->prefixIcon('phosphor-calendar')
|
||||||
DatePicker::make('endDate')
|
->suffixAction(
|
||||||
|
Action::make('clear_start')
|
||||||
|
->icon('phosphor-x')
|
||||||
|
->color('gray')
|
||||||
|
->action(fn (Set $set) => $set('start_date', null))
|
||||||
|
),
|
||||||
|
DatePicker::make('end_date')
|
||||||
->native(false)
|
->native(false)
|
||||||
->prefixIcon('phosphor-calendar'),
|
->prefixIcon('phosphor-calendar')
|
||||||
|
->suffixAction(
|
||||||
|
Action::make('clear_end')
|
||||||
|
->icon('phosphor-x')
|
||||||
|
->color('gray')
|
||||||
|
->action(fn (Set $set) => $set('end_date', null))
|
||||||
|
),
|
||||||
])->columns(4)
|
])->columns(4)
|
||||||
->columnSpanFull(),
|
->columnSpanFull(),
|
||||||
Section::make()
|
Section::make()
|
||||||
|
|||||||
Reference in new issue
Block a user