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