{{-- resources/views/applicant/applications/show.blade.php --}} @extends('layouts.app') @section('title', 'Application #' . $application->id) @push('styles') @endpush @section('content') @php $ap = $application->applicantProfile; $cd = $application->companyDetail; $od = $application->operationDetail; $vessels = $od?->vesselsDetails ?? collect(); $statusClass = match($application->status) { 'approved' => 'status-approved', 'rejected' => 'status-rejected', 'submitted' => 'status-submitted', 'pending' => 'status-pending', default => 'status-draft', }; $statusLabel = ucfirst($application->status ?? 'Draft'); function fieldVal($value, $fallback = '—') { return !empty($value) ? $value : $fallback; } @endphp {{-- ── PAGE HEADER ── --}}
{{-- ── ADMIN / REVIEWER NOTES ── --}} @if($application->status === 'rejected' || !empty($application->ap_admin_notes))

Reviewer Notes

{{ $application->ap_admin_notes ?? 'No additional notes provided.' }}

@endif {{-- ── TIMELINE ── --}}

Application Timeline

Track your application progress

Application Created

{{ $application->created_at?->format('d M Y, h:i A') }}

Submitted for Review

{{ $application->ap_submitted_at?->format('d M Y, h:i A') ?? 'Pending' }}

Under Review

{{ $application->status === 'pending' ? 'In progress' : ($application->reviewed_at ? $application->reviewed_at->format('d M Y, h:i A') : 'Pending') }}

@if($application->status === 'approved') Approved @elseif($application->status === 'rejected') Rejected @else Decision Pending @endif

{{ $application->reviewed_at?->format('d M Y, h:i A') ?? '—' }}

{{-- ══ 1. PERSONAL DETAILS ══ --}} @if($ap)

Personal Details

Applicant personal information

Full Name {{ fieldVal($ap->full_name) }}
Date of Birth {{ $ap->date_of_birth?->format('d M Y') ?? '—' }}
Gender {{ ucfirst(fieldVal($ap->gender)) }}
Nationality {{ fieldVal($ap->nationality) }}
Home Island {{ fieldVal($ap->home_island) }}
Phone Number {{ fieldVal($ap->phone_number) }}
Email Address {{ fieldVal($ap->email) }}
Residential Address {{ fieldVal($ap->residential_address) }}

Documents

@foreach([ ['Police Clearance', $ap->police_clearance_path], ['Passport Biodata', $ap->passport_biodata_path], ['Birth Certificate', $ap->birth_certificate_path], ['National ID', $ap->national_id_path], ] as [$label, $path]) @if($path) {{ $label }} @else {{ $label }} — Not uploaded @endif @endforeach
@endif {{-- ══ 2. COMPANY DETAILS ══ --}} @if($cd)

Company Details

Business registration information

Business Name {{ fieldVal($cd->business_name) }}
Registered Name {{ fieldVal($cd->registered_name) }}
Company Type {{ ucfirst(str_replace('_', ' ', fieldVal($cd->company_type))) }} @if($cd->company_type === 'other' && $cd->company_type_other) — {{ $cd->company_type_other }}@endif
Registration Number {{ fieldVal($cd->registration_number) }}
Date Established {{ $cd->date_established?->format('d M Y') ?? '—' }}
Telephone {{ fieldVal($cd->telephone_number) }}
Email {{ fieldVal($cd->email_address) }}
Nature of Business {{ fieldVal($cd->nature_of_business) }}
Main Branch Address {{ fieldVal($cd->main_branch_address) }}
@if($cd->branch_address)
Branch Address {{ $cd->branch_address }}
@endif
{{-- Shareholders --}} @if($cd->shareholders && $cd->shareholders->count() > 0)

Shareholders

@foreach($cd->shareholders as $sh) @endforeach
Name Nationality Shares (%)
{{ $sh->name ?? '—' }} {{ $sh->nationality ?? '—' }} {{ $sh->share_percentage ?? '—' }}%
@endif {{-- Documents --}}

