@extends('admin.layout.main') @section('content')
Logo
@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
@foreach ($mergedData as $item) @endforeach
# Date Description Amount ({{ session('currency') }}) Type
{{ $loop->iteration }} {{ \Carbon\Carbon::parse($item['date'])->format('Y-m-d') }} {{ $item['description'] }} {{ number_format($item['amount']) }} {{ ucfirst($item['type']) }}
{{-- Filter Modal End --}} @endsection