@extends('admin.layout') @section('title', __('admin.places')) @section('content')
{{-- Header --}}

{{ __('admin.places_title') }}

{{ __('admin.places_subtitle') }}

{{-- Filters --}}
@if(request()->hasAny(['search', 'category_id'])) {{ __('admin.clear') }} @endif
{{-- Table --}}
@forelse($places as $place) @empty @endforelse
{{ __('admin.place') }} {{ __('admin.category') }} {{ __('admin.rating') }} {{ __('admin.status') }} {{ __('admin.actions') }}
@if($place->primaryImage) @else @endif

{{ $place->getTranslation('name', 'en') }}

{{ $place->getTranslation('name', 'ar') }}

{{ $place->category?->getTranslation('name', 'en') ?? '-' }} @if($place->rating)
{{ number_format($place->rating, 1) }}
@else - @endif
@if($place->is_active) {{ __('admin.active') }} @else {{ __('admin.inactive') }} @endif @if($place->is_featured) {{ __('admin.featured') }} @endif
@csrf
@csrf
@if($place->google_place_id)
@csrf
@endif
@csrf @method('DELETE')

{{ __('admin.no_places') }}

{{-- Pagination --}}
{{ $places->links() }}
@endsection ob_start();