@extends('layouts.app') @section('content') Checkout 🎉 Instant Prepaid Discount Pay online using Razorpay (UPI, Cards, Net Banking or Wallets) and get an instant prepaid discount on your order. @csrf Delivery Address @if($addresses->count() > 0) @foreach($addresses as $address) is_default ? 'checked' : '' }} required> {{ $address->name }} {{ $address->type }} @if($address->is_default) Default @endif {{ $address->address }}, {{ $address->city }}, {{ $address->state }} - {{ $address->pincode }} Phone: {{ $address->phone }} @endforeach @else No address found. Please add a delivery address. Add Address @endif Payment Method Cash On Delivery Pay when your order is delivered. Online Razorpay 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 Courier Prepaid Discount -₹0.00 Total ₹{{ number_format($subtotal, 2) }} count() == 0 ? 'disabled' : '' }}> Place Order @endsection
Pay online using Razorpay (UPI, Cards, Net Banking or Wallets) and get an instant prepaid discount on your order.
{{ $address->address }}, {{ $address->city }}, {{ $address->state }} - {{ $address->pincode }}
No address found. Please add a delivery address.
Pay when your order is delivered.
Razorpay