@props(['expenses', 'activeTab'])
| Name | Task | Amount Paid | Credit | Current Account | Due Date | Notes | Actions | ||
|---|---|---|---|---|---|---|---|---|---|
| {{ $expense->name }} | {{ $expense->task }} | {{ number_format($expense->amount_paid, 2) }} | {{ number_format($expense->credit, 2) }} | {{ number_format($runningBalance, 2) }} | {{ \Carbon\Carbon::parse($expense->due_date)->format('Y-m-d') }} | {{ $expense->notes }} | |||
| Totals | {{ number_format($totalAmountPaid, 2) }} | {{ number_format($totalCredit, 2) }} | {{ number_format($totalCredit - $totalAmountPaid, 2) }} | ||||||
| Net Balance (Credit - Amount Paid) | {{ number_format($totalCredit - $totalAmountPaid, 2) }} | ||||||||