@extends('layouts.site') @php use App\Support\Pkg; $priceBn = bn(\App\Support\Words::plain($p->salePrice ?? $p->starting_price)); $heroImgs = $p->hero_images ?: [$p->card_image]; $gal = $p->gallery; $details = Pkg::details($p); $detailFaq = array_values(array_filter($details, fn ($d) => $d['faq'])); $details = array_values(array_filter($details, fn ($d) => !$d['faq'])); $waText = $p->wa_message ?: "আসসালামু আলাইকুম, আমি {$p->title} সম্পর্কে জানতে চাই।"; $bookUrl = on('booking') ? '/book?package=' . $p->slug : '/contact'; $barPrice = $priceBn . ' টাকা'; $slug = $p->slug; $noStrip = true; $days = on('itinerary') ? $p->itineraryDays : []; $nav = array_filter([ 'overview' => ($p->overview_intro || $p->targetList || $p->specialList || $p->tourHighlights) ? 'পরিচিতি' : null, 'itinerary' => $days ? 'ভ্রমণসূচি' : null, 'prices' => 'দাম', 'attractions' => (($p->attractionsList && on('attractions')) || ($p->activitiesList && on('activities'))) ? 'আকর্ষণ' : null, 'includes' => $p->inclusionsList ? 'যা পাবেন' : null, 'media' => ($gal || (($p->video_url || $p->video_file) && on('video'))) ? 'ছবি ও ভিডিও' : null, 'details' => $details ? 'বিস্তারিত' : null, 'faq' => (($p->faqList || $detailFaq) && on('faq')) ? 'প্রশ্নোত্তর' : null, ]); $ambient = (s('ambient_enabled', '1') !== '0' && on('ambient')) ? ($p->ambient ?: 'off') : 'off'; @endphp @section('content')
{{-- 1. HERO --}}
@foreach($heroImgs as $i => $src)
{{ $p->title_en }} photo {{ $i + 1 }}
@endforeach

@if($p->hero_headline){{ $p->title_en }} · {{ $p->title }}{{ $p->hero_headline }}@else{{ $p->title_en }}{{ $p->title }}@endif

{{ \App\Support\Pkg::schedule($p) }}

{{ $p->tagline }}

@if($p->hero_desc)

{{ $p->hero_desc }}

@endif
প্যাকেজ মূল্য @if(($p->discPct ?? 0) > 0)🔥 বিশেষ অফার · এখন {{ bn(round($p->discPct)) }}% ছাড় চলছে{{ ($p->discLabel ?? '') ? ' · ' . $p->discLabel : '' }}@if(!empty($p->discUntil)) @php $dl = (int) floor((strtotime($p->discUntil) - strtotime(\App\Support\Util::today())) / 86400) + 1; @endphp({{ bn(date('d/m/Y', strtotime($p->discUntil))) }} পর্যন্ত · {{ $dl <= 1 ? 'আজই শেষ দিন!' : 'আর ' . bn($dl) . ' দিন বাকি' }})@endif@endif{{ ($p->discPct ?? 0) > 0 ? 'ছাড়ের পরে জনপ্রতি' : 'জনপ্রতি মাত্র' }} {{ $priceBn }} টাকা @if(($p->discPct ?? 0) > 0)নিয়মিত {{ bn(\App\Support\Words::plain($p->starting_price)) }} টাকা@elseif($p->old_price && $p->old_price > $p->starting_price){{ bn(\App\Support\Words::plain($p->old_price)) }}@endif@if(!empty($p->price_text)){{ $p->price_text }}@endif @if(count($p->activeRates) > 1){{ implode(' • ', array_map(fn ($r) => 'জনপ্রতি ' . bn(\App\Support\Words::plain(\App\Support\Pkg::sale($p, (int) $r->price))) . ' টাকা – ' . $r->name, array_slice($p->activeRates, 0, 3))) }}@endif @if($p->price_note){{ $p->price_note }}@endif
  • {{ $p->route }}
  • {{ $p->duration }}
  • {{ $p->departure }}
@include('site.cta', ['book' => $bookUrl, 'wat' => $waText, 'cls' => 'cta-hero', 'label' => $p->cta_text ?: 'এখনই বুক করুন', 'slug' => $p->slug])
@foreach($heroImgs as $i => $_)@endforeach
{{-- sticky section navigation (main sections) --}} @if($gal)
@for($k = 0; $k < 2; $k++)@foreach($gal as $i => $g)@endforeach @endfor
@endif
{{-- 2. OVERVIEW: intro + who/special + highlights as cards --}} @if(isset($nav['overview']))
🌟

প্যাকেজ পরিচিতি

এক নজরে কী পাচ্ছেন
@if($p->overview_intro)

{{ $p->overview_intro }}

@endif
@if($p->targetList)

