@yield('og:tag') {{-- title --}} @yield('pageHeading') {{ '| ' . $websiteInfo->website_title }} {{-- fav icon --}} @php $primaryColor = '2B4E72'; $secoundaryColor = '2B4E72'; // check, whether color has '#' or not, will return 0 or 1 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 function rgb($color = null) { if (!$color) { echo ''; } $hex = htmlspecialchars($color); [$r, $g, $b] = sscanf($hex, '#%02x%02x%02x'); echo "$r, $g, $b"; } @endphp @includeIf('frontend.partials.styles.styles-v1') @yield('custom-styles') @includeIf('frontend.partials.header.header-v1') @if (request()->routeIs('index')) @endif @yield('breadcrumb') @yield('content') @includeIf('frontend.partials.popups') @includeIf('frontend.partials.footer.footer-v1') {{-- cookie alert --}} @if (!is_null($cookieAlertInfo) && $cookieAlertInfo->cookie_alert_status == 1) @include('cookie-consent::index') @endif
@includeIf('frontend.partials.scripts.scripts-v1') @includeIf('frontend.partials.toastr')