@php $cart = \App\Services\ThemeCartService::get(); $subtotal = collect($cart)->sum(fn($i) => $i['price'] * $i['qty']); $couponDiscount = (float) session('coupon_discount', 0); $orderTotal = $subtotal - $couponDiscount; $advanceSummary = $advanceSummary ?? \App\Services\AdvancePaymentService::emptySummary(); $checkoutShopCategories = \App\Models\Category::query() ->whereNull('parent_id') ->where('status', 1) ->where(fn ($q) => \App\Services\ThemeCatalogService::applyThemeScope($q)) ->with(['children' => fn ($q) => $q->where('status', 1) ->where(fn ($c) => \App\Services\ThemeCatalogService::applyThemeScope($c)) ->orderBy('sort_order') ->select(['id', 'name', 'slug', 'parent_id', 'sort_order'])]) ->orderBy('sort_order') ->get(['id', 'name', 'slug', 'sort_order']) ->map(fn ($cat) => [ 'id' => $cat->id, 'name' => $cat->name, 'children' => $cat->children->map(fn ($child) => [ 'id' => $child->id, 'name' => $child->name, ])->values()->all(), ]) ->values() ->all(); @endphp @push('styles') @endpush
@if(empty($cart))

Your cart is empty!

Continue Shopping
@else
আরও পণ্য যোগ করতে চান? Shop More চাপলে popup-এ product list দেখাবে — page ছাড়াই cart-এ add হবে, form data safe থাকবে।
@if(session('error')) @endif
{{-- Shipping + Payment --}}
Shipping Information
@csrf
Delivery Address *
Click to enter Address, Upazila & District
Address → Upazila/Police Station → District
Address Details
Area, upazila, district লিখলে auto select হবে (e.g. panchlaish, ctg) @include('shared.partials.delivery-area-breadcrumb')
আগে Upazila/Police Station select করুন — District auto fill হবে
@if(($shippingMode ?? 'district_wise') === 'simple') @else @endif
Payment Method
@include('frontEnd.partials.checkout-advance-payment') @include('frontEnd.partials.payment-method-options', ['style' => 'checkout']) @include('frontEnd.partials.checkout-manual-payment', ['manualAccounts' => \App\Services\ManualPaymentService::accounts()]) @if(!empty($shippingMessage))
{{ $shippingMessage }}
@endif @include('shared.math-captcha', ['captcha' => $orderCaptcha ?? []])
{{-- Order Summary --}}
Order Summary
{{-- Desktop table --}} @foreach($cart as $key => $item) @endforeach @if($couponDiscount > 0) @else @endif
{{ Str::limit($item['name'], 40) }}
৳{{ number_format($item['price']) }}
{{ number_format($item['price'] * $item['qty']) }}
Shipping Fee: ৳0
Discount: -৳{{ number_format($couponDiscount) }}
Total ৳{{ number_format($orderTotal) }}
{{-- Mobile cards (Organic-style) --}}
@foreach($cart as $key => $item)
@if(!empty($item['thumbnail'])) {{ $item['name'] }} @else
@endif
{{ Str::limit($item['name'], 50) }}
৳ {{ number_format($item['price']) }}
{{ number_format($item['price'] * $item['qty']) }}
@endforeach
Shipping Fee: ৳0
@if($couponDiscount > 0)
Discount: -৳{{ number_format($couponDiscount) }}
@else @endif
Total ৳{{ number_format($orderTotal) }}
{{-- Sticky mobile bar --}}
Total
৳{{ number_format($orderTotal) }}
@endif
@push('scripts') @endpush