Documents

@foreach([ ['Bank Statement', $cd->bank_statement_path], ['Company License', $cd->company_license_path], ] as [$label, $path]) @if($path) {{ $label }} @else {{ $label }} — Not uploaded @endif @endforeach
@endif {{-- ══ 3. OPERATION DETAILS ══ --}} @if($od)

Operation Details

Fishing operation information

Has Vessel {{ $od->has_vessel ? 'Yes' : 'No' }}
@if($od->licenseDuration)
License Duration {{ $od->licenseDuration->name }}
@endif @if($od->supplying_companies)
Foreign Buyer / Supplying Companies {{ $od->supplying_companies }}
@endif @if($od->fishing_grounds)
Fishing Grounds {{ $od->fishing_grounds }}
@endif
{{-- Harvest Islands --}} @if($od->harvestIslands->count() > 0)

Harvest Islands

@foreach($od->harvestIslands as $island) {{ $island->island_name }} @endforeach
@endif {{-- Target Fish Families --}} @if($od->targetFishFamilies->count() > 0)

Target Fish Families

@foreach($od->targetFishFamilies as $family) {{ $family->name }} @endforeach
@endif {{-- Harvesting Methods --}} @if($od->harvestingMethods->count() > 0)

Harvesting Methods

@foreach($od->harvestingMethods as $method) {{ $method->name }} @endforeach
@endif {{-- Extra Target Species --}} @if($od->extraTargetSpecies->count() > 0)

Extra Target Species

@foreach($od->extraTargetSpecies as $species)
@if($species->local_name)
Local{{ $species->local_name }}
@endif @if($species->english_name)
English{{ $species->english_name }}
@endif @if($species->fish_family)
Family{{ $species->fish_family }}
@endif
@endforeach
@endif {{-- Business Plan --}}

Business Plan

@if($od->business_plan_path) Download Business Plan @else Not uploaded @endif
@endif {{-- ══ 4. VESSEL DETAILS ══ --}} @if($vessels->count() > 0)

Vessel Details

{{ $vessels->count() }} vessel{{ $vessels->count() > 1 ? 's' : '' }} registered

@foreach($vessels as $i => $vessel)
@if($vessels->count() > 1)

Vessel {{ $i + 1 }}

@endif
Vessel Name {{ fieldVal($vessel->vessel_name) }}
@if($vessel->previous_vessel_name)
Previous Name {{ $vessel->previous_vessel_name }}
@endif
Vessel Type {{ fieldVal($vessel->vessel_type) }}
Current Flag {{ fieldVal($vessel->current_flag) }}
Base Port {{ fieldVal($vessel->base_port) }}
IMO Registration {{ fieldVal($vessel->imo_registration_number) }}
Call Sign {{ fieldVal($vessel->international_call_sign) }}
Year Built {{ fieldVal($vessel->year_built) }}
Tonnage (GT) {{ fieldVal($vessel->tonnage) }}
Overall Length (m) {{ fieldVal($vessel->overall_length) }}
Registered Length (m) {{ fieldVal($vessel->registered_length) }}
Beam (m) {{ fieldVal($vessel->beam_length) }}
Draught (m) {{ fieldVal($vessel->draught_length) }}
Max Speed (knots) {{ fieldVal($vessel->maximum_speed) }}
Service Speed (knots) {{ fieldVal($vessel->service_speed) }}
Hull Color {{ fieldVal($vessel->hull_color) }}
Hull Material {{ fieldVal($vessel->hull_material) }}
Number of Crew {{ fieldVal($vessel->number_of_crew) }}
Captain / Master {{ fieldVal($vessel->captain_master_name) }}
VMS Number {{ fieldVal($vessel->vms_number) }}
@if($vessel->fishing_gears_onboard)
Fishing Gears Onboard {{ $vessel->fishing_gears_onboard }}
@endif
@endforeach
@endif
{{-- /.page-content --}} @push('scripts') @endpush @endsection