@extends('Common::admin.layout.page') @section('page') {{-- ===== Match Info Grid ===== --}}

{{ __('show details') }} {{ __('View Reviews') }}

@php $statusColor = match($match->status) { 'open' => 'bg-success', 'ongoing' => 'bg-info', 'completed' => 'bg-secondary', 'cancelled' => 'bg-danger', default => '', }; @endphp
{{-- Playground (with link) --}}
{{ __('playground') }} {{ $match->playground?->Name ?: '—' }} @if($match->playground) @endif
{{-- Organizer (with link) --}}
{{ __('organizer') }} {{ $match->organizer?->name ?? __('Unknown') }}
{{$match->organizer->role->name ?? __('unknown')}} @if($match->organizer) @endif
{{-- Status --}}
{{ __('Status') }} {{ __($match->status) }}
{{-- Price --}}
{{ __('price') }} {{ number_format($match->price, 2) }} GBP
@php $infoFields = [ ['icon' => 'fas fa-calendar-alt', 'label' => __('date'), 'value' => $match->date], ['icon' => 'fas fa-trophy', 'label' => __('name'), 'value' => $match->name], ['icon' => 'fas fa-clock', 'label' => __('start time'), 'value' => $match->start_time], ['icon' => 'fas fa-clock', 'label' => __('end time'), 'value' => $match->end_time], ['icon' => 'fas fa-users', 'label' => __('subscribers'), 'value' => ($match->players_per_side * 2) . ' ' . __('players')], ['icon' => 'fas fa-venus-mars', 'label' => __('Gender'), 'value' => $match->gender], ['icon' => 'fas fa-credit-card', 'label' => __('Paid Online'), 'value' => $match->paid_online ? __('Yes') : __('No')], ]; @endphp @foreach($infoFields as $field)
{{ $field['label'] }} {{ $field['value'] ?: '—' }}
@endforeach {{-- About - full width --}} @if($match->About)
{{ __('About') }} {{ $match->About }}
@endif
{{-- ===== Subscribers Table ===== --}}

{{ __('subscribers') }}

{{-- تم تغيير اسم العمود هنا إلى Actions أو خيارات --}} @forelse($match->teamPlayers as $player) @empty @endforelse
{{ __('name') }} {{ __('mobile') }} {{ __('team side') }} {{ __('created at') }}{{ __('Actions') }}
{{ $player->name }} {{ $player->full_phone }} {{ $player->pivot->team_side }} {{ $player->pivot->created_at }} {{-- زر إظهار تفاصيل اللاعب (الجديد) --}} {{-- زر إزالة اللاعب من الماتش --}}
@csrf @method('DELETE')
{{ __('there is no data') }}
@stop