@extends('admin.layouts.app') @section('title', 'Detail Payment: ' . $payment->payment_code) @section('content')
Kembali ke daftar payment Lihat Receipt User

Kode Payment

{{ $payment->payment_code }}

{{ $payment->status }}

Subtotal

Rp {{ number_format($payment->display_subtotal, 0, ',', '.') }}

Diskon

Rp {{ number_format($payment->display_discount_total, 0, ',', '.') }}

Total

Rp {{ number_format($payment->display_total, 0, ',', '.') }}

Item Game Dibeli

@foreach($payment->items as $item) @endforeach
Game Harga Diskon Qty Subtotal
@if($item->game?->thumbnail_url) {{ $item->title }} @else
N/A
@endif

{{ $item->title }}

Game ID: {{ $item->game_id ?? '-' }}

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

Informasi User

Nama {{ $payment->user->name ?? 'User dihapus' }}
Email {{ $payment->user->email ?? '-' }}
User ID {{ $payment->user_id }}

Informasi Payment

Metode {{ ucwords(str_replace('_', ' ', $payment->method)) }}
Dibayar {{ $payment->paid_at?->format('d M Y H:i') ?? '-' }}
Dibuat {{ $payment->created_at->format('d M Y H:i') }}
Diperbarui {{ $payment->updated_at->format('d M Y H:i') }}
@endsection