@if (isset($metatags) && isset($schema))
@else
{{-- Basic SEO for pages without metatags - Using SEO component with default values --}}
@php
$defaultMetatags = [
'charset' => 'utf-8',
'viewport' => 'width=device-width, initial-scale=1.0',
'language' => app()->getLocale(),
'robots' => 'index, follow',
'description' => config('configrations.site_description') ?? 'About My Company',
'author' => config('configrations.site_name') ?? 'My Company',
'title' => config('configrations.site_name') ?? 'My Company',
];
$defaultSchema = [
'@context' => 'https://schema.org',
'@type' => 'WebPage',
'name' => config('configrations.site_name') ?? 'My Company',
'url' => url()->current(),
];
@endphp
@endif
@php
$currentLocale = app()->getLocale();
$isRTL = in_array($currentLocale, ['ar', 'he', 'fa', 'ur']); // RTL languages
$textDirection = $isRTL ? 'rtl' : 'ltr';
@endphp
{{-- Set HTML lang and dir attributes --}}
{{-- Service Worker Registration --}}
{{-- @if ($isRTL)
@else
@endif --}}
{{-- PWA Meta Tags --}}
{{ config('app.name', 'eclato') }}
{{--CSS & Libraries--}}