logifurture wip
This commit is contained in:
1 parent
99b901009c
commit
a96abae35a
15 files changed
+2143
-1518
No files matched your search
@@ -3,40 +3,44 @@
|
||||
namespace App\Mapper;
|
||||
|
||||
use App\Models\Event;
|
||||
use Illuminate\Support\Carbon;
|
||||
use Illuminate\Support\Facades\Auth;
|
||||
|
||||
class LoadEvents
|
||||
{
|
||||
public static function load()
|
||||
{
|
||||
|
||||
$query = Event::query()->where('sport_id', Auth::user()->sport_id)->where('starttime', '>', Carbon::now());
|
||||
|
||||
switch (Auth::user()->provider_id) {
|
||||
case 2:
|
||||
// BETSAPI
|
||||
return Event::query()->where('sport_id', Auth::user()->sport_id)->where('betsapi_id', 0);
|
||||
return $query->where('betsapi_id', 0);
|
||||
break;
|
||||
|
||||
case 3:
|
||||
// Magloo Kenia
|
||||
return Event::query()->where('sport_id', Auth::user()->sport_id)->where('magken_id', 0);
|
||||
return $query->where('magken_id', 0);
|
||||
break;
|
||||
|
||||
case 4:
|
||||
// Magloo Nigeria
|
||||
return Event::query()->where('sport_id', Auth::user()->sport_id)->where('magnig_id', 0);
|
||||
return $query->where('magnig_id', 0);
|
||||
break;
|
||||
|
||||
case 5:
|
||||
// Logifuture Nigeria
|
||||
return Event::query()->where('sport_id', Auth::user()->sport_id)->where('lognig_id', 0);
|
||||
return $query->where('lognig_id', 0);
|
||||
break;
|
||||
|
||||
case 6:
|
||||
// Magloo Colombia
|
||||
return Event::query()->where('sport_id', Auth::user()->sport_id)->where('logcol_id', 0);
|
||||
return $query->where('logcol_id', 0);
|
||||
break;
|
||||
|
||||
default:
|
||||
return Event::query()->where('sport_id', Auth::user()->sport_id)->where('betradar_id', 0);
|
||||
return $query->where('betradar_id', 0);
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user