@php use App\Support\Attributes; $tier = fn (float $o) => $o >= 8 ? 'text-gold' : ($o >= 6.5 ? 'text-[#7DE39A]' : ($o >= 5 ? 'text-pitch-ink' : 'text-pitch-muted')); @endphp
← {{ $group->name }}

Oyuncuları Puanla

Puanların anonim — kimseye kimin ne verdiği gösterilmez. İstediğin zaman dönüp güncelleyebilirsin; ortalamalar kadro dengelemesinde kullanılır.

{{-- Oyuncu listesi --}}
@forelse ($players as $player) @empty

Puanlayacak başka oyuncu yok.

@endforelse
{{-- Puanlama formu --}}
@if ($selected)

{{ $selected->name }}

SENİN VERDİĞİN GENEL {{ number_format(Attributes::overall($scores, $selected->positions ?? []), 1) }}
@php // Genel özellikler herkes için; pozisyon sırasına göre kaleci/defans/orta saha/forvet bölümleri eklenir $sections = [['GENEL ÖZELLİKLER', Attributes::GENERAL]]; foreach ($selected->positions ?? [] as $pos) { if ($pos === 'KL') { $sections[] = ['KALECİ ÖZELLİKLERİ', Attributes::GK]; } elseif (isset(Attributes::SPEC[$pos])) { $sections[] = [Attributes::POSITIONS[$pos].' ÖZELLİKLERİ', Attributes::SPEC[$pos]]; } } @endphp @foreach ($sections as [$sectionTitle, $attrs])
{{ $sectionTitle }}
@foreach ($attrs as $key => $label)
{{ $label }} {{ $scores[$key] ?? 5 }}
@endforeach
@endforeach
Puanları Kaydet @if ($saved) Kaydedildi ✓ @endif
@else
Soldaki listeden bir oyuncu seç ve özelliklerini 1-10 arası puanla.
@endif