@php use Illuminate\Support\Facades\DB; use App\Setting; // Queries $config = DB::table('config')->get(); $settings = Setting::where('status', 1)->first(); $supportPage = DB::table('pages')->where('page_name', 'footer')->orWhere('page_name', 'contact')->get(); @endphp {{-- SEO --}} @if (isset($setting) && $setting) {!! SEOMeta::generate() !!} {!! OpenGraph::generate() !!} {!! Twitter::generate() !!} {!! JsonLd::generate() !!} @endif {{-- Title --}} @if (isset($title) && $title) {{ $title }} @endif {{-- Google verification --}} @if (isset($setting) && $setting) @endif {{-- Check Recaptcha --}} @if (env('RECAPTCHA_ENABLE') == 'on') {!! htmlScriptTagJsApi() !!} @endif @if (isset($setting) && $setting) {{-- 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 {{-- Pusher --}} @if (env('PUSHER_BEAMS_ENABLED') == '1' && Cookie::get('laravel_cookie_consent') === '1') @endif {{-- Custom CSS / JS --}} @yield('custom-script') {{-- 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 @if (app()->isDownForMaintenance()) @include('website.includes.maintenance-mode') @endif
{{-- Failed Alert Message using Tailwind CSS --}} @if (Session::has('failed'))

{{ __('Customer Registration Closed') }}

{{ Session::get('failed') }}

@endif {{-- Header --}} @if (isset($nav) && $nav) @include('website.includes.header') @endif {{-- Page Content --}} @yield('content')
{{-- Cookie consent --}} @if (env('COOKIE_CONSENT_ENABLED') == true) @include('cookie-consent::index') @endif
{{-- WhatsApp Chatbot --}} @if (isset($config) && $config) @if ($config[40]->config_value == '1') @endif @endif {{-- Tawk.to Chat --}} @if (isset($settings) && $settings) @if ( $settings->tawk_chat_bot_key != null && $config[40]->config_value != '1' && Cookie::get('laravel_cookie_consent') === '1') @endif @endif {{-- Footer --}} @if (isset($footer) && $footer) @include('website.includes.footer') @endif {{-- Custom JS --}} @yield('custom-js')