| {{ $payment->TransactionID }} |
{{ $payment->Date }} |
@if ($payment->CardNumber)
{{ $payment->CardNumber }} |
@else
Nenhum cartão associado |
@endif
{{ $payment->TransactionType }} |
@php
$symbol = '';
if ($payment->TransactionType === 'Pagamento') {
$symbol = '-';
} elseif (in_array($payment->TransactionType, ['Depósito', 'Reembolso'])) {
$symbol = '+';
}
@endphp
{{ $symbol }}{{ number_format($payment->Amount, 2, ',', '.') }}
|
{{ number_format($payment->OldBalance, 2, ',', '.') }} |
{{ number_format($payment->NewBalance, 2, ',', '.') }} |
{{ $payment->Status }} |
@endforeach