modifications details
This commit is contained in:
1 parent
c143dcf727
commit
c1892e86aa
21 files changed
+99
-108
No files matched your search
@@ -22,7 +22,7 @@ class LoadPlayer
|
||||
|
||||
$team_id = (int) $filter['team_id'] ?? 0;
|
||||
|
||||
$tm_player_id = (int) $filter['tm_player_id'] ?? 0;
|
||||
$ss_player_id = (int) $filter['ss_player_id'] ?? 0;
|
||||
|
||||
$start = $filter['start_date'] ?? 0;
|
||||
|
||||
@@ -38,7 +38,7 @@ class LoadPlayer
|
||||
if (! $team_id) {
|
||||
return [];
|
||||
}
|
||||
if (! $tm_player_id) {
|
||||
if (! $ss_player_id) {
|
||||
return [];
|
||||
}
|
||||
|
||||
@@ -46,9 +46,9 @@ class LoadPlayer
|
||||
$statistic_type = 'gls';
|
||||
}
|
||||
|
||||
$player_name = StatistikoDetail::where('tm_player_id', (int) $tm_player_id)->value('name');
|
||||
$player_name = StatistikoDetail::where('ss_player_id', (int) $ss_player_id)->value('name');
|
||||
|
||||
$res = StatistikoPlayer::with('event')->where('tm_player_id', (int) $tm_player_id)->get();
|
||||
$res = StatistikoPlayer::with('event')->where('ss_player_id', (int) $ss_player_id)->get();
|
||||
|
||||
$labels = [];
|
||||
$datasets = [];
|
||||
|
||||
Reference in new issue
Block a user