@extends('layouts.app') @section('title', 'Invoices') @push('styles') @endpush @section('content')
Ministry of Fisheries & Ocean Resources — Local Fish Licensing System
| Invoice # | Applicant | Company Type | Duration | Total | Status | Due Date | Proof of Payment | |
|---|---|---|---|---|---|---|---|---|
| {{ $invoice->invoice_number }} | {{-- Applicant --}}
{{ $invoice->application?->companyDetail?->registered_name
?? $invoice->application?->cd_business_name
?? '—' }}
App #{{ $invoice->application_id ?? '—' }}
|
{{-- Company type --}}
{{ ucfirst($invoice->company_type ?? '—') }} | {{-- Duration --}}{{ $invoice->license_duration === '6months' ? '6 Months' : '12 Months' }} | {{-- Total --}}${{ number_format($invoice->total_amount, 2) }} | {{-- Status badge --}}{{ ucfirst($invoice->status ?? 'pending') }} | {{-- Due date --}}{{ $invoice->due_date ? \Carbon\Carbon::parse($invoice->due_date)->format('d M Y') : '—' }} | {{-- Proof of Payment ← ADD THIS ENTIRE CELL --}}
@if($invoice->proof_of_payment_path)
View
@if($invoice->proof_of_payment_uploaded_at)
{{ \Carbon\Carbon::parse($invoice->proof_of_payment_uploaded_at)->format('d M Y') }}
@endif
@else
Not uploaded
@endif
|
{{-- View action --}}
View |
|
No invoices found. |
||||||||