notification & notes wip

This commit is contained in:
salam committed 2026-02-01 16:36:27 +01:00
1 parent 94a3c6c472
commit 155177045b
30 files changed
+426 -320

No files matched your search

+17
View File
@@ -30,4 +30,21 @@ class OddsTable extends Model
return $arr;
}
public static function options_sport()
{
switch (auth()->user()->sport_id) {
case 1:
return OddsTable::where('soccer', 1)->pluck('fulltitle', 'id');
case 2:
return OddsTable::where('icehockey', 1)->pluck('fulltitle', 'id');
case 3:
return OddsTable::where('basketball', 1)->pluck('fulltitle', 'id');
case 5:
return OddsTable::where('tennis', 1)->pluck('fulltitle', 'id');
}
return [];
}
}