This commit is contained in:
salam committed 2026-01-30 15:14:25 +01:00
1 parent 3ad02457f1
commit 6f40d5df30
3 files changed
+47 -13

No files matched your search

+5
View File
@@ -28,6 +28,11 @@ class Sport extends Model
}
}
public static function getActiveSports()
{
return Sport::query()->where('is_active', 1)->pluck('id')->toArray();
}
public static function getSportForClient()
{
$sports = Client::where('id', auth()->user()->client_id)->value('sport');