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

Order Detail

Transaction ID: {{ $transaction->id }}

Payment Completed
Back to Kasir
@if (session('success'))
{{ session('success') }}
@endif

Koproll Coffee

Semangat Bekerja kasir

{{ now()->format('d M Y, H:i:s') }}

Transaction Details

Transaction ID: {{ str_pad($transaction->id, 6, '0', STR_PAD_LEFT) }}
Date & Time: {{ $transaction->transaction_date->format('d/m/Y H:i') }}
Cashier: {{ $transaction->user->name }}

Payment Summary

Total Amount: Rp {{ number_format($transaction->total_amount, 0, ',', '.') }}
Payment: Rp {{ number_format($transaction->payment_amount, 0, ',', '.') }}
Change: Rp {{ number_format($transaction->change_amount, 0, ',', '.') }}

Order Items ({{ $transaction->transactionItems->count() }} items)

@foreach ($transaction->transactionItems as $item)

{{ $item->product->name }}

{{ $item->product->category->name ?? 'No Category' }}

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

Rp {{ number_format($item->subtotal, 0, ',', '.') }}

@endforeach
Subtotal: Rp {{ number_format($transaction->total_amount, 0, ',', '.') }}
TOTAL: Rp {{ number_format($transaction->total_amount, 0, ',', '.') }}

Order Ready to Prepare!

Thank you for your order. Please prepare the items listed above.

New Order
@endsection