@extends('layouts.app') @section('title', 'Checkout - Chingu Bite') @section('content')

Checkout

@if(session('error'))
{{ session('error') }}
@endif @if($errors->any())
@endif
Order Items
@foreach($cartItems as $item)
{{ $item->menu->name }}
{{ $item->menu->name }}

Rp {{ number_format($item->menu->price, 0, ',', '.') }} x {{ $item->quantity }}

@if($item->notes)

Note: {{ $item->notes }}

@endif
Rp {{ number_format($item->menu->price * $item->quantity, 0, ',', '.') }}
@endforeach
Order Details
@csrf
Back to Cart
Order Summary
Subtotal: Rp {{ number_format($subtotal, 0, ',', '.') }}
Tax (10%): Rp {{ number_format($taxAmount, 0, ',', '.') }}
Service Fee: Rp {{ number_format($serviceFee, 0, ',', '.') }}

Total: Rp {{ number_format($total, 0, ',', '.') }}
Note: Your order will be processed after payment confirmation.
@endsection @section('scripts') @endsection