wip
This commit is contained in:
1 parent
d39a3a1dc2
commit
1be75dfc80
2 files changed
+3
-13
No files matched your search
@@ -74,6 +74,7 @@ class LoadEventsAspGoal
|
||||
return $query->where('starttime', '<=', $end);
|
||||
})
|
||||
->get();
|
||||
|
||||
break;
|
||||
case 'all':
|
||||
$res = StatistikoEvent::when($handicap_range, function ($query) use ($handicap_range) {
|
||||
@@ -88,10 +89,7 @@ class LoadEventsAspGoal
|
||||
->get();
|
||||
|
||||
break;
|
||||
default:
|
||||
/**
|
||||
* STATISTIC DATA
|
||||
*/
|
||||
case 'none':
|
||||
$res = StatistikoEvent::when($league_id, function ($query) use ($league_id) {
|
||||
return $query->where('league_id', $league_id);
|
||||
})->when($team_id, function ($query) use ($team_id, $team_position) {
|
||||
@@ -109,8 +107,8 @@ class LoadEventsAspGoal
|
||||
return $query->where('starttime', '<=', $end);
|
||||
})
|
||||
->get();
|
||||
break;
|
||||
|
||||
break;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -96,9 +96,6 @@ class Statistic extends BaseDashboard
|
||||
Select::make('tm_player_id')
|
||||
->label('Player')
|
||||
->prefixIcon('icon-player')
|
||||
->options([
|
||||
'draft' => 'Sep Maier',
|
||||
])
|
||||
->preload()
|
||||
->searchable()
|
||||
->live(),
|
||||
@@ -166,11 +163,6 @@ class Statistic extends BaseDashboard
|
||||
]);
|
||||
}
|
||||
|
||||
public function update()
|
||||
{
|
||||
dd($this->filter);
|
||||
}
|
||||
|
||||
protected function getFooterWidgets(): array
|
||||
{
|
||||
return [
|
||||
|
||||
Reference in new issue
Block a user