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

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

@php $fields = [ ['icon' => 'fas fa-tag', 'label' => __('Name'), 'value' => $playground->Name, 'color' => ''], ['icon' => 'fas fa-city', 'label' => __('City'), 'value' => $playground->City, 'color' => ''], ['icon' => 'fas fa-user-tie', 'label' => __('Owner'), 'value' => $playground->Owner, 'color' => ''], ['icon' => 'fas fa-th-large', 'label' => __('Category'), 'value' => $playground->category?->name,'color' => ''], ['icon' => 'fas fa-leaf', 'label' => __('Grass Type'), 'value' => $playground->Grass_Type, 'color' => ''], ['icon' => 'fas fa-lock-open', 'label' => __('Accessibility'), 'value' => $playground->Accessibility, 'color' => ''], ['icon' => 'fas fa-phone', 'label' => __('Telephone'), 'value' => $playground->Telephone, 'color' => ''], ['icon' => 'fas fa-envelope', 'label' => __('Email'), 'value' => $playground->Email, 'color' => ''], ['icon' => 'fas fa-map-marker-alt', 'label' => __('Address'), 'value' => $playground->Address, 'color' => ''], ['icon' => 'fas fa-compass', 'label' => __('Latitude'), 'value' => $playground->Latitude, 'color' => ''], ['icon' => 'fas fa-compass', 'label' => __('Longitude'), 'value' => $playground->Longitude, 'color' => ''], ['icon' => 'fas fa-toggle-on', 'label' => __('Status'), 'value' => __($playground->status), 'color' => $playground->status === 'active' ? 'bg-success' : ($playground->status === 'inactive' ? 'bg-danger' : 'bg-warning')], ]; @endphp
@foreach($fields as $field)
{{ $field['label'] }} {{ $field['value'] ?: '—' }}
@endforeach {{-- About - full width --}} @if($playground->About)
{{ __('About') }} {{ $playground->About }}
@endif
{{-- ===== Match Tables ===== --}}

{{ __('Match History') }}

@forelse($historyMatches as $match) @empty @endforelse
{{ __('Match ID') }} {{ __('name') }} {{ __('date') }} {{ __('Status') }} {{ __('Action') }}
{{ $match->id }} {{ $match->name }} {{ $match->date }} {{ $match->Time }} {{ __($match->status) }} {{ __('Show') }}
{{ __('No history matches found') }}

{{ __('Upcoming Matches') }}

@forelse($upcomingMatches as $match) @empty @endforelse
{{ __('Match ID') }} {{ __('name') }} {{ __('date') }} {{ __('Status') }} {{ __('Action') }}
{{ $match->id }} {{ $match->name }} {{ $match->date }} {{ $match->Time }} {{ __($match->status) }} {{ __('Show') }}
{{ __('No upcoming matches found') }}
@stop