From b89410c8f1462e9632ad804b36312fe4717849a0 Mon Sep 17 00:00:00 2001 From: salam Date: Wed, 14 Oct 2026 13:21:09 +0200 Subject: [PATCH] wip --- app/Filament/Imports/Helper/ImportDetails.php | 4 ++-- app/Filament/Widgets/Boxes/LoadPlayerAverages.php | 5 ++--- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/app/Filament/Imports/Helper/ImportDetails.php b/app/Filament/Imports/Helper/ImportDetails.php index 3a25181e..9eb13633 100644 --- a/app/Filament/Imports/Helper/ImportDetails.php +++ b/app/Filament/Imports/Helper/ImportDetails.php @@ -11,7 +11,7 @@ class ImportDetails { public static function run(string $filePath): void { - StatistikoDetail::query()->update(['last_import' => 'no']); + // StatistikoDetail::query()->update(['last_import' => 'no']); SimpleExcelReader::create(storage_path('app/public/'.$filePath)) ->getRows() @@ -50,6 +50,6 @@ class ImportDetails ]); }); - StatistikoDetail::where('last_import', 'no')->update(['is_active' => 0, 'ss_team_id' => 0]); + // StatistikoDetail::where('last_import', 'no')->update(['is_active' => 0, 'ss_team_id' => 0]); } } diff --git a/app/Filament/Widgets/Boxes/LoadPlayerAverages.php b/app/Filament/Widgets/Boxes/LoadPlayerAverages.php index af7be922..5efaf19e 100644 --- a/app/Filament/Widgets/Boxes/LoadPlayerAverages.php +++ b/app/Filament/Widgets/Boxes/LoadPlayerAverages.php @@ -5,12 +5,13 @@ namespace App\Filament\Widgets\Boxes; use App\Models\StatistikoDetail; use App\Models\StatistikoEvent; use App\Models\StatistikoPlayer; -use Illuminate\Support\Facades\Log; class LoadPlayerAverages { public static function load(int &$team_id, string|array $season) { + // dd($team_id); + $players = StatistikoDetail::where('ss_team_id', $team_id)->get(); $player_ids = []; @@ -106,8 +107,6 @@ class LoadPlayerAverages } } - Log::debug('hall', $players->toArray()); - return $arr; }