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

{{ __('pettyCash.pettyCash') }}

{{ __('pettyCash.create') }}
@forelse($pettyCashes as $pc) @empty @endforelse
{{ __('pettyCash.title') }} {{ __('pettyCash.project') }} {{ __('pettyCash.amount') }} {{ __('pettyCash.remaining') }} {{ __('pettyCash.request_date') }} {{ __('pettyCash.status') }} {{ __('common.actions') }}
{{ $pc->title ?? '-' }} {{-- Attachment indicator --}} @if($pc->attachments_count > 0 || $pc->receipt_path) @if($pc->attachments_count > 0) {{ $pc->attachments_count }} @endif @endif
{{ $pc->project?->name ?? '-' }} {{ format_currency((float)$pc->amount, $pc->currency?->code) }} @if($pc->original_amount && $pc->original_amount != $pc->amount) ({{ format_currency((float)$pc->original_amount, $pc->currency?->code) }}) @endif @if($pc->remaining !== null) {{ format_currency((float)$pc->remaining, $pc->currency?->code) }} @else - @endif {{ $pc->request_date ? calendar_date($pc->request_date) : '-' }} {{ $pc->status_label }}
{{-- View button --}} {{-- Edit button --}} @if($pc->status === 'pending') @elseif($pc->status === 'approved') @endif
{{ __('pettyCash.no_petty_cashes') }}
{{ $pettyCashes->withQueryString()->links() }}
@push('scripts') @endpush @endsection