{{-- Fonts & Icons --}} {{-- Bootstrap & Toastr CSS --}} @php $information = \App\Models\Information::first(); // ✅ স্ক্রিনশট অনুযায়ী কালার কোড $headerBg = '#006400'; // Dark Green (সবুজ হেডার) $btnBg = '#8b0000'; // Maroon / Dark Red (অর্ডার বাটন) $contactBg = '#1877f2'; // Blue (কন্টাক্ট ব্যানার) $bodyBg = '#f5f6f8'; // Light Gray Background $productId = $product->id ?? 0; $productName = $product->name ?? ''; $pixelId = setting('fb_pixel_id') ?? null; $phoneNumber = $ln_pg->phone ?? '01XXX-XXXXXX'; // WhatsApp Number Formatting $waNumberClean = preg_replace('/\D+/', '', $phoneNumber); $contentCategory = $product?->category?->name ?? 'Landing Page'; $globalSetting = DB::table('delivery_charges')->first(); $isWeightBased = $globalSetting && $globalSetting->charge_type == 'weight_based'; // Variations Logic $variations = collect(); if($product){ try{ $product->loadMissing(['variations.size','variations.color', 'variations.stocks']); $variations = $product->variations ?? collect(); }catch(\Throwable $e){ $variations = $product->variations ?? collect(); } } $defaultPrice = ($product->after_discount > 0) ? intval($product->after_discount) : intval($product->sell_price ?? $product->price ?? 0); if(!empty($ln_pg->new_price)) $defaultPrice = $ln_pg->new_price; @endphp {{-- Facebook Pixel --}} @if(!empty(optional($information)->tracking_code)) {!! $information->tracking_code !!} @endif @if(!empty($pixelId)) {{-- DataLayer & CAPI Logic Setup --}} @endif {{-- ✅ ১. পেজ লোড ট্র্যাকিং (view_content) ✅ --}}
{{-- Headline --}}

{{ $ln_pg->title1 ?? 'Murdha Moaharee মুসলমানের শেষ গোসল ও শেষ বিদায় হোক পরিপূর্ণ শরীয়া মোতাবেক, পর্দা এবং সম্মানের সহিত' }}

{{-- Main Image --}} @if($ln_pg->right_product_image) Main Product @endif অর্ডার করতে ক্লিক করুন {{-- Video Section --}} @if(!empty($ln_pg->video_url))
অর্ডারের জন্য ভিডিওটি দেখুন
{!! $ln_pg->video_url !!}
অর্ডার করতে ক্লিক করুন @endif {{-- Gallery Section --}} @php $sliderImages = $ln_pg->images ?? collect([]); @endphp @if($sliderImages->count() > 0)
পণ্যগুলোর বিস্তারিত ছবি ও সাইজ দেখুন
অর্ডার করতে ক্লিক করুন @endif {{-- Contact Banner --}}

সরাসরি কথা বলুন এবং অর্ডার নিশ্চিত করুন

যেকোনো তথ্য জানতে কল করুন

{{ $phoneNumber }}
{{-- Features Section --}} @if(!empty($ln_pg->feature_title))
{{ $ln_pg->feature_title }}
@endif @if(!empty($ln_pg->feature_list))
{!! str_replace('
@endif অর্ডার করতে ক্লিক করুন {{-- Review Section --}} @if($ln_pg->review_images && $ln_pg->review_images->count() > 0)
কাস্টমার রিভিউ
@foreach($ln_pg->review_images->take(4) as $review) Review @endforeach
অর্ডার করতে ক্লিক করুন @endif {{-- Order Section --}}
অর্ডারটি কনফার্ম করুন
@csrf {{-- Product/Package Selection --}}
@if($variations->count() > 0) @foreach($variations as $key => $v) @php $vPrice = intval((isset($v->after_discount_price) && $v->after_discount_price > 0) ? $v->after_discount_price : ($v->price ?? $defaultPrice)); $label = trim(($v->size->name ?? '') . ' ' . ($v->color->name ?? '')); $imgSrc = $product->image ? getImage('products', $product->image) : asset('frontend/images/no-image.png'); $isChecked = ($key === 0) ? 'checked' : ''; @endphp
Img

{{ $productName }} ({{ $label }})

{{ $vPrice }}
@endforeach @else {{-- Default Single Product --}}
Img

{{ $productName }}

{{ $defaultPrice }}
@endif
{{-- Form & Summary Grid --}}
{{-- Left: Form & Payments --}}
{{-- ✅ Payment Methods --}}
{{-- ✅ FIXED SSL ACTIVE LOGIC --}} @if(isset($information->ssl_active) && $information->ssl_active == 1) @endif
{{-- Right: Summary --}}
অর্ডারের সারাংশ
{{-- ✅ Coupon Section --}} @if(isset($information->coupon_visibility) && $information->coupon_visibility == 1)
@endif
Subtotal 0 TK
Shipping Charge 0 TK
{{-- ✅ Discount Row --}}
Payable Amount 0 TK
{{-- ✅ Terms & Conditions Checkbox (Hidden by default, shown for SSL) --}} @if(isset($information->ssl_terms_active) && $information->ssl_terms_active == 1) @endif
{{-- Hidden input for selected items JSON --}}
{{-- ✅ FAQ Section ✅ --}} @if(!empty($ln_pg->faq_title) || !empty($ln_pg->faq_1_q))
{{ $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
@endif
{{-- Main Container End --}} {{-- ✅ Footer Integration ✅ --}}
@include('frontend.partials.footer')
{{-- ✅ WhatsApp Button ✅ --}} @if(!empty($waNumberClean)) whatsapp @endif {{-- ✅ OTP MODAL ✅ --}}