@php // Queries use Illuminate\Support\Facades\DB; $config = DB::table('config')->get(); @endphp {{ $settings->site_name }} @if (App::isLocale('ar') || App::isLocale('ur') || App::isLocale('he')) @else @endif {{-- JS --}} {{-- Custom CSS --}} @yield('css') @if (isset($settings) && $settings) {{-- Check Google Analytics is "enabled" --}} @if (!empty($settings->google_analytics_id) && Cookie::get('laravel_cookie_consent') === '1') @endif @if ($settings->google_adsense_code != 'DISABLE_ADSENSE_ONLY' && Cookie::get('laravel_cookie_consent') === '1') {{-- AdSense code --}} @endif @endif {{-- CSS/JS from admin settings --}} @if (isset($settings) && $settings) @php $custom_css = $settings->custom_css; $custom_js = $settings->custom_scripts; // Ensure ') === false) { $custom_css = ""; } // Ensure ') === false) { $custom_js = ""; } @endphp {!! $custom_css !!} {!! $custom_js !!} @endif {{-- Preloader --}}
@if (isset($nav) && $nav) @include('user.includes.sidebar') @endif @if (isset($header) && $header) @include('user.includes.header') @endif {{-- Check email verification --}} @if ($config[43]->config_value == '1' && auth()->user()->email_verified_at == null)
@include('auth.verification-notice')
@else @yield('content') @endif
@if (isset($demo) && $demo) @endif {{-- Preloader --}} @yield('scripts') @stack('custom-js')