fix add tasks

This commit is contained in:
salam committed 2026-07-02 11:23:14 +02:00
1 parent 3fc0724137
commit f08689f895
12 files changed
+151 -162

No files matched your search

@@ -48,6 +48,9 @@ class SofaScoreTaskTournamentsRelationManager extends RelationManager
Select::make('sofa_score_tournament_id')
->searchable()
->label('Tournament')
->placeholder('Select a categorie first.')
->noOptionsMessage('Select a categorie first.')
->disabled(fn (Get $get):bool => (bool) $get('sofa_score_categorie_id') ? false : true)
->options(fn (Get $get) => SofaScoreTournament::where('sport_id', $this->getOwnerRecord()['sport_id'])
->where('disabled', 0)
->where('sofa_score_categorie_id', $get('sofa_score_categorie_id'))