@extends('layout.mainlayout') @section('content')
@if(session('success')) @endif @if($errors->any()) @endif
@forelse($expenditures as $item) @empty @endforelse @if($expenditures->count()) @endif
# Date Amount (Tsh) Description Recorded By Recorded At
{{ $loop->iteration }} {{ \Carbon\Carbon::parse($item->date)->format('d M Y') }} {{ number_format($item->amount, 2) }} {{ $item->description ?? '-' }} {{ $item->user_name ?? 'System' }} {{ \Carbon\Carbon::parse($item->created_at)->format('d M Y H:i') }}
No self expenditure records found.
Total {{ number_format($totalExp, 2) }}
{{-- Add Self Expenditure Modal --}} @if($errors->any()) @endif @endsection