rtl == 1) dir="rtl" @endif>
{{-- required meta tags --}}
{{-- csrf-token for ajax request --}}
{{-- title --}}
{{ convertUtf8($basicInfo->website_title) }} - @yield('pageHeading')
@yield('og:tag')
{{-- fav icon --}}
@php
$primaryColor = $basicInfo->primary_color;
$secoundaryColor = $basicInfo->secondary_color;
// check, whether color has '#' or not, will return 0 or 1
if (!function_exists('checkColorCode')) {
function checkColorCode($color)
{
return preg_match('/^#[a-f0-9]{6}/i', $color);
}
}
// if, primary color value does not contain '#', then add '#' before color value
if (isset($primaryColor) && checkColorCode($primaryColor) == 0 && checkColorCode($secoundaryColor) == 0) {
$primaryColor = '#' . $primaryColor;
$secoundaryColor = '#' . $secoundaryColor;
}
// change decimal point into hex value for opacity
if (!function_exists('rgb')) {
function rgb($color = null)
{
if (!$color || !preg_match('/^#([a-fA-F0-9]{6})$/', $color)) {
return '';
}
[$r, $g, $b] = sscanf($color, '#%02x%02x%02x');
return "$r, $g, $b";
}
}
@endphp
{{-- include styles --}}
@if ($basicInfo->theme_version == 1)
@includeIf('tenant_frontend.partials.styles.styles-v1')
@elseif($basicInfo->theme_version == 2)
@includeIf('tenant_frontend.partials.styles.styles-v2')
@elseif($basicInfo->theme_version == 3)
@includeIf('tenant_frontend.partials.styles.styles-v3')
@endif
{{-- preloader start --}}
@if ($basicInfo->preloader_status == 1)
@endif
{{-- preloader end --}}
@if ($basicInfo->theme_version == 1)
@includeIf('tenant_frontend.partials.header.header-v1')
@elseif ($basicInfo->theme_version == 2)
@includeIf('tenant_frontend.partials.header.header-v2')
@elseif ($basicInfo->theme_version == 3)
@includeIf('tenant_frontend.partials.header.header-v3')
@endif
{{-- header end --}}
@yield('content')
@if (!empty($permissions) && in_array('Whatsapp', $permissions) && $basicInfo->whatsapp_status == 1)
@endif
{{-- announcement popup --}}
@includeIf('tenant_frontend.partials.popups')
{{-- cookie alert --}}
@if (!is_null($cookieAlertInfo) && $cookieAlertInfo->cookie_alert_status == 1)
@include('tenant_frontend.cookie-alert.index')
@endif
{{-- include footer --}}
@if ($basicInfo->theme_version == 1)
@includeIf('tenant_frontend.partials.footer.footer-v1')
@elseif ($basicInfo->theme_version == 2)
@includeIf('tenant_frontend.partials.footer.footer-v2')
@elseif ($basicInfo->theme_version == 3)
@includeIf('tenant_frontend.partials.footer.footer-v3')
@endif
{{-- end main-wrapper --}}
{{-- include scripts --}}
@if ($basicInfo->theme_version == 1)
@includeIf('tenant_frontend.partials.scripts.scripts-v1')
@elseif ($basicInfo->theme_version == 2)
@includeIf('tenant_frontend.partials.scripts.scripts-v2')
@elseif ($basicInfo->theme_version == 3)
@includeIf('tenant_frontend.partials.scripts.scripts-v3')
@endif