{{-- resources/views/web/visas/index.blade.php --}} @extends('web.layouts.app') @section('title', ($pageTitle ?? 'خدمات الفيزا') . ' - ' . ($siteName ?? 'البطل الروماني')) @push('styles') @endpush @section('content') @php $titlePage = $pageTitle ?? 'خدمات الفيزا'; $heroImg = $hero_image ?? ($settings['hero_visas'] ?? ($settings['hero_image'] ?? 'https://images.unsplash.com/photo-1488085061387-422e29b40054?ixlib=rb-4.0.3&auto=format&fit=crop&w=2070&q=80')); $countries = $countries ?? collect(); $visaTypes = [ 'tourist' => 'فيزا سياحية', 'business' => 'فيزا عمل', 'student' => 'فيزا طالب', 'transit' => 'فيزا ترانزيت' ]; $currentUrl = url()->current(); @endphp {{-- الهيرو --}}

{{ $titlePage }}

احصل على فيزا السفر بسهولة وأمان إلى أكثر من 50 دولة حول العالم

{{-- البحث --}}

ابحث عن وجهتك المفضلة

{{-- الدول --}}

الدول المتاحة للفيزا

@if($countries->count() > 0)
عثرنا على {{ $countries->count() }} دولة
@endif @if($countries->count() === 0)

لا توجد نتائج مطابقة

جرب تعديل معايير البحث

عرض جميع الدول
@else
@foreach($countries as $c) @php $nameAr = $c->name_ar ?? $c->country_name ?? null; $nameEn = $c->name_en ?? null; $title = $nameAr ?: $nameEn; @endphp @if(!empty($title)) @php $slug = $c->slug ?? \Illuminate\Support\Str::slug($nameEn ?: $nameAr); $proc = $c->processing_time_text ?? '3-7 أيام عمل'; $price = $c->price_from ?? null; $typesVal = $c->visa_types ?? null; $typesArr = is_string($typesVal) ? json_decode($typesVal, true) : (is_array($typesVal) ? $typesVal : ['tourist', 'business']); $typesArr = array_filter((array)$typesArr); $displayTypes = array_slice($typesArr, 0, 4); $remainingTypes = count($typesArr) - count($displayTypes); $showUrl = route('visas.show', $slug); @endphp
@php $flag = null; if ($slug) { $trySvg = 'images/flags/'.$slug.'.svg'; $tryPng = 'images/flags/'.$slug.'.png'; if(file_exists(public_path($trySvg))) { $flag = asset($trySvg); } elseif(file_exists(public_path($tryPng))) { $flag = asset($tryPng); } } @endphp @if($flag) {{ $title }} @else 🏳️ @endif

{{ $title }}

@if(!empty($displayTypes))
@foreach($displayTypes as $t)
{{ $visaTypes[$t] ?? $t }}
@endforeach @if($remainingTypes > 0)
+{{ $remainingTypes }} أنواع أخرى
@endif
@endif
{{ $proc }}
@if(!is_null($price)) {{ number_format((float)$price) }} ر.س @else السعر عند الطلب @endif
التفاصيل @php $wa = $c->whatsapp ?? ($settings['whatsapp'] ?? null); if($wa) { $cta = 'https://wa.me/'.preg_replace('~\D~','',$wa); } @endphp @if(isset($cta)) @endif
@endif @endforeach
@if(method_exists($countries, 'hasPages') && $countries->hasPages())
{{ $countries->links() }}
@endif @endif
@endsection