@extends('web.layout') @php $locale = app()->getLocale(); @endphp @section('meta_title', $locale === 'ar' ? 'الأماكن - ليالي جدة' : 'Places - Jeddah Night') @section('meta_description', $locale === 'ar' ? 'اكتشف جميع الأماكن المميزة في مدينة جدة' : 'Discover all featured places in Jeddah city') @section('content') {{-- Page Header with Search --}}

{{ $locale === 'ar' ? 'اكتشف الأماكن' : 'Discover Places' }}

{{ $locale === 'ar' ? 'ابحث عن أفضل الأماكن في جدة' : 'Find the best places in Jeddah' }}

{{-- Search Bar with Autocomplete --}}
@if(request('category')) @endif @if(request('sort')) @endif {{-- Autocomplete Dropdown --}}
{{-- Content --}}
{{-- Category Filter Chips --}} @if($categories->count())
{{ $locale === 'ar' ? 'الكل' : 'All' }} @foreach($categories as $category) @if($category->icon) @endif {{ $category->getTranslation('name', $locale) }} @endforeach
@endif {{-- Sort Bar --}}

@if(request('q')) {{ $locale === 'ar' ? 'نتائج البحث عن' : 'Results for' }} "{{ request('q') }}" · @endif {{ $places->total() }} {{ $locale === 'ar' ? 'مكان' : ($places->total() === 1 ? 'place' : 'places') }}

{{-- Places Grid --}} @if($places->count())
@foreach($places as $place) @include('web.partials.place-card', ['place' => $place]) @endforeach
{{-- Pagination --}}
{{ $places->links() }}
@else

{{ $locale === 'ar' ? 'لم يتم العثور على أماكن' : 'No places found' }}

{{ $locale === 'ar' ? 'جرب تغيير معايير البحث أو التصفية' : 'Try changing your search or filter criteria' }}

@if(request('q') || request('category')) {{ $locale === 'ar' ? 'مسح الفلاتر' : 'Clear filters' }} @endif
@endif
@endsection ob_start();