@extends('backEnd.layouts.master') @section('title', 'Expense Report') @section('css') @endsection @section('content')
{{-- HEADER --}}

Expense Reports

Track company spending for: {{ $label ?? 'Today' }}

{{-- FILTER FORM --}}
{{-- Report Type --}}
{{-- Dynamic Inputs --}} {{-- Actions --}}
{{-- SUMMARY CARD --}}
Total Expenses

৳{{ number_format($totalExpense ?? 0, 2) }}

{{-- EXPENSE TABLE --}}
Expense List
@forelse($expenses as $e) @php $rawDate = $e->expense_date ?? $e->created_at; $formattedDate = $rawDate ? \Carbon\Carbon::parse($rawDate)->format('d M, Y') : '-'; @endphp @empty @endforelse
# Date Title Category Amount Note
{{ $loop->iteration }} {{ $formattedDate }} {{ $e->title }} {{ $e->category ?? 'General' }} ৳{{ number_format($e->amount ?? 0, 2) }} {{ Str::limit($e->note, 50) ?? '-' }}

No expenses found

{{-- Pagination --}}
Showing {{ $expenses->firstItem() }} to {{ $expenses->lastItem() }} of {{ $expenses->total() }} entries
{{ $expenses->links('pagination::bootstrap-4') }}
@endsection @section('script') @endsection