@php $information = \App\Models\Information::first(); // ✅✅ DYNAMIC COLORS & TEXTS SETUP $brandGradient = $ln_pg->theme_gradient_col ?? (optional($information)->gradient_code ?? 'linear-gradient(90deg,#0d6efd,#00276C)'); $brandSolid = $ln_pg->theme_primary_col ?? (optional($information)->primary_color ?? '#00276C'); $btnBgColor = $ln_pg->btn_bg_color ?? $brandSolid; $btnTextColor = $ln_pg->btn_text_color ?? '#ffffff'; $txtHero = $ln_pg->btn_text_hero ?: 'অর্ডার করতে ক্লিক করুন'; $txtVideo = $ln_pg->btn_text_video ?: 'অর্ডার করতে চাই'; $txtFeature = $ln_pg->btn_text_feature ?: 'অর্ডার করুন'; $txtForm = $ln_pg->btn_text_form ?: 'অর্ডার কনফার্ম করুন'; $pageTitle = $title ?? ($ln_pg->title1 ?? 'Landing Page'); $product = $ln_pg->product ?? null; $variations = collect(); if($product){ try{ $product->loadMissing(['variations.size','variations.color', 'variations.stocks', 'category']); $variations = $product->variations ?? collect(); }catch(\Throwable $e){ $variations = $product->variations ?? collect(); } } $defaultVar = $variations->first(); $defaultVarId = $defaultVar->id ?? null; $defaultBase = $defaultVar->price ?? null; $defaultDisc = $defaultVar->after_discount_price ?? null; $defaultPrice = null; if($defaultDisc !== null && $defaultDisc !== '' && (float)$defaultDisc > 0){ $defaultPrice = $defaultDisc; }elseif($defaultBase !== null && $defaultBase !== '' && (float)$defaultBase > 0){ $defaultPrice = $defaultBase; }else{ $defaultPrice = ($product && (float)($product->after_discount ?? 0) > 0) ? $product->after_discount : ($product->sell_price ?? 0); } $defaultStock = 0; if($defaultVar) { $defaultStock = $defaultVar->stocks->sum('quantity'); } elseif($product) { $defaultStock = $product->stock_quantity ?? 0; } $pixelId = setting('fb_pixel_id') ?? null; $contentCategory = $product?->category?->name ?? 'Landing Page'; $productId = $product->id ?? 0; $productName = $product->name ?? ''; $globalSetting = DB::table('delivery_charges')->first(); $isWeightBased = $globalSetting && $globalSetting->charge_type == 'weight_based'; @endphp {{ $pageTitle }} {{-- ✅ TOASTR CSS --}} @if(!empty(optional($information)->tracking_code)) {!! $information->tracking_code !!} @endif @if(!empty($pixelId)) @endif {{-- ✅ ১. পেজ লোড ট্র্যাকিং (view_content) ✅ --}}

{{ $ln_pg->title1 }}

{{ $ln_pg->call_text ?? '' }}
img
{{ $ln_pg->title1 }}
{!! $ln_pg->video_url !!}
{{ $ln_pg->left_side_title }}
{!! $ln_pg->left_side_desc !!}
{{ $ln_pg->feature }}
@if(isset($ln_pg->review_top_text))
{{ $ln_pg->review_top_text }}
@endif
{{ BanglaText('land_instruction') }}
@csrf
@if(isset($information->ssl_active) && $information->ssl_active == 1) @endif

Billing Address

Your Order

{{-- ✅✅✅ NEW DYNAMIC PACKAGE SELECTION SECTION ✅✅✅ --}} @if($ln_pg->packages && $ln_pg->packages->count() > 0)

প্যাকেজ সিলেক্ট করুন:

@php // সবসময় প্রথমটি (১ পিস) সিলেক্ট রাখতে $defaultPkgId null করে দেওয়া হলো $defaultPkgId = null; @endphp {{-- ✅ ১ পিসের ডিফল্ট অপশন --}} {{-- ✅ অ্যাডমিন প্যানেল থেকে আসা প্যাকেজগুলো --}} @foreach($ln_pg->packages as $pkg) @endforeach
@endif {{-- ================================================= --}} @if($variations->count()) {{-- ✅ CSS দিয়ে হাইড করার লজিক: যদি ভেরিয়েশন 1 বা তার কম হয়, তবে CSS দিয়ে হাইড হয়ে যাবে --}} @endif {{-- ✅ ALWAYS Show traditional quantity selector --}} @if(isset($information->coupon_visibility) && $information->coupon_visibility == 1) @endif
Product Subtotal
@if(!empty($product))
{{ $productName }}
@endif
{{ $defaultPrice }}
{{ $defaultStock > 0 ? 'In Stock: '.$defaultStock : 'Out of Stock' }}
Select Variation (Size / Color) *
Select Quantity
- +
Subtotal
Shipping 0
Total
{!! BanglaText('alert') !!}
@if(isset($information->ssl_terms_active) && $information->ssl_terms_active == 1) @endif
@php $waNumber = $ln_pg->whatsapp ?? $ln_pg->phone ?? ''; $waNumberClean = preg_replace('/\D+/', '', $waNumber); @endphp @if(!empty($waNumberClean)) whatsapp @endif @include('frontend.partials.footer')
{{-- ✅ TOASTR JS --}}