@extends('layouts.app') @section('content')
Invoice | User | Total | Status | Bukti | Aksi |
---|---|---|---|---|---|
{{ $trx->id }} | {{ $trx->user->name ?? '-' }} | Rp {{ number_format($trx->total, 0, ',', '.') }} | @php $badgeColor = match($trx->status) { 'pending' => 'bg-yellow-400', 'payment_verification' => 'bg-blue-500', 'paid' => 'bg-green-500', 'rejected' => 'bg-red-500', 'expired' => 'bg-gray-400', default => 'bg-gray-300' }; @endphp {{ ucfirst(str_replace('_', ' ', $trx->status)) }} | @if($trx->payment_proof) Lihat @else - @endif | @if($trx->payment_proof && $trx->status == 'payment_verification') @else - @endif |