@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