{{trans('general.date')}} |
{{trans('general.description')}} |
{{trans('transactions.debit')}} |
{{trans('transactions.credit')}} |
{{trans('accounts.balance')}} |
@php
$fill = false;
$balance=0;
foreach ($transactions as $row) {
if ($fill == true) {
$flag = ' mfill';
} else {
$flag = '';
}
$balance += $row['credit'] - $row['debit'];
echo '' . dateFormat($row['payment_date']) . ' | '.$row->category->name . ' ' . $row['note'].' | ' . amountFormat($row['debit']) . ' | ' . amountFormat($row['credit']) . ' | ' . amountFormat($balance) . ' |
';
$fill = !$fill;
}
@endphp