add paese, add ora, add personal details
This commit is contained in:
1 parent
422681df01
commit
21bfa6ecc3
9 files changed
+80
-30
No files matched your search
@@ -2,6 +2,7 @@
|
||||
|
||||
namespace App\Filament\Pages;
|
||||
|
||||
use App\Actions\LoadStatisticFixturesLeaguesOptions;
|
||||
use App\Models\CompetitionGroup;
|
||||
use App\Models\Element;
|
||||
use App\Models\StatisticFixtures;
|
||||
@@ -33,13 +34,7 @@ class Statistic extends BaseDashboard
|
||||
->schema([
|
||||
Select::make('league_id')
|
||||
->prefixIcon('phosphor-trophy')
|
||||
->options(function () {
|
||||
$res = StatisticFixtures::where('sport_id', 1)
|
||||
->groupBy('league_id')
|
||||
->pluck('league_id')->toArray();
|
||||
|
||||
return CompetitionGroup::query()->whereIn('id', $res)->orderBy('name')->pluck('name', 'id');
|
||||
})
|
||||
->options(fn () => LoadStatisticFixturesLeaguesOptions::load(1))
|
||||
->preload()
|
||||
->searchable()
|
||||
->live()
|
||||
|
||||
Reference in new issue
Block a user