@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
{{-- Kişisel istatistik --}}

İstatistiklerim

Tüm gruplardaki kayıtlı maçlardan hesaplanır.

@php $cards = [ ['label' => 'Oynadığın Maç', 'value' => $stats['played'], 'icon' => '🏟️'], ['label' => 'Kazanma Oranı', 'value' => '%'.$stats['winRate'], 'icon' => '📈'], ['label' => 'Attığın Gol', 'value' => $stats['goals'], 'icon' => '⚽'], ['label' => 'Aldığın MVP Oyu', 'value' => $stats['mvpVotes'], 'icon' => '🏆'], ]; @endphp @foreach ($cards as $card)
{{ $card['label'] }} {{ $card['icon'] }}
{{ $card['value'] }}
@endforeach
{{-- Saha profilleri (grup başına) --}}

Saha Profilim

Her grupta oynadığın pozisyonları, tercih ettiğin ayağı ve forma numaranı buradan ayarlayabilirsin.

@forelse ($players as $player)
@php $ovr = $player->overall(); @endphp @if ($player->overallIsPublic()) {{ number_format($ovr, 1) }} @else ? @endif
{{ $player->group->name }}
@foreach ($player->positions ?? [] as $i => $pos) {{ count($player->positions) > 1 ? ($i + 1).'·' : '' }}{{ $pos }} @endforeach 🦶 {{ $player->footBadge() }} @if ($player->shirt_number) #{{ $player->shirt_number }} @endif
@if ($editingPlayerId !== $player->id) Düzenle @endif
@if ($editingPlayerId === $player->id)
Pozisyonlar — tıklama sırası önceliği belirler. Kaleci başka pozisyonlarla birleşebilir.
@foreach (Attributes::POSITIONS as $code => $label) @php $rank = array_search($code, $posOrder, true); @endphp @endforeach
Kaydet Vazgeç
@endif
@empty

Henüz bir gruba ait oyuncu kaydın yok. Bir gruba katılınca burada görünecek.

@endforelse