@extends('layouts.app') @section('title', 'Checkout') @php $fees = ['inside' => \App\Services\Cart::shippingFee('inside'), 'outside' => \App\Services\Cart::shippingFee('outside')]; $area = old('area', 'inside'); $pay = old('payment_method', 'cod'); $t = $totals[$area]; $err = fn ($k) => $errors->has($k) ? 'error' : ''; @endphp @section('content')
✓Cart
{{ $placed ? '✓' : '2' }}Shipping & Payment
{{ $placed ? '✓' : '3' }}Confirmation
@error('cart')
{{ $message }}
@enderror
@csrf {{-- ===================== LEFT ===================== --}}
Order Review {{ $items->isNotEmpty() ? $items->sum('qty').' টি আইটেম' : '' }}
@forelse ($items as $i)
@if ($i->image)@else{{ $i->icon ?: '📦' }}@endif

{{ $i->name }}

@if ($i->size || $i->color){{ collect([$i->size ? 'Size: '.$i->size : null, $i->color ? 'Color: '.$i->color : null])->filter()->implode(' · ') }}@endif ৳{{ number_format($i->price) }} @if ($i->old)৳{{ number_format($i->old) }}@endif @if ($i->campaign)· {{ $i->campaign->title }}@endif
{{ $i->qty }}
৳{{ number_format($i->line) }}
@empty
🛒
আপনার কার্ট খালি
শপিং শুরু করুন →
@endforelse
@if ($items->isNotEmpty()) {{-- aro product kinte: shop e giye add korle cart e jog hobe, abar checkout e fire ashbe --}} + Add More Product আরও পণ্য যোগ করুন @endif
Shipping Address
{{ $errors->first('name') ?: 'নাম লিখুন' }}
+88
{{ $errors->first('phone') ?: 'সঠিক মোবাইল নম্বর দিন (01XXXXXXXXX)' }}
+88
{{ $errors->first('phone_alt') ?: 'সঠিক মোবাইল নম্বর দিন' }}
{{ $errors->first('address') ?: 'পূর্ণ ঠিকানা লিখুন (অন্তত ১০ অক্ষর)' }}
{{-- ===================== RIGHT ===================== --}}
Payment Method
@foreach (['cod' => ['💵', 'Cash on Delivery', 'পণ্য হাতে পেয়ে'], 'bkash' => ['bKash', 'bKash', 'Mobile wallet'], 'nagad' => ['Nagad', 'Nagad', 'Mobile wallet'], 'ssl' => ['SSL', 'SSLCommerz', 'Card / Net banking']] as $v => [$logo, $name, $sub]) @endforeach
Order Summary
Total Products{{ str_pad($items->sum('qty'), 2, '0', STR_PAD_LEFT) }}
Subtotal৳{{ number_format($t['subtotal']) }}
ডেলিভারি চার্জ৳{{ number_format($t['shipping']) }}
TOTAL৳{{ number_format($t['total']) }}
@if ($t['coupon'])✓ "{{ $t['coupon'] }}" প্রয়োগ হয়েছে — {{ $t['coupon_label'] }} Remove@endif
Special Notes (Optional)
🔒 আপনার তথ্য সম্পূর্ণ নিরাপদ
← Return to home
Total payable৳{{ number_format($t['total']) }}
{{-- ================= SUCCESS MODAL (order place howar por) ================= --}} @if ($placed) @endif @endsection @push('scripts') @endpush