@extends('layouts.shop') @section('title', 'Checkout') @section('content')

Checkout

Complete your order by filling in the details below.

Back to Cart
@csrf
{{-- ============= LEFT COLUMN: Billing + Product Details ============= --}}
{{-- ======= Billing Details ======= --}}

Billing Details

Fill in your information to complete the order

{{-- Name --}}
@error('customer_name')

{{ $message }}

@enderror
{{-- Email (Optional) --}}
@error('customer_email')

{{ $message }}

@enderror
{{-- Mobile Number --}}
@error('customer_phone')

{{ $message }}

@enderror
{{-- Select Area --}}
@error('area')

{{ $message }}

@enderror
{{-- Full Address --}}
@error('shipping_address')

{{ $message }}

@enderror
{{-- Order Notes --}}
@error('notes')

{{ $message }}

@enderror
{{-- Payment Method --}}

Cash on Delivery (COD)

Pay when you receive your order

No extra fees
{{-- ======= Product Details ======= --}}

Product Details

{{ count($cart) }} {{ Str::plural('item', count($cart)) }} in your order

{{-- Desktop Table Header --}} {{-- Cart Items --}}
@foreach($cart as $cartKey => $details)
{{-- Product Name + Color --}}
{{-- Mobile-only image --}}
{{ $details['name'] }}

{{ $details['name'] }}

@if(!empty($details['selected_color']))

Color : {{ $details['selected_color'] }}

@endif @if(!empty($details['selected_size']))

Size : {{ $details['selected_size'] }}

@endif

Qty: {{ $details['quantity'] }} × ৳{{ number_format($details['price'], 0) }}

{{-- Selling Price --}}
৳{{ number_format($details['price'], 0) }} @if(!empty($details['compare_price']) && $details['compare_price'] > $details['price']) ৳{{ number_format($details['compare_price'], 0) }} @endif
{{-- Image (desktop) --}} {{-- Quantity + Remove (below on mobile, right-aligned on desktop) --}}
{{-- Quantity selector --}}
{{ $details['quantity'] }}
{{-- Remove --}}
@endforeach
@if(empty($cart))

Your cart is empty.

@endif
{{-- ============= RIGHT COLUMN: Order Summary ============= --}}

Order Summary

{{-- Summary Items --}}
@foreach($cart as $cartKey => $details)
{{ $details['name'] }}

{{ $details['name'] }}

Qty: {{ $details['quantity'] }}

৳{{ number_format($details['price'] * $details['quantity'], 0) }}
@endforeach
{{-- Totals --}}
Sub-Total (+) ৳{{ number_format($total, 0) }}
Shipping ৳{{ number_format($shipping, 0) }}
Total ৳{{ number_format($grandTotal, 0) }}
{{-- Submit --}} {{-- Trust --}}
Your information is secured via SSL encryption
@endsection @section('scripts') @endsection @push('styles') @endpush