wip fix error box 3
This commit is contained in:
1 parent
2728944c39
commit
e52722d3e1
9 files changed
+455
-119
No files matched your search
@@ -2,6 +2,7 @@
|
||||
|
||||
namespace App\Filament\Widgets;
|
||||
|
||||
use App\Filament\Widgets\Boxes\LoadPlayerAverages;
|
||||
use App\Filament\Widgets\PlayerProps\BoxNames;
|
||||
use App\Filament\Widgets\PlayerProps\Expectations;
|
||||
use App\Filament\Widgets\PlayerProps\LineUpMap;
|
||||
@@ -391,14 +392,15 @@ class PlayerPropsDrop extends Widget
|
||||
$team_home_away = 'away';
|
||||
}
|
||||
|
||||
$team_player_ids = StatistikoDetail::where('ss_team_id', $team_id)->pluck('ss_player_id')->toArray();
|
||||
// $player_totals = LoadPlayerAverages::load($team_id, 'total');
|
||||
|
||||
$team_player_ids = StatistikoDetail::where('ss_team_id', $team_id)->pluck('ss_player_id')->toArray();
|
||||
$player_totals = SofaScorePlayerPerSeason::with('details')->where('season', 'total')->whereIn('ss_player_id', $team_player_ids)->get();
|
||||
|
||||
$count_player = 0;
|
||||
$tmp = [];
|
||||
foreach ($player_totals as $key => $value) {
|
||||
$tmp[] = $value->details->ss_player_id;
|
||||
foreach ($player_totals as $ss_player_id => $value) {
|
||||
$tmp[] = $ss_player_id;
|
||||
if ($value->details != null && $value->details->position != 'GK' && (int) $value->details->is_active) {
|
||||
$count_player++;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user