Main Summary Report

Run time: {{ $runAt->format('Y-m-d h:i A') }}
User: {{ auth()->user()->name ?? 'System' }}
Duration: {{ $startDate }} to {{ $endDate }}
Sales Summary
Cash Amount{{ number_format($cashAmount, 2) }}
Card Amount{{ number_format($cardAmount, 2) }}
Discount Issued{{ number_format($discountAmount, 2) }}
Total Sales{{ number_format($saleAmount - $discountAmount, 2) }}
Total Repair{{ number_format($repairAmount, 2) }}
Total Cost{{ number_format($saleCost, 2) }}
Total Income{{ number_format($income, 2) }}
Due Amount{{ number_format($dueAmount, 2) }}
Total Profit{{ number_format($profit, 2) }}
@foreach($expenses as $exp) @endforeach
Expenses
{{ $exp->category }} {{ number_format($exp->amount, 2) }}
Amount{{ number_format($expensesTotal, 2) }}
Purchasing
Invoice Payment{{ number_format($supplierPayments, 2) }}
Summary
Income{{ number_format($income, 2) }}
Cost({{ number_format($saleCost, 2) }})
Expenses({{ number_format($expensesTotal, 2) }})
Purchasing Payment({{ number_format($supplierPayments, 2) }})
Net Profit{{ number_format($netProfit, 2) }}