@php $transactionTypeOptions = \App\Models\ClaimRegister::transactionTypeOptions(); $transactionTypeLabel = $transactionTypeOptions[$claimRegister->transaction_type] ?? ucfirst($claimRegister->transaction_type); $isPosted = $claimRegister->isPosted(); @endphp

View Claim: {{ $claimRegister->reference_number ?? '#' . $claimRegister->id }}

@if (!$isPosted) @can('claim-register-edit') Edit @endcan @can('claim-register-post')
@csrf
@endcan @can('claim-register-delete')
@csrf @method('DELETE')
@endcan @endif
{{-- Posted badge --}} @if ($isPosted)
Posted by {{ $claimRegister->postedByUser?->name ?? 'N/A' }} on {{ $claimRegister->posted_at?->format('d M Y H:i') }} @if ($claimRegister->journalEntry) — JE #{{ $claimRegister->journalEntry->entry_number ?? $claimRegister->journal_entry_id }} @endif
@else
Draft
@endif
{{-- Row 1: Supplier, Transaction Type, Transaction Date --}}
{{-- Row 2: Reference, Description, Claim Month --}}
{{-- Row 3: Date of Dispatch, Debit, Credit --}}
{{-- Row 4: Notes --}}
{{-- Row 5: Timestamps --}}
{{-- Password Modal for Post --}} @if (!$isPosted) @endif