| {{ $tx['transaksi_id'] ?? '-' }} |
{{ $tx['bank_code'] }} |
{{ $tx['account'] }} |
Rp {{ number_format($tx['amount'],0,',','.') }} |
@php
$st = strtolower($tx['status'] ?? 'pending');
$stColor = match(true) {
in_array($st,['success','sukses','completed']) => 'background-color:rgba(34,197,94,0.12); color:#22c55e;',
in_array($st,['failed','gagal','error']) => 'background-color:rgba(244,63,94,0.12); color:#f43f5e;',
default => 'background-color:rgba(245,158,11,0.12); color:#f59e0b;'
};
@endphp
{{ strtoupper($tx['status'] ?? 'PENDING') }}
|
{{ \Carbon\Carbon::parse($tx['created_at'])->format('d M Y H:i') }} |
@endforeach