@php $rtl = get_session_language()->rtl; @endphp @if ($rtl == 1) @else @endif @yield('meta_title', get_setting('website_name') . ' | ' . get_setting('site_motto')) @yield('meta') @if (!isset($detailedProduct) && !isset($customer_product) && !isset($shop) && !isset($page) && !isset($blog)) @php $meta_image = uploaded_asset(get_setting('meta_image')); @endphp @endif @php $site_icon = uploaded_asset(get_setting('site_icon')); @endphp @if ($rtl == 1) @endif @if (get_setting('google_analytics') == 1) @endif @if (get_setting('facebook_pixel') == 1) @endif @php echo get_setting('header_script'); @endphp
@php $user = auth()->user(); $user_avatar = null; $carts = []; if ($user && $user->avatar_original != null) { $user_avatar = uploaded_asset($user->avatar_original); } $system_language = get_system_language(); @endphp @include('frontend.inc.nav') @yield('content') @include('frontend.inc.footer')
@if(get_setting('use_floating_buttons') == 1) @include('frontend.inc.floating_buttons') @endif
@if (env("DEMO_MODE") == "On") @include('frontend.inc.demo_nav') @endif @php $alert_location = get_setting('custom_alert_location'); $order = in_array($alert_location, ['top-left', 'top-right']) ? 'asc' : 'desc'; $custom_alerts = App\Models\CustomAlert::where('status', 1)->orderBy('id', $order)->get(); @endphp
@foreach ($custom_alerts as $custom_alert) @if($custom_alert->id == 1) @else
@endif @endforeach
@php $dynamic_popups = App\Models\DynamicPopup::where('status', 1)->orderBy('id', 'asc')->get(); @endphp @foreach ($dynamic_popups as $key => $dynamic_popup) @if($dynamic_popup->id == 1) @else @endif @endforeach @include('frontend.partials.modal') @include('frontend.partials.account_delete_modal') @yield('modal') {{-- WhatsaApp Chat --}} @if (get_setting('whatsapp_chat') == 1) @endif @if (env("DEMO_MODE") == "On") @endif @yield('script') @php echo get_setting('footer_script'); @endphp