@extends('admin.layouts.app') @section('title', 'Maç İstatistikleri - CBL Admin Panel') @section('content')

Maç İstatistikleri

Detaylı maç ve takım istatistikleri.

@csrf
CSV Yükleme
@if ($errors->any())
{{ $errors->first() }}
@endif
Toplam Maç
{{ $stats['total_matches'] }}
Toplam Takım
{{ $stats['total_teams'] }}
Toplam Oyuncu
{{ $stats['total_players'] }}
Toplam Salon
{{ $stats['total_stadiums'] }}

Maç Türü Dağılımı

@foreach($matchStatusStats as $status => $count)
{{ ucfirst($status) }}
{{ $count }} maç
@endforeach

Takım Performansı

@forelse($teamStats as $team)
@if($team->logo) {{ $team->takim }} @else
@endif
{{ $team->takim }}
{{ $team->players_count ? $team->players_count : 0 }} oyuncu
{{ $team->matches_count ? $team->matches_count : 0 }} maç
@empty

Henüz takım bulunmuyor

@endforelse

Oyuncu İstatistikleri

Pozisyon Dağılımı

@foreach($positionStats as $position => $count)
{{ $position }} {{ $count }}
@endforeach

En Aktif Oyuncular

@forelse($topPlayers as $player)
{{ $player->isim }}
{{ $player->team ? $player->team->takim : 'Takımsız' }}
{{ $player->pozisyon }}
@empty

Henüz oyuncu bulunmuyor

@endforelse

Salon Kullanımı

@forelse($stadiumStats as $stadium)
{{ $stadium->salon }}
{{ $stadium->adres }}
{{ $stadium->matches_count ? $stadium->matches_count : 0 }} maç
@empty

Henüz salon bulunmuyor

@endforelse
@if($playedMatches->count() > 0)
@foreach($playedMatches as $match) @endforeach
Maç Skor Salon Tarih Sezon İşlemler
{{ $match->evsahibi }} vs {{ $match->misafir }}
@if($match->stadium) {{ $match->stadium->salon }} ({{ $match->stadium->adres }}) @else Salon belirtilmemiş @endif
{{ $match->evsahibiSkor ?? '-' }} - {{ $match->misafirSkor ?? '-' }}
@if($match->stadium) {{ $match->stadium->salon }} @else - @endif
{{ date('d.m.Y H:i', $match->tarih) }}
{{ $match->sezon }}
@if($playedMatches->hasPages())
{{ $playedMatches->links() }}
@endif @else

Henüz oynanmış maç bulunmuyor

Tamamlanmış maçlar burada görünecektir.

Yeni Maç Ekle
@endif
@endsection