@php $sign = $transaction->type === 'debit' ? '-' : ($transaction->type === 'credit' ? '+' : ''); $statusColor = $transaction->status == 'successful' ? 'text-green-500' : 'text-red-500'; if ($transaction->biller == 'received' || $transaction->biller == 'Signup Bonus') { $title = 'Incoming Transfer'; } elseif ($transaction->biller == 'transfer') { $title = 'Outgoing Transfer'; } else { $pk = $transaction->quantity ?? $transaction->product; $title = strtoupper($transaction->biller) . ' ' . $pk; } @endphp merge(['class' => 'flex items-center']) }}> icon
{{ $title }} @date($transaction->created_at)
{{ $sign }}₦@numberformat($transaction->amount) @ucwords($transaction->status)