notification & notes wip
This commit is contained in:
1 parent
94a3c6c472
commit
155177045b
30 files changed
+426
-320
No files matched your search
@@ -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 [];
|
||||
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user