@extends('frontend.layouts.app') @section('title', 'Checkout - ShopNow') @section('content')

Checkout

@csrf
Shipping Address
@foreach($addresses as $addr)
is_default) checked @endif data-charge="{{ $addr->deliveryCharge->charge ?? 0 }}" data-days="{{ $addr->deliveryCharge->estimated_delivery_days ?? 0 }}">
@endforeach
Payment Method
{{--
--}}
Order Summary
@php $subtotal = 0; @endphp @foreach($carts as $cart) @php $itemPrice = optional($cart->variant)->final_price ?? optional($cart->product)->final_price ?? 0; if($itemPrice <= 0) $itemPrice = optional($cart->variant)->price ?? optional($cart->product)->price ?? 0; $subtotal += $itemPrice * $cart->quantity; @endphp
{{ $cart->quantity }}
{{ optional($cart->product)->name }}
{{ $cart->variant->name ?? '' }}
Rs. {{ number_format($itemPrice * $cart->quantity, 2) }}
@endforeach
Subtotal Rs. {{ number_format($subtotal, 2) }}
Discount - Rs. 0.00
Shipping --
Est. Delivery --
Total Rs. {{ number_format($subtotal, 2) }}
Secure checkout & fast delivery
@endsection @section('scripts') @endsection