@extends('layouts.app') @section('customcss') @endsection @section('content')

Petty Cash Management

Manage petty cash funds and transactions

@can('create-petty-cash-fund') Create New Fund @endcan @can('approve-transaction') Pending Approvals {{ \App\Models\PettyCashTransaction::pending()->count() }} @endcan Reports @can('reconcile-petty-cash')
@endcan
@if(session('success'))
{{ session('success') }}
@endif @if(session('adjusted_funds'))
Reconciliation Results
    @foreach(session('adjusted_funds') as $adjusted)
  • {{ $adjusted['name'] }}: UGX {{ number_format($adjusted['old_balance'], 2) }} → UGX {{ number_format($adjusted['new_balance'], 2) }} ({{ $adjusted['adjustment'] > 0 ? '+' : '' }}{{ number_format($adjusted['adjustment'], 2) }})
  • @endforeach
@endif @if(session('skipped_funds'))
Skipped Funds
    @foreach(session('skipped_funds') as $skipped)
  • {{ $skipped['name'] }}: {{ $skipped['reason'] }}
  • @endforeach
@endif
@forelse($funds as $fund)
{{ $fund->name }}
@if($fund->needsReconciliation()) @endif
{{ $fund->custodian->name }}
@if($fund->description)

{{ Str::limit($fund->description, 80) }}

@endif
Current Balance:

UGX {{ number_format($fund->current_balance, 2) }}

Initial
{{ number_format($fund->initial_amount, 0) }}
Expenses
{{ number_format($fund->total_expenses, 0) }}
Added
{{ number_format($fund->total_replenishments, 0) }}
{{ $fund->pending_count }} {{ $fund->approved_count }} {{ number_format($fund->utilization_percentage, 0) }}%
Add View @can('reconcile-petty-cash') Reconcile @endcan
@if($fund->needsReconciliation())
@csrf
@endif
@empty

No Petty Cash Funds Found

Get started by creating your first petty cash fund to manage expenses.

@can('create-petty-cash-fund') Create Your First Fund @endcan
@endforelse
@endsection