This commit is contained in:
salam committed 2026-10-11 17:00:22 +02:00
1 parent db917bdc92
commit 7e0b74d79c
2 files changed
+4 -5

No files matched your search

+2 -4
View File
@@ -389,7 +389,7 @@ class PlayerPropsDrop extends Widget
$team_home_away = 'away';
}
$player_totals = SofaScorePlayerPerSeason::with('details')->where('total_min', '>', 0)->where('season', 'last_180_days')->where('ss_team_id', $team_id)->get();
$player_totals = SofaScorePlayerPerSeason::with('details')->where('total_min', '>', 0)->where('season', 'total')->where('ss_team_id', $team_id)->get();
$count_player = 0;
$tmp = [];
@@ -682,11 +682,9 @@ class PlayerPropsDrop extends Widget
public function prepareLineUp()
{
$players = SofaScorePlayerPerSeason::with('details')->where('total_min', '>', 0)->where('season', 'last_180_days')->where('ss_team_id', $this->team_id)->get();
$arr = collect();
foreach ($players as $value) {
if ($value->details->player_name == 'Thomas de Martis') {
dd($value);
}
if ($value?->details->position ?? 0) {
$arr->push([
'id' => $value->ss_player_id,