@extends('layouts.app') @section('content')

Checkout

Order Summary

    @foreach ($cartItems as $item)
  • @php $displayImage = $item->product->image; if ($item->color && $item->product->color_images && is_array($item->product->color_images) && array_key_exists($item->color, $item->product->color_images) && $item->product->color_images[$item->color]) { $displayImage = $item->product->color_images[$item->color]; } @endphp @if ($displayImage) {{ $item->product->name }} @else {{ $item->product->name }} @endif

    {{ $item->product->name }}

    @if ($item->color)

    Color: {{ $item->color }}

    @endif @if ($item->size)

    Size: {{ $item->size }}

    @endif

    ৳{{ number_format($item->price * $item->quantity, 2) }}

  • @endforeach

Subtotal

৳{{ number_format($subtotal, 2) }}

Delivery Charge

৳{{ number_format($shipping, 2) }}

Total

৳{{ number_format($total, 2) }}

Shipping Information

@csrf

Shipping Address

Billing Address

Payment Method

Order Notes (Optional)

Maximum 500 characters

@endsection