@if($application->description)
Description
{{ $application->description }}
@endif
{{-- SECTION 1: Personal Details --}}
Full Name {{ $application->ap_full_name ?? '—' }}
Date of Birth {{ $application->ap_date_of_birth ? \Carbon\Carbon::parse($application->ap_date_of_birth)->format('d M Y') : '—' }}
Gender {{ ucfirst($application->ap_gender ?? '—') }}
Nationality {{ $application->ap_nationality ?? '—' }}
Home Island {{ $application->ap_home_island ?? '—' }}
Phone {{ $application->ap_phone_number ?? '—' }}
Email {{ $application->ap_email ?? '—' }}
Residential Address {{ $application->ap_residential_address ?? '—' }}
@if($application->applicantProfile)
@endif
{{-- SECTION 2: Company Details --}}
Business Name {{ $application->cd_business_name ?? '—' }}
Registered Name {{ $application->cd_registered_name ?? '—' }}
Company Type {{ $application->cd_company_type ?? '—' }}{{ $application->cd_company_type_other ? ' — '.$application->cd_company_type_other : '' }}
Registration No. {{ $application->cd_registration_number ?? '—' }}
Date Established {{ $application->cd_date_established ? \Carbon\Carbon::parse($application->cd_date_established)->format('d M Y') : '—' }}
Telephone {{ $application->cd_telephone_number ?? '—' }}
Email {{ $application->cd_email_address ?? '—' }}
Nature of Business {{ $application->cd_nature_of_business ?? '—' }}
Main Branch Address {{ $application->cd_main_branch_address ?? '—' }}
@if($application->cd_branch_address)
Branch Address {{ $application->cd_branch_address }}
@endif
@php $cd = $application->companyDetail; @endphp
@if($cd?->landing_site)
Landing Site {{ $cd->landing_site === 'Other' ? ($cd->landing_site_other ?? $cd->landing_site) : $cd->landing_site }}
@endif
@if($cd?->processing_site)
Processing Site {{ $cd->processing_site }}
@endif
@if($application->companyDetail)
@endif
{{-- SECTION 3: Operation Details --}}
@php $od = $application->operationDetail; @endphp
Has Vessel {{ $application->od_has_vessel ? 'Yes' : 'No' }}
Foreign Buyer / Company {{ $application->od_supplying_companies ?? '—' }}
Buyer Email {{ $od?->foreign_buyer_email ?? '—' }}
Buyer Phone {{ $od?->foreign_buyer_phone ?? '—' }}
Harvest Islands
@php
$islandNames = $od?->harvestIslands?->pluck('island_name')->filter()->join(', ');
$extraIslands = $application->od_harvest_islands;
$allIslands = collect([$islandNames, $extraIslands])->filter()->join(' | ');
@endphp
{{ $allIslands ?: '—' }}
Target Fish Families
@php
$rvFishNames = $od?->targetFishFamilies?->map(function($ff) {
return ($ff->is_other && $ff->pivot?->other_value) ? $ff->pivot->other_value : $ff->name;
})->filter()->join(', ');
@endphp
{{ $rvFishNames ?: '—' }}
Harvesting Methods
@php
$rvHarvestNames = $od?->harvestingMethods?->map(function($hm) {
return ($hm->is_other && $hm->pivot?->other_value) ? $hm->pivot->other_value : $hm->name;
})->filter()->join(', ');
@endphp
{{ $rvHarvestNames ?: '—' }}
License Duration {{ $od?->licenseDuration?->name ?? '—' }}
@if($application->od_fishing_grounds)
Fishing Grounds {{ $application->od_fishing_grounds }}
@endif
@if($od?->business_plan_path)
@endif
{{-- SECTION 4: Vessel Details --}}
@if($application->vd_vessel_name)
Vessel Name {{ $application->vd_vessel_name }}
Vessel Type {{ $application->vd_vessel_type ?? '—' }}
IMO / Reg. Number {{ $application->vd_imo_registration_number ?? '—' }}
Current Flag {{ $application->vd_current_flag ?? '—' }}
Base Port {{ $application->vd_base_port ?? '—' }}
Year Built {{ $application->vd_year_built ?? '—' }}
Call Sign {{ $application->vd_international_call_sign ?? '—' }}
VMS Number {{ $application->vd_vms_number ?? '—' }}
Registered Length {{ $application->vd_registered_length ? $application->vd_registered_length.' m' : '—' }}
Beam Length {{ $application->vd_beam_length ? $application->vd_beam_length.' m' : '—' }}
Draught {{ $application->vd_draught_length ? $application->vd_draught_length.' m' : '—' }}
Tonnage {{ $application->vd_tonnage ? $application->vd_tonnage.' t' : '—' }}
Max Speed {{ $application->vd_maximum_speed ? $application->vd_maximum_speed.' kts' : '—' }}
Service Speed {{ $application->vd_service_speed ? $application->vd_service_speed.' kts' : '—' }}
Hull Color {{ $application->vd_hull_color ?? '—' }}
Hull Material {{ $application->vd_hull_material ?? '—' }}
Number of Crew {{ $application->vd_number_of_crew ?? '—' }}
Captain / Master {{ $application->vd_captain_master_name ?? '—' }}
@if($application->vd_previous_vessel_name)
Previous Vessel Name {{ $application->vd_previous_vessel_name }}
@endif
Fishing Gears Onboard {{ $application->vd_fishing_gears_onboard ?? '—' }}
{{-- Vessel Photos --}}
@php
$reviewVesselPhotos = array_filter([
$application->operationDetail?->vesselsDetails?->first()?->photo_1,
$application->operationDetail?->vesselsDetails?->first()?->photo_2,
$application->operationDetail?->vesselsDetails?->first()?->photo_3,
$application->operationDetail?->vesselsDetails?->first()?->photo_4,
$application->operationDetail?->vesselsDetails?->first()?->photo_5,
$application->operationDetail?->vesselsDetails?->first()?->photo_6,
]);
@endphp
@if(!empty($reviewVesselPhotos))
Vessel Photos
@foreach($reviewVesselPhotos as $photo)
@endforeach
@endif
@else
No vessel declared for this application.
@endif
{{-- ══ REVIEW ACTIONS ══ --}}
@if($application->status === 'pending')
@if(!$isClaimed)
This application has not been assigned yet.
Claim it to begin your review. Once claimed, other reviewers cannot review it.
@elseif($isMyApplication)
Review Decision
(Assigned to you)
@else
This application is locked
Claimed and under review by {{ $claimedByName }} .
@endif
@elseif($application->status === 'reviewed')
{{-- Proof of Payment --}}
Proof of Payment
— Upload to approve
@if(!$application->invoice)
Generate an invoice first before uploading proof of payment.
@endif
@if($application->invoice?->proof_of_payment_path)
Proof of Payment Uploaded
Invoice {{ $application->invoice->invoice_number }}
View / Download
@elseif(!$application->invoice)
No proof of payment uploaded yet.
@endif
@if($isMyApplication)
@if($application->invoice)
@csrf
{{ $application->invoice->proof_of_payment_path ? 'Replace File' : 'Upload File' }}
(PDF, JPG, PNG — max 5 MB)
Upload & Approve
@else
@endif
@else
Only {{ $claimedByName }} can upload proof of payment.
@endif
@elseif($application->status === 'approved')
@if($application->invoice?->proof_of_payment_path)
Proof of Payment
Proof of Payment
Invoice {{ $application->invoice->invoice_number }}
@if($application->invoice->proof_of_payment_uploaded_at)
— {{ \Carbon\Carbon::parse($application->invoice->proof_of_payment_uploaded_at)->format('d M Y H:i') }}
@endif
View / Download
@endif
@elseif($application->status === 'revoked')
⊘ Revoked
on {{ $application->reviewed_at ? \Carbon\Carbon::parse($application->reviewed_at)->format('d M Y H:i') : $application->updated_at->format('d M Y H:i') }}
@if(!$isMyApplication)
Reviewed by another officer
@endif
@else
✗ Rejected
on {{ $application->reviewed_at ? \Carbon\Carbon::parse($application->reviewed_at)->format('d M Y H:i') : $application->updated_at->format('d M Y H:i') }}
@if($application->reviewed_by)
by
{{ \App\Models\User::find($application->reviewed_by)?->name ?? 'Unknown' }}
@endif
@if($application->admin_notes)
Notes: {{ $application->admin_notes }}
@endif
@endif