@php
$locale = app()->getLocale();
$defaultTitles = [
'tr' => 'FTurkey.com - Türkiye\'ye Açılan Kapınız',
'en' => 'FTurkey.com - Your Gateway to Turkey',
'fr' => 'FTurkey.com - Votre Porte d\'Entrée vers la Turquie',
'de' => 'FTurkey.com - Ihr Tor zur Türkei',
'ru' => 'FTurkey.com - Ваш Путь в Турцию',
'zh' => 'FTurkey.com - 通往土耳其的门户',
'es' => 'FTurkey.com - Tu Puerta de Entrada a Turquía',
'ar' => 'FTurkey.com - بوابتك إلى تركيا',
'pl' => 'FTurkey.com - Twoja Brama do Turcji',
];
$defaultDescriptions = [
'tr' => 'İş, taşınma, sağlık turizmi ve Türkiye\'de yaşam için profesyonel hizmetler. İhtiyacınız olan her şey tek yerde.',
'en' => 'Professional services for business, relocation, health tourism, and living in Turkey. Everything you need in one place.',
'fr' => 'Services professionnels pour les affaires, la réinstallation, le tourisme médical et la vie en Turquie. Tout ce dont vous avez besoin en un seul endroit.',
'de' => 'Professionelle Dienstleistungen für Geschäfte, Umzug, Gesundheitstourismus und Leben in der Türkei. Alles, was Sie brauchen, an einem Ort.',
'ru' => 'Профессиональные услуги для бизнеса, переезда, медицинского туризма и жизни в Турции. Все, что вам нужно, в одном месте.',
'zh' => '为商业、搬迁、医疗旅游和在土耳其生活提供专业服务。您需要的一切都在一个地方。',
'es' => 'Servicios profesionales para negocios, reubicación, turismo de salud y vida en Turquía. Todo lo que necesitas en un solo lugar.',
'ar' => 'خدمات مهنية للأعمال التجارية والانتقال والسياحة الصحية والعيش في تركيا. كل ما تحتاجه في مكان واحد.',
'pl' => 'Profesjonalne usługi dla biznesu, relokacji, turystyki zdrowotnej i życia w Turcji. Wszystko, czego potrzebujesz, w jednym miejscu.',
];
$defaultKeywords = [
'tr' => ['Türkiye', 'iş kurma', 'taşınma', 'sağlık turizmi', 'hukuki hizmetler', 'vize', 'ikamet izni', 'gayrimenkul', 'yatırım'],
'en' => ['Turkey', 'business', 'relocation', 'health tourism', 'legal services', 'visa', 'residence permit', 'real estate', 'investment'],
'fr' => ['Turquie', 'affaires', 'réinstallation', 'tourisme médical', 'services juridiques', 'visa', 'permis de séjour', 'immobilier', 'investissement'],
'de' => ['Türkei', 'Geschäft', 'Umzug', 'Gesundheitstourismus', 'Rechtsdienstleistungen', 'Visum', 'Aufenthaltserlaubnis', 'Immobilien', 'Investition'],
'ru' => ['Турция', 'бизнес', 'переезд', 'медицинский туризм', 'юридические услуги', 'виза', 'вид на жительство', 'недвижимость', 'инвестиции'],
'zh' => ['土耳其', '商业', '搬迁', '医疗旅游', '法律服务', '签证', '居留许可', '房地产', '投资'],
'es' => ['Turquía', 'negocios', 'reubicación', 'turismo de salud', 'servicios legales', 'visa', 'permiso de residencia', 'bienes raíces', 'inversión'],
'ar' => ['تركيا', 'أعمال تجارية', 'انتقال', 'سياحة صحية', 'خدمات قانونية', 'تأشيرة', 'تصريح إقامة', 'عقارات', 'استثمار'],
'pl' => ['Turcja', 'biznes', 'relokacja', 'turystyka zdrowotna', 'usługi prawne', 'wiza', 'zezwolenie na pobyt', 'nieruchomości', 'inwestycja'],
];
$seoData = [
'title' => $seoTitle ?? ($defaultTitles[$locale] ?? $defaultTitles['tr']),
'description' => $seoDescription ?? ($defaultDescriptions[$locale] ?? $defaultDescriptions['tr']),
'keywords' => $seoKeywords ?? ($defaultKeywords[$locale] ?? $defaultKeywords['tr']),
'image' => $seoImage ?? asset('images/og-image.jpg'),
'url' => url()->current(),
'type' => $seoType ?? 'website',
];
@endphp
{!! App\Helpers\SeoHelper::generateMetaTags($seoData) !!}
{{ $seoData['title'] }}
@php
$viteAssets = Vite::preloadedAssets();
// Critical CSS preload
if (isset($viteAssets['css']) && count($viteAssets['css']) > 0) {
foreach (array_slice($viteAssets['css'], 0, 1) as $css) {
echo '';
}
}
// Critical JS preload
if (isset($viteAssets['js']) && count($viteAssets['js']) > 0) {
foreach (array_slice($viteAssets['js'], 0, 1) as $js) {
echo '';
}
}
// Inter font preload - Removed (using inline CSS instead)
// Font file will be loaded via inline @font-face
@endphp
@if(isset($post) && $post->featured_image)
@php
$imageUrl = str_starts_with($post->featured_image, 'http') ? $post->featured_image : asset($post->featured_image);
// Remove .webp extension if present, replace with .jpg
$imageUrl = preg_replace('/\.webp$/i', '.jpg', $imageUrl);
// Check if image exists, if not use placeholder
if (!str_starts_with($imageUrl, 'http')) {
$imagePath = public_path(str_replace(asset(''), '', $imageUrl));
if (!file_exists($imagePath)) {
$imageUrl = asset('images/blog-placeholder.jpg');
}
}
@endphp
@endif
@include('components.google-analytics')
@php
// Get Vite assets
$viteAssets = Vite::preloadedAssets();
@endphp
@vite(['resources/css/app.css', 'resources/js/app.js'])
@include('components.page-loader')
@yield('content')
@include('components.whatsapp-button')
@include('components.scroll-to-top')
@include('components.cookie-consent')
{!! App\Helpers\SeoHelper::generateStructuredData('organization') !!}
{!! App\Helpers\SeoHelper::generateStructuredData('website') !!}
{!! App\Helpers\SeoHelper::generateStructuredData('localbusiness') !!}
{!! App\Helpers\SeoHelper::generateStructuredData('award', [
'name' => 'Professional Service Excellence Award',
'awardedBy' => 'International Business Association',
'dateReceived' => '2023-01-01'
]) !!}
{{-- Site Navigation Schema --}}
{!! App\Helpers\SeoHelper::generateSiteNavigation([
['name' => trans('common.Hizmetler'), 'url' => route('services.all')],
['name' => trans('common.Hakkımızda'), 'url' => route('about')],
['name' => trans('common.İletişim'), 'url' => route('contact')],
['name' => trans('common.Blog'), 'url' => route('blog.index')],
['name' => trans('common.SSS'), 'url' => route('faq')],
]) !!}
{{-- SearchAction Schema (Standalone) --}}
{!! App\Helpers\SeoHelper::generateSearchAction() !!}
@yield('structured-data')
@include('components.live-chat')