This commit is contained in:
salam committed 2026-06-18 18:46:45 +02:00
1 parent aee0a202c1
commit e94802334d
3 files changed
+8 -4

No files matched your search

+6 -1
View File
@@ -36,6 +36,11 @@ class LoadPlayer
$counting[$tm_player_id]++; $counting[$tm_player_id]++;
} }
} }
if (! $counting) {
return [];
}
$colorlevel = round(max($counting)/3); $colorlevel = round(max($counting)/3);
$arr = []; $arr = [];
@@ -43,7 +48,7 @@ class LoadPlayer
$tm_player_id = $val->tm_player_id; $tm_player_id = $val->tm_player_id;
$matches_played = isset($counting[$tm_player_id]) ? $counting[$tm_player_id] : 0; $matches_played = isset($counting[$tm_player_id]) ? $counting[$tm_player_id] : 0;
if($matches_played < $colorlevel){ if($matches_played < $colorlevel){
$arr[$val->position][$val->tm_player_id] = '<span class="text-gray-500">'.$val->name.' ('.$matches_played.')</span>'; $arr[$val->position][$val->tm_player_id] = '<span class="text-red-600">'.$val->name.' ('.$matches_played.')</span>';
} }
else if($matches_played < $colorlevel*2){ else if($matches_played < $colorlevel*2){
$arr[$val->position][$val->tm_player_id] = '<span class="text-blue-500">'.$val->name.' ('.$matches_played.')</span>'; $arr[$val->position][$val->tm_player_id] = '<span class="text-blue-500">'.$val->name.' ('.$matches_played.')</span>';
-2
View File
@@ -8,7 +8,6 @@ use App\Actions\Selections\LoadPlayer;
use App\Actions\Selections\LoadSeasons; use App\Actions\Selections\LoadSeasons;
use App\Models\Element; use App\Models\Element;
use App\Models\StatisticFixtures; use App\Models\StatisticFixtures;
use App\Models\StatistikoDetail;
use BackedEnum; use BackedEnum;
use Filament\Actions\Action; use Filament\Actions\Action;
use Filament\Forms\Components\DatePicker; use Filament\Forms\Components\DatePicker;
@@ -288,7 +287,6 @@ class Statistic extends BaseDashboard
->columnSpan([ ->columnSpan([
'default' => 1, 'default' => 1,
'sm' => 2, 'sm' => 2,
'md' => 3,
]) ])
->inline() ->inline()
->live() ->live()
+2 -1
View File
@@ -84,9 +84,10 @@ button[wire\:click="resetTableFiltersForm"] {
} }
.fi-fo-radio-label { .fi-fo-radio-label {
@apply p-2 border border-gray-200 shadow rounded-md cursor-pointer has-checked:bg-blue-50 has-checked:text-blue-900 dark:has-checked:bg-blue-950 dark:has-checked:text-blue-200 @apply p-2 border border-slate-200 dark dark:border-slate-600 shadow rounded-md cursor-pointer has-checked: bg-blue-50 has-checked:text-blue-900 dark:has-checked:bg-blue-950 dark:has-checked:text-blue-200
} }
.fi-sc-component .fi-wi-stats-overview-stat { .fi-sc-component .fi-wi-stats-overview-stat {
@apply bg-green-50 dark:bg-green-900 border border-green-300 dark:border-green-700 @apply bg-green-50 dark:bg-green-900 border border-green-300 dark:border-green-700
} }