@extends('layouts.app')
@section('title', 'Jadwal Lengkap Piala Dunia 2026')
@section('content')
{{-- ============================================
HEADER AD SLOT
============================================ --}}
@include('partials.ad-slot', ['position' => 'header'])
{{-- ============================================
PAGE HEADER
============================================ --}}
@foreach(['A','B','C','D','E','F','G','H'] as $groupLetter)
@if(isset($matches[$groupLetter]) && $matches[$groupLetter]->isNotEmpty())
{{ $groupLetter }}
Grup {{ $groupLetter }}
@foreach($matches[$groupLetter] as $match)
{{ \Carbon\Carbon::parse($match->match_date)->format('H:i') }}
{{ \Carbon\Carbon::parse($match->match_date)->format('d M Y') }}
{{ $match->home_flag_emoji ?? '' }}
{{ $match->home_team ?? '-' }}
@if($match->status === 'completed' || $match->status === 'finished')
{{ $match->home_score ?? 0 }} - {{ $match->away_score ?? 0 }}
@else
VS
@endif
{{ $match->away_team ?? '-' }}
{{ $match->away_flag_emoji ?? '' }}
{{ $match->stadium ?? '' }}{{ !empty($match->city) ? ', ' . $match->city : '' }}
@if($match->status === 'live')
LIVE
@elseif($match->status === 'completed' || $match->status === 'finished')
Selesai
@else
Jadwal
@endif
@endforeach
@endif
@endforeach
{{-- ============================================
TAB: KNOCKOUT
============================================ --}}
{{-- BETWEEN matches ad slot --}}
@include('partials.ad-slot', ['position' => 'between_matches'])
{{-- Babak 16 Besar --}}
@if(isset($knockout['round_of_16']) && $knockout['round_of_16']->isNotEmpty())
Babak 16 Besar
@foreach($knockout['round_of_16'] as $match)
Babak 16 Besar
{{ \Carbon\Carbon::parse($match->match_date)->format('d M Y, H:i') }}
{{ $match->home_flag_emoji ?? '' }}
{{ $match->home_team ?? '-' }}
@if($match->status === 'completed' || $match->status === 'finished')
{{ $match->home_score ?? 0 }}
-
{{ $match->away_score ?? 0 }}
@else
VS
@endif
{{ $match->away_flag_emoji ?? '' }}
{{ $match->away_team ?? '-' }}
{{ $match->stadium ?? '' }}{{ !empty($match->city) ? ', ' . $match->city : '' }}
@if($match->status === 'live')
LIVE
@elseif($match->status === 'completed' || $match->status === 'finished')
Selesai
@else
Jadwal
@endif
@endforeach
@endif
{{-- Perempat Final --}}
@if(isset($knockout['quarter_final']) && $knockout['quarter_final']->isNotEmpty())
Perempat Final
@foreach($knockout['quarter_final'] as $match)
Perempat Final
{{ \Carbon\Carbon::parse($match->match_date)->format('d M Y, H:i') }}
{{ $match->home_flag_emoji ?? '' }}
{{ $match->home_team ?? '-' }}
@if($match->status === 'completed' || $match->status === 'finished')
{{ $match->home_score ?? 0 }}
-
{{ $match->away_score ?? 0 }}
@else
VS
@endif
{{ $match->away_flag_emoji ?? '' }}
{{ $match->away_team ?? '-' }}
{{ $match->stadium ?? '' }}{{ !empty($match->city) ? ', ' . $match->city : '' }}
@if($match->status === 'live')
LIVE
@elseif($match->status === 'completed' || $match->status === 'finished')
Selesai
@else
Jadwal
@endif
@endforeach
@endif
{{-- Semi Final --}}
@if(isset($knockout['semi_final']) && $knockout['semi_final']->isNotEmpty())
Semi Final
@foreach($knockout['semi_final'] as $match)
Semi Final
{{ \Carbon\Carbon::parse($match->match_date)->format('d M Y, H:i') }}
{{ $match->home_flag_emoji ?? '' }}
{{ $match->home_team ?? '-' }}
@if($match->status === 'completed' || $match->status === 'finished')
{{ $match->home_score ?? 0 }}
-
{{ $match->away_score ?? 0 }}
@else
VS
@endif
{{ $match->away_flag_emoji ?? '' }}
{{ $match->away_team ?? '-' }}
{{ $match->stadium ?? '' }}{{ !empty($match->city) ? ', ' . $match->city : '' }}
@if($match->status === 'live')
LIVE
@elseif($match->status === 'completed' || $match->status === 'finished')
Selesai
@else
Jadwal
@endif
@endforeach
@endif
{{-- Perebutan Juara 3 --}}
@if(isset($knockout['third_place']) && $knockout['third_place']->isNotEmpty())
Perebutan Juara 3
@foreach($knockout['third_place'] as $match)
Perebutan Juara 3
{{ \Carbon\Carbon::parse($match->match_date)->format('d M Y, H:i') }}
{{ $match->home_flag_emoji ?? '' }}
{{ $match->home_team ?? '-' }}
@if($match->status === 'completed' || $match->status === 'finished')
{{ $match->home_score ?? 0 }}
-
{{ $match->away_score ?? 0 }}
@else
VS
@endif
{{ $match->away_flag_emoji ?? '' }}
{{ $match->away_team ?? '-' }}
{{ $match->stadium ?? '' }}{{ !empty($match->city) ? ', ' . $match->city : '' }}
@if($match->status === 'live')
LIVE
@elseif($match->status === 'completed' || $match->status === 'finished')
Selesai
@else
Jadwal
@endif
@endforeach
@endif
{{-- Final --}}
@if(isset($knockout['final']) && $knockout['final']->isNotEmpty())
Final
@foreach($knockout['final'] as $match)
FINAL
{{ \Carbon\Carbon::parse($match->match_date)->format('d M Y, H:i') }}
{{ $match->home_flag_emoji ?? '' }}
{{ $match->home_team ?? '-' }}
@if($match->status === 'completed' || $match->status === 'finished')
{{ $match->home_score ?? 0 }}
-
{{ $match->away_score ?? 0 }}
@else
VS
@endif
{{ $match->away_flag_emoji ?? '' }}
{{ $match->away_team ?? '-' }}
{{ $match->stadium ?? '' }}{{ !empty($match->city) ? ', ' . $match->city : '' }}
@if($match->status === 'live')
LIVE
@elseif($match->status === 'completed' || $match->status === 'finished')
Selesai
@else
Jadwal
@endif
@endforeach
@endif
{{-- ============================================
FOOTER AD SLOT
============================================ --}}
@include('partials.ad-slot', ['position' => 'footer'])
@endsection
{{-- ============================================
PAGE-SPECIFIC CSS
============================================ --}}
@push('css')
@endpush
{{-- ============================================
TAB TOGGLE SCRIPT
============================================ --}}
@push('js')
@endpush