@php $primaryColor = $basicInfo->primary_color; $secondaryColor = $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) { $primaryColor = '#' . $primaryColor; } // if, secondary color value does not contain '#', then add '#' before color value if (isset($secondaryColor) && checkColorCode($secondaryColor) == 0) { $secondaryColor = '#' . $secondaryColor; } // change decimal point into hex value for opacity if (!function_exists('rgb')) { 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') {{-- booking loader start --}}
loader
@if ($basicInfo->preloader_status == 1)
@endif {{-- booking loader end --}} @php $theme_version = $basicInfo->theme_version; @endphp @if ($theme_version == 1) @includeIf('frontend.partials.header.header-v1') @elseif($theme_version == 2) @includeIf('frontend.partials.header.header-v2') @elseif($theme_version == 3) @includeIf('frontend.partials.header.header-v3') @endif @if (request()->routeIs('index')) @endif @yield('breadcrumb') @yield('content')
@includeIf('frontend.partials.popups') @includeIf('frontend.partials.footer') {{-- cookie alert --}} @if (!is_null($cookieAlertInfo) && $cookieAlertInfo->cookie_alert_status == 1) @include('cookie-consent::index') @endif
@if ($basicInfo->shop_status == 1)
@php $position = $basicInfo->base_currency_symbol_position; $symbol = $basicInfo->base_currency_symbol; $totalPrice = 0; if (session()->has('productCart')) { $productCarts = session()->get('productCart'); foreach ($productCarts as $key => $product) { $totalPrice += $product['price']; } } $totalPrice = number_format($totalPrice); $productCartQuantity = 0; if (session()->has('productCart')) { foreach (session()->get('productCart') as $value) { $productCartQuantity = $productCartQuantity + $value['quantity']; } } @endphp
{{ $productCartQuantity }} {{ __('Items') }}
{{ $position == 'left' ? $symbol : '' }}{{ $totalPrice }}{{ $position == 'right' ? $symbol : '' }}
@endif @includeIf('frontend.partials.scripts') @includeIf('frontend.partials.toastr')