👥 কাদের জন্য এই ট্যুর

    @foreach($p->targetList as $x)
  • {!! \App\Support\Emoji::text($x['icon']) !!}{{ $x['text'] }}
  • @endforeach
@endif @if($p->specialList)

✨ বিশেষ সুবিধা

    @foreach($p->specialList as $x)
  • {!! \App\Support\Emoji::text($x['icon']) !!}{{ $x['text'] }}
  • @endforeach
@endif
@if($p->tourHighlights)

ট্যুর হাইলাইটস কার্ডে চাপ দিয়ে বিস্তারিত দেখুন

@foreach($p->tourHighlights as $i => $h) @endforeach
@endif
@endif @include('site.partials.bookband') {{-- 3. ITINERARY: one thumbnail card per day → full-screen day-by-day viewer --}} @if($days)
🗺️

দিনভিত্তিক ভ্রমণসূচি

যেকোনো দিনে চাপ দিন, পুরো দিনের সময় ধরে কর্মসূচি খুলবে
@foreach($days as $i => $d) @endforeach
⏰ সময় অনুযায়ী প্রতিদিনের কর্মসূচিকোন দিন কখন কী হবে
@foreach($days as $i => $d)@endforeach
@foreach($days as $i => $d) @endforeach
@endif @include('site.partials.bookband', ['bbTitle' => 'ভ্রমণসূচি দেখে ভালো লাগলো? তারিখ বেছে বুক করুন', 'bbCls' => 'bb-alt']) {{-- 4. PRICES (always open: price builds confidence) --}}
💰

প্যাকেজ মূল্য

রুম / কেবিন শেয়ারিং অনুযায়ী জনপ্রতি
@php $baths = array_values(array_unique(array_filter(array_map(fn ($r) => $r->bath ?? '', $p->activeRates)))); $pprs = array_values(array_unique(array_filter(array_map(fn ($r) => (int) ($r->persons_per_room ?? 0), $p->activeRates)))); sort($pprs); $loc = fn ($u) => preg_match('/[ুূ]$/u', $u) ? $u . 'তে' : $u . 'ে'; @endphp @if(count($baths) > 1 || count($pprs) > 1)
🛏️ আপনার পছন্দের অপশন বেছে নিন @if(count($baths) > 1)
ওয়াশরুম:
@endif @if(count($pprs) > 1)
এক {{ $loc($p->activeRates[0]->unit_label ?: 'রুম') }}:@foreach($pprs as $n)@endforeach
@endif
@endif
@foreach($p->activeRates as $i => $r)
@if($i === 0)সবচেয়ে জনপ্রিয়@endif

{{ $r->name }}

@if(($r->bath ?? '') === 'attached')🚿 ওয়াশরুম সহ@elseif(($r->bath ?? '') === 'shared')🚻 ওয়াশরুম বাইরে (কমন)@endif @if($r->persons_per_room)👥 এক {{ $loc($r->unit_label ?: 'রুম') }} {{ bn($r->persons_per_room) }} জন@endif
@include('site.partials.pbox', ['reg' => (int) $r->price, 'sale' => \App\Support\Pkg::sale($p, (int) $r->price), 'pct' => $p->discPct ?? 0]) @if($r->min_persons)

কমপক্ষে {{ bn($r->min_persons) }} জন

@endif @if($r->note)

{{ $r->note }}

@endif @if(on('booking'))এই রেটে বুক করুন@endif
@endforeach

বুকিং নিশ্চিত করতে অগ্রিম: {{ $p->advance_type === 'percent' ? bn((int) $p->advance_value) . '% (মোট মূল্যের)' : 'জনপ্রতি ' . bn(\App\Support\Words::plain($p->advance_value)) . ' টাকা' }} • বাকি টাকা যাত্রার আগে। @if($p->child_note)
শিশু: {{ $p->child_note }}@endif

@if($p->priceRules)
📅 দিন ও মৌসুম অনুযায়ী দাম
    @foreach($p->priceRules as $r)
  • {{ \App\Support\Pricing::ruleText($r) }}@if($r->rate_id) ({{ collect($p->rates)->firstWhere('id', $r->rate_id)->name ?? '' }})@endif
  • @endforeach
@endif @include('site.cta', ['book' => $bookUrl, 'wat' => $waText, 'slug' => $p->slug])
{{-- 5. ATTRACTIONS & ACTIVITIES --}} @if(isset($nav['attractions']))
📍

বিশেষ আকর্ষণ ও কার্যক্রম

যা দেখবেন, যা করবেন
@if($p->attractionsList && on('attractions'))
@foreach($p->attractionsList as $i => $a) @endforeach
@endif @if($p->activitiesList && on('activities'))

🎉 বিশেষ অ্যাক্টিভিটি: মাছ ধরা, পাখি দেখা, ঘুড়ি ওড়ানো ও আরও অনেক কিছু

