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

{{ $fund->name }}

{{ $fund->description }}

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
Current Balance

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

Initial Amount

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

Total Expenses

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

Replenishments

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

Recent Transactions
@if($transactions->count() > 0)
@foreach($transactions as $transaction) @endforeach
Date Type Description Expense Item Supplier Amount Status Created By Actions
{{ $transaction->transaction_date->format('M d, Y') }} {{ ucfirst($transaction->type) }} {{ $transaction->description }} {{ $transaction->expenseItem->name ?? '-' }} {{ $transaction->supplier->name ?? '-' }} UGX {{ number_format($transaction->amount, 2) }} @if($transaction->status === 'pending') Pending @elseif($transaction->status === 'approved') Approved @else Rejected @endif {{ $transaction->creator->name }} @if($transaction->canBeEdited()) Edit @endif @if($transaction->status === 'pending' && auth()->user()->can('approve-transactions'))
@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