@extends('admin.layout.interface') @section('content')

Business Expenses

{{-- Month / Year filter --}}
{{-- Summary boxes --}}
Selected Month Total

{{ number_format($monthTotal, 2) }}

{{ $monthLabel }}
Month Entries

{{ number_format($monthCount) }}

Records in {{ $monthLabel }}
Today Expenses

{{ number_format($todayTotal, 2) }}

{{ now()->format('d M Y') }}
{{ $year }} Year Total

{{ number_format($yearTotal, 2) }}

All time: {{ number_format($allTotal, 2) }}

{{ $monthLabel }} Expenses

@if(session('success'))
{{ session('success') }}
@endif
@forelse ($totalData as $key => $data) @empty @endforelse
Sr# Expense Amount Date Description Action
{{ $key + 1 }} {{ $data->title }} {{ number_format($data->amount, 2) }} {{ $data->expense_date ? $data->expense_date->format('Y-m-d') : '-' }} {{ \Illuminate\Support\Str::limit($data->description, 60) }}
No expenses found for {{ $monthLabel }}.
@endsection