@extends('layouts.app') @section('title','Expenditure Report') @section('page-title','Expenditure Report') @section('content') {{-- Filter Bar --}}
Generated: {{ now()->format('d M Y H:i') }}
| Category | Amount (GH₵) | % | Items |
|---|---|---|---|
| {{ $cat['name'] }} | {{ number_format($cat['total'],2) }} | {{ $grandTotal>0 ? round(($cat['total']/$grandTotal)*100,1) : 0 }}% | {{ $cat['count'] }} |
| TOTAL | {{ number_format($grandTotal,2) }} | 100% | {{ $recordCount }} |
| # | Date | Description | Category | Project | Paid By | Mode | Amount (GH₵) | Status |
|---|---|---|---|---|---|---|---|---|
| {{ $i+1 }} | {{ $e->date instanceof \Carbon\Carbon ? $e->date->format('d/m/Y') : \Carbon\Carbon::parse($e->date)->format('d/m/Y') }} | {{ Str::limit($e->description, 45) }} | {{ $e->category->code ?? '-' }} | {{ $e->project->name ?? '-' }} | {{ $e->paid_by ?? '-' }} | {{ str_replace('_',' ',$e->payment_mode ?? '-') }} | {{ number_format($e->amount,2) }} | {{ $e->is_paid ? 'Paid' : 'Pending' }} |
|
No expenditure records found for the selected filters.
Clear Filters | ||||||||
| TOTAL | GH₵ {{ number_format($grandTotal,2) }} | |||||||