@extends('layouts.app') @section('title', 'Jadwal Piala Dunia 2026') @push('css') @endpush @section('content')
@if(session('success'))
{{ session('success') }}
@endif @if(session('error'))
{{ session('error') }}
@endif {{-- Filters --}}
{{-- Matches Table --}}
@if($matches->count() > 0) @foreach($matches as $match) @endforeach
ID Grup Tim Rumah Skor Tim Tamu Tanggal Waktu Stadion Status Aksi
#{{ $match->id }} @if($match->round && $match->round !== 'group') {{ ucfirst(str_replace('_', ' ', $match->round)) }} @else {{ $match->group_name ? 'Grup ' . $match->group_name : '-' }} @endif {{ $match->home_team_code ? $match->home_team_code : '' }} {{ $match->home_team }} {{ $match->home_score ?? '-' }} - {{ $match->away_score ?? '-' }} {{ $match->away_team_code ? $match->away_team_code : '' }} {{ $match->away_team }} {{ $match->match_date ? \Carbon\Carbon::parse($match->match_date)->format('d M Y') : '-' }} {{ $match->match_time ?? '-' }} {{ $match->stadium ?? '-' }} @if($match->city)
{{ $match->city }} @endif
@php $statusClass = 'badge-scheduled'; $statusLabel = 'Dijadwalkan'; if(($match->status ?? '') === 'live') { $statusClass = 'badge-live'; $statusLabel = 'Live'; } elseif(($match->status ?? '') === 'completed') { $statusClass = 'badge-completed'; $statusLabel = 'Selesai'; } @endphp {{ $statusLabel }}
@else

Belum ada data pertandingan.

@endif
{{-- Modal Add/Edit --}} @endsection @push('js') @endpush