@extends('layouts.app') @section('title', 'Checkout') @php $currencyDecimals = App\Models\AppSetting::currencyDecimals(); $currencySymbol = App\Models\AppSetting::getValue('currency_symbol', '₹'); @endphp @section('styles') @endsection @section('content')
Delivery Address
@if($addresses->isEmpty())
No saved addresses found. Please add an address first.
Add New Address @else @foreach($addresses as $address)
{{ $address->name }}
{{ $address->address }}
{{ $address->city }}, {{ $address->state }} - {{ $address->pincode }}
{{ $address->phone }}
@if($loop->first) Recommended @endif
@endforeach @endif
Payment Method
Pay when you receive your order
@if($gatewayEnabled)
Secure payment via Stripe/Razorpay
Pay using PhonePe, Google Pay, PayTM
@endif
Order Summary
@foreach($cartItems as $item)
{{ $item['name'] }}
Qty: {{ $item['quantity'] }}
{{ $currencySymbol }}{{ number_format($item['total'], App\Models\AppSetting::currencyDecimals()) }}
@endforeach

Subtotal {{ $currencySymbol }}{{ number_format($subtotal, App\Models\AppSetting::currencyDecimals()) }}
Delivery Fee {{ $currencySymbol }}{{ number_format($deliveryFee, App\Models\AppSetting::currencyDecimals()) }}
Platform Fee {{ $currencySymbol }}{{ number_format($platformFee, App\Models\AppSetting::currencyDecimals()) }}
Tax (GST 5%) {{ $currencySymbol }}{{ number_format($tax, App\Models\AppSetting::currencyDecimals()) }}

Total {{ $currencySymbol }}{{ number_format($total, App\Models\AppSetting::currencyDecimals()) }}
@if(!$restaurant->is_open)
Store is currently closed. @if($restaurant->open_time && $restaurant->close_time) Orders can only be placed between {{ \Carbon\Carbon::parse($restaurant->open_time)->format('h:i A') }} and {{ \Carbon\Carbon::parse($restaurant->close_time)->format('h:i A') }}. @else Orders can only be placed when the store reopens. @endif
@endif

By placing an order, you agree to our Terms and Conditions

@endsection