@if($transaction->type === 'credit')
@else
@endif
{{ $transaction->description }}
{{ $transaction->created_at->format('M d, Y h:i A') }}
{{ $transaction->type === 'credit' ? '+' : '-' }}${{ number_format($transaction->amount, 2) }}
@if($transaction->status)
@if($transaction->status === 'completed')
Completed
@elseif($transaction->status === 'pending')
Pending
@elseif($transaction->status === 'failed')
Failed
@endif
@endif