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

{{ $fund->name }}

{{ $fund->description }}

Custodian: {{ $fund->custodian->name }}
Add Transaction @can('edit-petty-cash-fund') Edit Fund @endcan @can('reconcile-petty-cash') Reconcile @endcan
Back
@if(session('success'))
{{ session('success') }}
@endif @if(session('error'))
{{ session('error') }}
@endif @if($errors->any())
    @foreach($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif
Current Balance

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

@if($fund->needsReconciliation()) Needs reconciliation @endif
Initial Amount

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

Total Expenses

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

{{ $fund->expenses()->count() }} transactions
Replenishments

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

{{ $fund->replenishments()->count() }} transactions
Net Change: {{ $fund->net_change >= 0 ? '+' : '' }}UGX {{ number_format($fund->net_change, 2) }}
Pending Approvals: {{ $fund->pending_count }}
Approved: {{ $fund->approved_count }}
Utilization: {{ number_format($fund->utilization_percentage, 1) }}%
Transactions
Total: {{ $transactions->total() }}
@if($transactions->count() > 0)
@foreach($transactions as $transaction) @endforeach
# Date Type Description Expense Item Supplier Amount Balance After Status Created By Actions
@if($transaction->approval_sequence) #{{ $transaction->approval_sequence }} @else - @endif {{ $transaction->transaction_date->format('M d, Y') }} @if($transaction->isOverdue())
{{ $transaction->getDaysPending() }} days @endif
{{ ucfirst($transaction->type) }} {{ Str::limit($transaction->description, 40) }} @if($transaction->receipt_image) @endif {{ $transaction->expenseItem->name ?? '-' }} {{ $transaction->supplier->name ?? '-' }} UGX {{ $transaction->formatted_amount }} @if($transaction->balance_after) UGX {{ $transaction->formatted_balance_after }} @else - @endif {{ ucfirst($transaction->status) }} @if($transaction->approval_notes) @endif {{ $transaction->creator->name }} @if($transaction->approved_by)
by {{ $transaction->approver->name }} @endif
@if($transaction->canBeEdited()) @endif @if($transaction->canBeApproved())
@csrf @method('PATCH')
@endif @if($transaction->canBeDeleted())
@csrf @method('DELETE')
@endif
{{ $transactions->links() }}
@else
No transactions found

Start by adding your first transaction to this fund.

Add Transaction
@endif
@endsection @push('styles') @endpush