{{-- resources/views/employee/payments/show.blade.php --}} @extends('layouts.employee') @section('title', 'Payment Details - Chingu Bite') @section('content')

Payment Details

Back to List
Payment #{{ $payment['id'] }} {{ ucfirst(str_replace('_', ' ', $payment['status'])) }}
Order Number: #{{ $payment['order']['order_number'] ?? 'N/A' }}
Customer: {{ $payment['order']['customer']['name'] ?? 'Guest' }}
Phone: {{ $payment['order']['customer']['phone'] ?? 'N/A' }}
Email: {{ $payment['order']['customer']['email'] ?? 'N/A' }}
@if($payment['confirmed_at']) @endif
Payment Method: {{ $payment['payment_method']['name'] ?? 'Unknown' }}
Amount: Rp {{ number_format($payment['amount'], 0, ',', '.') }}
Submitted: {{ \Carbon\Carbon::parse($payment['created_at'])->format('d M Y, H:i') }}
Confirmed: {{ \Carbon\Carbon::parse($payment['confirmed_at'])->format('d M Y, H:i') }}
@if($payment['notes'])
Notes:
{{ $payment['notes'] }}
@endif @if($payment['reference_number'])
Reference Number: {{ $payment['reference_number'] }}
@endif
Order Summary
@if(isset($payment['order']['items']))
@foreach($payment['order']['items'] as $item) @endforeach @if(($payment['order']['tax_amount'] ?? 0) > 0) @endif @if(($payment['order']['discount_amount'] ?? 0) > 0) @endif
Item Qty Price Subtotal
{{ $item['menu']['name'] ?? 'Menu Item' }} {{ $item['quantity'] }} Rp {{ number_format($item['unit_price'], 0, ',', '.') }} Rp {{ number_format($item['subtotal'], 0, ',', '.') }}
Subtotal: Rp {{ number_format($payment['order']['total_amount'] ?? 0, 0, ',', '.') }}
Tax: Rp {{ number_format($payment['order']['tax_amount'] ?? 0, 0, ',', '.') }}
Discount: -Rp {{ number_format($payment['order']['discount_amount'] ?? 0, 0, ',', '.') }}
Final Amount: Rp {{ number_format($payment['order']['final_amount'] ?? 0, 0, ',', '.') }}
@else

Order details not available

@endif
Payment Proof
@if($payment['proof_image'])
Payment Proof
View Full Size Download @else

No payment proof uploaded

@endif
Payment Status
@if($payment['status'] == 'waiting_confirmation')
Waiting for Confirmation

Please verify the payment proof and confirm or reject.

@elseif($payment['status'] == 'confirmed')
Payment Confirmed @if($payment['confirmed_by'])

Confirmed by: {{ $payment['confirmed_by_user']['name'] ?? 'Staff' }}
Date: {{ \Carbon\Carbon::parse($payment['confirmed_at'])->format('d M Y, H:i') }}

@endif
@elseif($payment['status'] == 'failed')
Payment Failed @if($payment['notes'])

{{ $payment['notes'] }}

@endif
@endif
@if($payment['status'] == 'waiting_confirmation')
Quick Actions
@endif
@include('employee.payments.modals.confirm') @include('employee.payments.modals.reject') @include('employee.payments.modals.request-proof') @endsection @section('scripts') @endsection