Pemohon
{{ $withdrawal->user->name ?? '-' }}
Tanggal Pengajuan
{{ optional($withdrawal->created_at)->format('d/m/Y H:i') }}
Nominal
Rp {{ number_format($withdrawal->amount, 0, ',', '.') }}
Status
@php($statusColor = match($withdrawal->status){
'approved' => 'bg-green-100 text-green-800',
'rejected' => 'bg-red-100 text-red-800',
'paid' => 'bg-teal-100 text-teal-800',
default => 'bg-yellow-100 text-yellow-800'
})
{{ ucfirst($withdrawal->status) }}
@php($proofPath = null)
@php($cleanNotes = $withdrawal->notes ?? '')
@if(!empty($withdrawal->notes))
@php(preg_match('/Bukti\s+transfer:\s*(.+)$/i', $withdrawal->notes, $m))
@if(!empty($m[1]))
@php($proofPath = trim($m[1]))
@php($cleanNotes = preg_replace('/\|?\s*Bukti\s+transfer:\s*.+$/i', '', $withdrawal->notes))
@endif
@endif
Catatan
{{ trim($cleanNotes) !== '' ? trim($cleanNotes) : '-' }}
@if($withdrawal->status === 'paid' && $proofPath)
@endif
Diverifikasi Oleh
{{ $withdrawal->verifier->name ?? '-' }}
Tanggal Verifikasi
{{ optional($withdrawal->verified_at)->format('d/m/Y H:i') ?? '-' }}