@extends('web.layout') @php $locale = app()->getLocale(); @endphp @section('meta_title', ($q ? ($locale === 'ar' ? 'نتائج البحث: ' : 'Search: ') . $q : ($locale === 'ar' ? 'البحث' : 'Search')) . ($locale === 'ar' ? ' - ليالي جدة' : ' - Jeddah Night')) @section('meta_description', $locale === 'ar' ? 'ابحث عن الأماكن والفعاليات في جدة' : 'Search for places and events in Jeddah') @section('content') {{-- Search Header --}}

{{ $locale === 'ar' ? 'البحث' : 'Search' }}

{{-- Search Form --}}
@if($q)

{{ $locale === 'ar' ? 'نتائج البحث عن' : 'Search results for' }} "{{ $q }}"

@endif
{{-- Results --}}
@if($q) {{-- Tabs --}}
{{-- Places Results --}}
@if($places->count())
@foreach($places as $place) @include('web.partials.place-card', ['place' => $place]) @endforeach
@else

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

{{ $locale === 'ar' ? 'جرب كلمات بحث مختلفة' : 'Try different search terms' }}

@endif
{{-- Events Results --}}
@if($events->count())
@foreach($events as $event) @include('web.partials.event-card', ['event' => $event]) @endforeach
@else

{{ $locale === 'ar' ? 'لم يتم العثور على فعاليات' : 'No events found' }}

{{ $locale === 'ar' ? 'جرب كلمات بحث مختلفة' : 'Try different search terms' }}

@endif
@else {{-- No query --}}

{{ $locale === 'ar' ? 'ابدأ البحث' : 'Start Searching' }}

{{ $locale === 'ar' ? 'اكتب كلمة البحث للعثور على أماكن وفعاليات' : 'Type a search term to find places and events' }}

@endif
@endsection ob_start();