{{-- Fonts & Icons --}} {{-- Bootstrap & Toastr CSS --}} @php $information = \App\Models\Information::first(); // Theme Colors $primaryColor = $ln_pg->btn_bg_color ?? '#e65100'; $textColor = $ln_pg->btn_text_color ?? '#ffffff'; $bgColor = $ln_pg->theme_primary_col ?? '#fafafa'; $productId = $product->id ?? 0; $productName = $product->name ?? ''; $contentCategory = $product?->category?->name ?? 'Landing Page'; $sslActive = $information->ssl_active ?? 0; $pixelId = setting('fb_pixel_id') ?? null; // WhatsApp Number Formatting $phoneNumber = $ln_pg->phone ?? ''; $waNumberClean = preg_replace('/\D+/', '', $phoneNumber); $globalSetting = DB::table('delivery_charges')->first(); $isWeightBased = $globalSetting && $globalSetting->charge_type == 'weight_based'; $variations = collect(); if($product){ try{ $product->loadMissing(['variations.size','variations.color', 'variations.stocks']); $variations = $product->variations ?? collect(); }catch(\Throwable $e){ $variations = $product->variations ?? collect(); } } $defaultVar = $variations->first(); $defaultVarId = $defaultVar->id ?? null; $defaultPrice = 0; $regularStrikePrice = 0; if (isset($product->after_discount) && $product->after_discount > 0) { $defaultPrice = intval($product->after_discount); $regularStrikePrice = intval($product->sell_price); } elseif (isset($product->sell_price) && $product->sell_price > 0) { $defaultPrice = intval($product->sell_price); $regularStrikePrice = ($product->price > $product->sell_price) ? intval($product->price) : 0; } else { $defaultPrice = intval($product->price ?? 0); } if(!empty($ln_pg->new_price)) $defaultPrice = $ln_pg->new_price; if(!empty($ln_pg->old_price)) $regularStrikePrice = $ln_pg->old_price; $defaultStock = $defaultVar ? $defaultVar->stocks->sum('quantity') : ($product->stock_quantity ?? 0); $varMatrix = []; if($variations->count() > 0) { foreach($variations as $v) { $vPrice = (isset($v->after_discount_price) && $v->after_discount_price > 0) ? intval($v->after_discount_price) : intval($v->price ?? $defaultPrice); $sId = $v->size_id ?? 0; $cId = $v->color_id ?? 0; $varMatrix["{$sId}_{$cId}"] = [ 'variation_id' => $v->id, 'price' => $vPrice, 'stock' => 999999 ]; } } @endphp {{-- Facebook Scripts --}} @if(!empty(optional($information)->tracking_code)) {!! $information->tracking_code !!} @endif @if(!empty($pixelId)) @endif

{{ $ln_pg->title1 ?? 'ফ্লোর, কিচেন ও বাথরুম ঝকঝকে পরিষ্কার রাখুন' }}

@if(!empty($ln_pg->title2))

{{ $ln_pg->title2 }}

@endif
{{-- কাউন্টডাউন টাইমার --}}
{{ $ln_pg->countdown_title ?? 'অফারটি শেষ হতে আর বাকি মাত্র' }}
05 ঘণ্টা
00 মিনিট
00 সেকেন্ড
@if($regularStrikePrice > 0)
{{ $ln_pg->old_price_text ?? 'পূর্বের মূল্যঃ' }} {{ $regularStrikePrice }} ৳
@endif
{{ $ln_pg->new_price_text ?? 'বর্তমান মূল্যঃ' }} {{ $defaultPrice }} ৳
{{-- YouTube iframe --}} @if(!empty($ln_pg->video_url))
{!! $ln_pg->video_url !!}
@endif {{-- Multiple Image Gallery --}} @if($ln_pg->right_product_image)
@endif {{-- ফিচার সেকশন --}}
{{ $ln_pg->feature_title ?? 'কেন এই পণ্যটি আপনার প্রয়োজন?' }}
{{-- Review Images Section --}} @if(isset($ln_pg->review_images) && $ln_pg->review_images->count() > 0)
{{ $ln_pg->review_title ?? 'আমাদের প্রতি আস্থা রেখেছেন হাজারো গ্রাহক' }}
@foreach($ln_pg->review_images as $review) Review @endforeach
{{ $ln_pg->review_badge ?? '৫,০০০+ পরিবার ইতোমধ্যে ব্যবহার করছেন!' }}
@endif {{-- প্রমিস সেকশন --}}
{{ $ln_pg->promise_title ?? 'কেন আমাদের থেকে কিনবেন?' }}
@if(!empty($ln_pg->promise_1_title))
{{ $ln_pg->promise_1_title }}

{{ $ln_pg->promise_1_desc }}

@else
সারা বাংলাদেশে ক্যাশ অন ডেলিভারি

হাতে পাওয়ার পরই টাকা দিন। কোন অগ্রিম পেমেন্টের ঝামেলা নেই।

@endif @if(!empty($ln_pg->promise_2_title))
{{ $ln_pg->promise_2_title }}

{{ $ln_pg->promise_2_desc }}

@else
নো টেনশন রিটার্ন পলিসি

আপনি চাইলে ডেলিভারি ম্যানের সামনেই চেক করতে পারবেন। অপছন্দ হলে সাথে সাথে রিটার্ন করতে পারবেন।

@endif @if(!empty($ln_pg->promise_3_title))
{{ $ln_pg->promise_3_title }}

{{ $ln_pg->promise_3_desc }}

@endif
{{-- Order Form Area --}}
{{ $ln_pg->form_title ?? 'অর্ডার করতে নিচের ফর্মটি সঠিক তথ্য দিয়ে পূরণ করুন' }}
@csrf
@if($sslActive == 1) @endif
{{-- Terms & Conditions Checkbox --}} @if(isset($information->ssl_terms_active) && $information->ssl_terms_active == 1) @endif
{{ $ln_pg->order_summary_title ?? 'অর্ডারের সারাংশ' }}
{{-- Package Selection Logic --}} @if($ln_pg->packages && $ln_pg->packages->count() > 0)
{{-- Default 1 piece package --}} {{-- Admin created packages --}} @foreach($ln_pg->packages as $pkg) @endforeach
@endif @if($variations->count() > 0)
@endif
পরিমাণ
সাবটোটাল {{ $defaultPrice }}
ডেলিভারি চার্জ + 0
{{ $ln_pg->total_bill_label ?? 'সর্বমোট বিল' }} {{ $defaultPrice }}
{{-- FAQ সেকশন --}}
{{ $ln_pg->faq_title ?? 'সচরাচর জিজ্ঞাসিত প্রশ্ন (FAQ)' }}
@for($i = 1; $i <= 4; $i++) @php $question = $ln_pg->{'faq_'.$i.'_q'}; $answer = $ln_pg->{'faq_'.$i.'_a'}; @endphp @if(!empty($question) && !empty($answer))

{{ $answer }}
@endif @endfor
{{-- Footer Integration --}}
@include('frontend.partials.footer')
{{-- ✅ FIXED: WhatsApp Button --}} @if(!empty($waNumberClean)) whatsapp @endif {{-- OTP MODAL --}}