This commit is contained in:
salam committed 2026-11-01 17:21:03 +01:00
1 parent 1736ade495
commit 8d09ee514b
2 files changed
+10

No files matched your search

+7
View File
@@ -4,6 +4,7 @@ namespace App\Traits\PlayerProps;
use App\Models\StatisticFixtures;
use App\Models\StatistikoDetail;
use Illuminate\Support\Facades\Log;
trait PlayerAspg
{
@@ -59,11 +60,17 @@ trait PlayerAspg
$this->calculationVariables = [];
$collection_1 = $this->loadPartsPlayer(1, $players);
$collection_2 = $this->loadPartsPlayer(2, $players);
// dd($collection_1, $collection_2);
$filtered_part_1 = $this->filterPlayer($collection_1);
$filtered_part_2 = $this->filterPlayer($collection_2);
// Log::debug('calculationVariables', [$filtered_part_1, $filtered_part_2]);
$this->mergeData($filtered_part_1, $filtered_part_2);
$this->dispatch('update-players', players: $this->players);
+3
View File
@@ -5,6 +5,7 @@ namespace App\Traits\PlayerProps;
use App\Models\StatistikoDetail;
use App\Models\StatistikoPlayer;
use Illuminate\Support\Carbon;
use Illuminate\Support\Facades\Log;
// use Illuminate\Support\Facades\Log;
@@ -188,6 +189,8 @@ trait PlayerQuery
$this->season_selected = array_map('intval', $this->season_selected);
}
// Log::debug('season_selected',[$this->season_selected]);
return match ($part) {
1 => StatistikoPlayer::with('details')
->whereIn('ss_player_id', $player_ids)