Filter starttime differences
This commit is contained in:
1 parent
d58d543583
commit
24c085e663
6 files changed
+50
No files matched your search
@@ -5,6 +5,7 @@ namespace App\Filament\Resources\Events;
|
||||
use App\Filament\Resources\Events\Pages\ListEvents;
|
||||
use App\Filament\Resources\Events\Schemas\EventForm;
|
||||
use App\Filament\Resources\Events\Tables\EventsTable;
|
||||
use App\Filament\Resources\Events\Tables\Tools\LoadClientStartimeDifference;
|
||||
use App\Filament\Resources\Events\Tables\Tools\LoadPartnerDifferences;
|
||||
use App\Models\Event;
|
||||
use App\Models\EventBookmaker;
|
||||
@@ -89,6 +90,11 @@ class EventResource extends Resource
|
||||
$query->whereIn('id', $event_ids);
|
||||
}
|
||||
|
||||
if (auth()->user()->starttime_differences) {
|
||||
$event_ids = LoadClientStartimeDifference::load();
|
||||
$query->whereIn('id', $event_ids);
|
||||
}
|
||||
|
||||
if (auth()->user()->bookmaker_partner_differences == 1) {
|
||||
$a = EventBookmaker::where('bookmaker_id', auth()->user()->bookmaker_id)
|
||||
->where('sport_id', auth()->user()->sport_id)
|
||||
|
||||
Reference in new issue
Block a user