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

Checkout

@csrf

Delivery Address

@if($addresses->count() > 0) @foreach($addresses as $address) @endforeach @else

No address found. Please add a delivery address.

Add Address @endif

Payment Method

Order Summary

@foreach($cartItems as $item) @if($item->product) @php if ($item->variant_id && $item->variant) { $sellPrice = $item->variant->final_price; $oldPrice = $item->variant->size_mrp; $sizeName = $item->variant->size_name; } else { $sellPrice = $item->product->final_price; $oldPrice = $item->product->productMrp; $sizeName = null; } $addons = $item->addons_json ? json_decode($item->addons_json, true) : []; $addonTotal = $item->addon_total ?? 0; $itemTotal = ($sellPrice * $item->quantity) + $addonTotal; @endphp
{{ $item->product->productName }}
@if($sizeName)
Size: {{ $sizeName }}
@endif @if($item->color_name)
Color: {{ $item->color_name }}
@endif
Qty: {{ $item->quantity }}
@if(!empty($addons))
Addons: @foreach($addons as $addon)
{{ $addon['label'] }} (+₹{{ number_format($addon['line_total'], 2) }})
@endforeach
@endif
₹{{ number_format($sellPrice, 2) }} @if($oldPrice > 0 && $oldPrice > $sellPrice) ₹{{ number_format($oldPrice, 2) }} @endif
₹{{ number_format($itemTotal, 2) }}
@endif @endforeach
Subtotal ₹{{ number_format($subtotal, 2) }}
Package Weight Calculating...
Shipping Select address
Total ₹{{ number_format($subtotal, 2) }}
@endsection