@php
use Illuminate\Support\Facades\DB;
// Queries
$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($template_config) && $template_config)
@php
$custom_css = $template_config->custom_css;
$custom_js = $template_config->custom_js;
// Ensure ') === false) {
$custom_css = "";
}
// Ensure ') === false) {
$custom_js = "";
}
@endphp
{!! $custom_css !!}
{!! $custom_js !!}
@endif
@if (app()->isDownForMaintenance())
@include('GoBizOriginal::Website.includes.maintenance-mode')
@endif
{{-- Registeration Closed Alert Message using Tailwind CSS --}}
@include('GoBizOriginal::Website.includes.register-closed-alert')
{{-- Header --}}
@if (isset($nav) && $nav)
@include('GoBizOriginal::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('GoBizOriginal::Website.includes.footer')
@endif
{{-- Custom JS --}}
@yield('custom-js')