@php $isArabic = app()->getLocale() === 'ar'; // Work out this same page's URL in the other language, for the toggle // button and the hreflang tags below. $currentRoute = \Illuminate\Support\Facades\Route::currentRouteName(); $altRouteName = $isArabic ? \Illuminate\Support\Str::after($currentRoute, 'ar.') : 'ar.'.$currentRoute; $altUrl = \Illuminate\Support\Facades\Route::has($altRouteName) ? route($altRouteName) : route($isArabic ? 'home' : 'ar.home'); $enUrl = $isArabic ? $altUrl : url()->current(); $arUrl = $isArabic ? url()->current() : $altUrl; @endphp {{-- ---- Favicon ---- --}} {{-- ---- SEO ---- --}} @php $seoTitle = trim($__env->yieldContent('title', 'OMA Business Hub — Business Setup & Growth, Abu Dhabi')); $seoDescription = trim($__env->yieldContent('description', 'OMA Business Hub carries your company from first incorporation document to final license renewal — transactions, PRO services, visas and legal liquidation in the UAE.')); $seoCanonical = trim($__env->yieldContent('canonical', url()->current())); $seoRobots = trim($__env->yieldContent('robots', 'index, follow')); @endphp {{ $seoTitle }} @stack('structured_data') {{-- ---- Fonts & icons ---- --}} @if ($isArabic) @else @endif {{-- ---- Bootstrap (RTL build when Arabic) ---- --}} @if ($isArabic) @else @endif {{-- ---- Site design system (ported from the original static site) ---- --}} @if ($isArabic) @endif @stack('styles') @include('partials.header') @yield('content') @include('partials.footer') {{-- ---- jQuery + Bootstrap JS ---- --}} {{ $isArabic ? 'English' : 'العربية' }} @stack('scripts')