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


{{trans('general.summary')}}
{{trans('accounts.balance')}}: {{amountFormat($balance)}}
@endsection