ট্যুরে যা যা করতে পারবেন
    @foreach($p->activitiesList as $i => $a)
  • {!! \App\Support\Emoji::text($a['icon']) !!}{{ $a['text'] }}
  • @endforeach
@endif
@endif @include('site.partials.bookband', ['bbTitle' => 'এই সব আকর্ষণ নিজের চোখে দেখুন, সিট সীমিত']) {{-- 6. INCLUDES / EXCLUDES --}} @if($p->inclusionsList)

✅ প্যাকেজে যা অন্তর্ভুক্ত

    @foreach($p->inclusionsList as $x)
  • {{ $x }}
  • @endforeach
@if($p->exclusionsList)

❌ প্যাকেজের বাইরে

    @foreach($p->exclusionsList as $x)
  • {{ $x }}
  • @endforeach
@endif
@endif {{-- 7. PHOTOS & VIDEO --}} @if(isset($nav['media']))
📸

ছবি ও ভিডিওতে {{ $p->title }}

ছবিতে চাপ দিলে বড় করে দেখাবে
@if(($p->video_url || $p->video_file) && on('video')) @php preg_match('/(?:youtu\.be\/|v=|shorts\/|embed\/)([\w-]{11})/', $p->video_url ?? '', $yt); $fb = !$yt && preg_match('/facebook\.com|fb\.watch/', $p->video_url ?? ''); $embed = $yt ? 'https://www.youtube-nocookie.com/embed/' . $yt[1] . '?autoplay=1&rel=0&playsinline=1' : ($fb ? 'https://www.facebook.com/plugins/video.php?href=' . rawurlencode($p->video_url) . '&show_text=false&autoplay=true' : ''); $thumb = $p->video_poster ?: ($yt ? 'https://i.ytimg.com/vi/' . $yt[1] . '/hqdefault.jpg' : $heroImgs[0]); @endphp @endif @if($gal)
@foreach($gal as $i => $g)@endforeach
@endif
@endif @include('site.partials.bookband', ['bbTitle' => 'পরের ছবিগুলো আপনার হোক, আজই বুক করুন', 'bbCls' => 'bb-alt']) {{-- 8. FULL DETAILS as thumbnail tiles: tile → summary → "আরও দেখুন" → every detail --}} @if($details)
📖

সম্পূর্ণ বিস্তারিত তথ্য

যে বিষয়ে জানতে চান, সেই কার্ডে চাপ দিন
@foreach($details as $i => $d) @endforeach
@foreach($details as $d) @endforeach
@endif {{-- 9. FAQ --}} @if(isset($nav['faq']))
❓

প্রশ্ন ও উত্তর (FAQ)

এই ট্যুর নিয়ে সাধারণ প্রশ্ন · প্রশ্নে চাপ দিলে উত্তর দেখাবে
@php $fg = $detailFaq ? Pkg::faqParse($detailFaq[0]['first'] . $detailFaq[0]['rest']) : [['title' => '', 'items' => $p->faqList]]; @endphp @if(count($fg) > 1)
@foreach($fg as $gi => $g)@endforeach
@endif @foreach($fg as $gi => $g) @endforeach

আপনার প্রশ্নের উত্তর পাননি? WhatsApp এ জিজ্ঞাসা করুন অথবা কল করুন {{ s('phone2') ?: s('phone') }}

@endif @include('site.partials.bookband', ['bbTitle' => 'সব প্রশ্নের উত্তর পেয়েছেন? এখনই বুক করুন']) @if(count($testimonials) && on('experience'))
@include('site.partials.reviews', ['xpTitle' => 'যারা ঘুরে এসেছেন, তাদের কথা', 'xpSub' => $p->title . ' ও আমাদের অন্যান্য ট্যুরের কাস্টমারদের অভিজ্ঞতা', 'xpId' => 'reviews'])
@endif
💳

পেমেন্ট তথ্য

অগ্রিম দিয়ে আসন নিশ্চিত করুন
ব্যাংক{{ s('bank_name') }}{{ s('bank_branch') }}
হিসাবের নাম{{ s('bank_account_name') }}A/C: {{ s('bank_account_no') }}
মোবাইল ব্যাংকিং{{ s('mobile_banking') }}
@include('site.partials.payqr')
@if($others)

অন্যান্য ট্যুর প্যাকেজ

@if(!empty($p->hashtags))

@foreach(preg_split('/[\s,]+/u', trim($p->hashtags)) as $h)@if($h !== ''){{ str_starts_with($h, '#') ? $h : '#' . $h }}@endif @endforeach

@endif
@endif @include('site.partials.blog-latest') @include('site.partials.trust')
{{-- full-screen day-by-day itinerary viewer --}} @if($days) @endif @include('site.partials.lightbox') @include('site.partials.ambient', ['ambient' => $ambient, 'file' => $p->ambient_file, 'vol' => $p->ambient_volume ?? 35]) @push('foot') @endpush @endsection