Email: {{ $customer->email }}
Phone: {{ $customer->phone }}
| Date | Journal Number | Transaction Type | Account | Debit | Credit | Balance | |||
|---|---|---|---|---|---|---|---|---|---|
| {{ \Carbon\Carbon::parse($j->entry_date)->format('d-m-y') }} | {{ $j->entry_number }} | Journal | @if ($j->debitAccount->id == $account_receivable->id) @php $balance += $j->debit; $totalDebit += $j->debit; @endphp{{ $j->debitAccount->name }} | {{ number_format($j->debit, 2) }} | @else @php $balance -= $j->credit; $totalCredit += $j->credit; @endphp | {{ $j->creditAccount->name }} | {{ number_format($j->credit, 2) }} | @endif{{ number_format($balance, 2) }} | |
| Total | {{ number_format($totalDebit, 2) }} | {{ number_format($totalCredit, 2) }} | {{ number_format($balance, 2) }} | ||||||