@extends('layouts.app') @php $isAr = app()->getLocale() === 'ar'; $metaTitle = $isAr ? $location->meta_title_ar : $location->meta_title_en; $metaDescription = $isAr ? $location->meta_description_ar : $location->meta_description_en; $altUrl = route('locations.show.' . ($isAr ? 'en' : 'ar'), $location->slug($isAr ? 'en' : 'ar')); $breadcrumbs = [['label' => $location->name(), 'url' => '#']]; @endphp @push('schema') @endpush @section('content')

{{ $isAr ? 'نخدم ' . $location->name() . ' بالكامل' : 'Serving All of ' . $location->name() }}

{{ $isAr ? $location->hero_headline_ar : $location->hero_headline_en }}

{{ $isAr ? $location->hero_subheadline_ar : $location->hero_subheadline_en }}

{{-- The unique local-context paragraph — THIS is what the hasUniqueContent() guard protects; it must never be empty on a published page. --}}

{{ $isAr ? $location->local_context_ar : $location->local_context_en }}

@if ($projects->isNotEmpty())

{{ $isAr ? 'مشاريع منفذة في ' . $location->name() : 'Projects Completed in ' . $location->name() }}

@foreach ($projects as $project)
{{ $project->title() }}
@endforeach
@endif

{{ $isAr ? 'احجز معاينتك المجانية' : 'Book Your Free Site Visit' }}

{{ $isAr ? 'احجز الآن' : 'Book Now' }}
@endsection