@if ($totals['type'] === 'income' || $totals['type'] === 'both')
Total Income
{{ session('currency') }} {{ number_format($totals['total_income'] ?? 0) }}
@endif
@if ($totals['type'] === 'expense' || $totals['type'] === 'both')
Total Expense
{{ session('currency') }} {{ number_format($totals['total_expense'] ?? 0) }}
@endif
@if ($totals['type'] === 'both')
Total Revenue
{{ session('currency') }} {{ number_format($totals['total_revenue'] ?? 0) }}
@endif
# |
Date |
Description |
Amount ({{ session('currency') }}) |
Type |
@foreach ($mergedData as $item)
{{ $loop->iteration }} |
{{ \Carbon\Carbon::parse($item['date'])->format('Y-m-d') }} |
{{ $item['description'] }} |
{{ number_format($item['amount']) }} |
{{ ucfirst($item['type']) }}
|
@endforeach