@extends('backend.layouts.app') @section('content')

Expense Report

{{-- Filters --}}
{{-- Summary --}}
Total Expense
{{ number_format($totalExpense, 2) }}
Paid
{{ number_format($totalPaid, 2) }}
Unpaid
{{ number_format($totalUnpaid, 2) }}
{{-- Table --}}
@forelse($expenses as $key => $item) @empty @endforelse
# Date Expense Type Amount Voucher No Status Payment By Remark
{{ $expenses->firstItem() + $key }} {{ $item->date }} {{ $item->expenseType->name ?? '-' }} {{ number_format($item->amount, 2) }} {{ $item->vouche_no ?? '-' }} {{ ucfirst($item->payment_status) }} {{ ucfirst($item->payment_by ?? '-') }} {{ $item->remark ?? '-' }}
No expenses found.
{{-- Pagination --}} @if ($expenses instanceof \Illuminate\Pagination\LengthAwarePaginator)
{{ $expenses->links('backend.layouts.paginate') }}
@endif @endsection