@extends('layouts.master') @section('title', 'Leaderboard') @section('content')

🏆 Leaderboard

⚽ Topscorers

    @foreach($topScorers as $player)
  1. {{ $player->name }} {{ $player->goals->count() }}
  2. @endforeach

🎯 Assists

    @foreach($topAssists as $player)
  1. {{ $player->name }} {{ $player->assists->count() }}
  2. @endforeach

🟨 Gele Kaarten

    @foreach($mostYellowCards as $player) @php $count = $player->cards->where('card_type', 'geel')->count(); @endphp @if($count > 0)
  1. {{ $player->name }} {{ $count }}
  2. @endif @endforeach

🟥 Rode Kaarten

    @foreach($mostRedCards as $player) @php $count = $player->cards->where('card_type', 'rood')->count(); @endphp @if($count > 0)
  1. {{ $player->name }} {{ $count }}
  2. @endif @endforeach
@endsection