@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('homepage_select') == 'thecore') @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) @elseif($custom_alert->id == 200) @if(addon_is_activated('club_point') && get_setting('set_point_for_product_review') != 0 ) @endif @else
@endif @endforeach
@php $dynamic_popups = App\Models\DynamicPopup::where('status', 1)->orderBy('id', 'asc')->get(); use App\Models\Order; use App\Models\OrderDetail; @endphp @foreach ($dynamic_popups as $key => $dynamic_popup) @php $showPopup = true; if ($dynamic_popup->id == 100 ) { if(auth()->user()){ $userOrderIds = Order::where('user_id', auth()->user()->id)->pluck('id'); $hasUnreviewed = OrderDetail::whereIn('order_id', $userOrderIds) ->where('delivery_status', 'delivered') ->where('reviewed', 0) ->exists(); $showPopup = $hasUnreviewed; }else{ $showPopup= false; } } @endphp @if($dynamic_popup->id == 1) @else @if($showPopup) @endif @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 @if (get_setting('header_element') == 5 || get_setting('header_element') == 6) @endif @if(get_setting('show_custom_product_sale_alert')==1) @endif @yield('script') @php echo get_setting('footer_script'); @endphp