@hasSection('og-meta') @yield('og-meta') @else @endif @hasSection('custom_title')@yield('custom_title')@else Ecom Builder. @yield('pagename')@endif {{-- floating-whatsapp --}} @yield('styles') @if (($bs->is_whatsapp ?? 0) == 0 && ($bs->is_tawkto ?? 0) == 0) @endif @php $primaryColor = $bs->base_color ?? '007bff'; 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; } // 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 @if (($bs->preloader_status ?? 0) == 1) @endif @includeIf('front.partials.header') @if (!request()->routeIs('front.index'))

@yield('breadcrumb-title')

@endif @yield('content') {{-- footer section --}} @includeIf('front.partials.footer') @includeIf('front.partials.mobile_bottom_nav') @if (($be->cookie_alert_status ?? 0) == 1) @endif {{-- Popups start --}} @includeIf('front.partials.popups') {{-- Popups end --}} {{-- WhatsApp Chat Button (dynamic custom widget) --}} {{-- Floating Call / Phone Button (LEFT SIDE) & WhatsApp Chat Button (RIGHT SIDE) --}} @php $defaultPackage = \App\Models\Package::where('status', '1')->where('featured', '1')->first(); $defaultPackageId = $defaultPackage ? $defaultPackage->id : 1; $floatSec = \App\Models\Admin\ImageText::first(); // Call Button Settings $floatingCallActive = ($floatSec->floating_call_status ?? '1') !== '0'; $rawPhone = $floatSec->floating_call_number ?? (!empty($be->contact_numbers ?? null) ? trim(explode(',', $be->contact_numbers)[0]) : '+917200770351'); $cleanPhone = preg_replace('/[^0-9+]/', '', $rawPhone); if (!str_starts_with($cleanPhone, '+') && !str_starts_with($cleanPhone, '91') && strlen($cleanPhone) == 10) { $cleanPhone = '+91' . $cleanPhone; } $callLabel = $floatSec->floating_call_label ?? __('Call Us'); // WhatsApp Settings $floatingWaActive = ($floatSec->floating_whatsapp_status ?? '1') !== '0'; $rawWaNum = $floatSec->floating_whatsapp_number ?? ($bs->whatsapp_number ?? '917200770351'); $cleanWaNum = preg_replace('/[^0-9]/', '', $rawWaNum); $waHeader = ($floatSec->floating_whatsapp_header_title ?? null) ?: (($bs->whatsapp_header_title ?? null) ?: (($bs->website_title ?? 'LaunchShop') . ' Support')); $waOnlineStatus = $floatSec->floating_whatsapp_online_status ?? __('Online'); $waWelcomeMsg = $floatSec->floating_whatsapp_welcome_msg ?? '👋 Welcome to ecom builder! How can we help you today?'; $waPrompt1Text = $floatSec->floating_whatsapp_prompt1_text ?? 'Start My Online Store'; $waPrompt1Url = $floatSec->floating_whatsapp_prompt1_url ?? (\Illuminate\Support\Facades\Route::has('front.register.view') ? route('front.register.view', ['status' => 'regular', 'id' => $defaultPackageId]) : url('/pricing')); $waPrompt2Text = $floatSec->floating_whatsapp_prompt2_text ?? 'Talk to Expert'; $waPrompt2Msg = $floatSec->floating_whatsapp_prompt2_msg ?? 'Hi, I want to talk to an expert to help me get started.'; $waPrompt2Url = 'https://api.whatsapp.com/send?phone=' . $cleanWaNum . '&text=' . rawurlencode($waPrompt2Msg); $waPrompt3Text = $floatSec->floating_whatsapp_prompt3_text ?? 'Pricing & Plans'; $waPrompt3Url = $floatSec->floating_whatsapp_prompt3_url ?? (\Illuminate\Support\Facades\Route::has('front.pricing') ? route('front.pricing') : url('/pricing')); $waDefaultSendMsg = $floatSec->floating_whatsapp_default_send_msg ?? 'Hi, I want to enquire about the Ecom Builder. Please help me get started.'; @endphp @if ($floatingCallActive)
{{ $callLabel }}
@endif @if ($floatingWaActive)
@endif
{{-- lazyload js --}} {{-- syotimer --}} {{-- floatingWhatsApp --}} {{-- push notification js --}} @yield('scripts') @yield('vuescripts') @if (session()->has('success')) @endif @if (session()->has('error')) @endif @if (session()->has('warning')) @endif {{-- whatsapp init code --}} @if ($bs->is_tawkto == 1) {{-- Force Tawk.to to left side via CSS on its injected containers --}} @endif