@extends('layouts.app')
@section('title', $seo['page_title'] ?? __('الرئيسية'))
@section('meta_title', $seo['meta_title'] ?? '')
@section('description', $seo['meta_description'] ?? '')
@section('keywords', $seo['keywords'] ?? '')
@section('og:title', $seo['og_title'] ?? '')
@section('og:description', $seo['og_description'] ?? '')
@section('og_image', $seo['og_image'] ?? asset('images/RFav.png'))
@section('canonical_url', $seo['canonical_url'] ?? url()->current())
@push('home_style')
@vite(['resources/css/style.css'])
@endpush
@section('content')
{{--
📍 أقرب محطة
🛠 الخدمات
🎁 العروض
🕐 أوقات العمل
👋 مرحباً بك في درب!
أنا مساعدك الذكي، هنا لمساعدتك في:
- 🗺 إيجاد أقرب محطة
- 🛠 معرفة الخدمات المتوفرة
- 🎁 الاطلاع على العروض
- 📞 التواصل معنا
- ❓ الإجابة على أي استفسار
كيف يمكنني مساعدتك اليوم؟
الآن
--}}
@if(!empty($mobile_video))
@endif
{{-- --}}
{{-- --}}
{{-- @if (isset($advertisements) && count($advertisements) > 0)
@endif --}}
{{-- @if (isset($advertisements) && count($advertisements) > 0) --}}
@php
$currentLocale = app()->getLocale();
if (strpos($currentLocale, '_') !== false) {
$currentLocale = explode('_', $currentLocale)[0];
}
if (strpos($currentLocale, '-') !== false) {
$currentLocale = explode('-', $currentLocale)[0];
}
$filteredAdvertisements = [];
foreach ($advertisements as $ad) {
if ($currentLocale === 'en') {
if (!empty($ad['image_en_url'])) {
$filteredAdvertisements[] = $ad;
}
} elseif (!empty($ad['image_url'])) {
$filteredAdvertisements[] = $ad;
}
}
@endphp
@if (!empty($filteredAdvertisements) && count($filteredAdvertisements) > 0)
@endif
{{-- @endif --}}
@push('scripts')
@endpush
@endsection