@extends('layouts.app') @section('title', isset($operationDetails) ? 'Edit Operation Details' : 'Add Operation Details') @section('content')

{{ isset($operationDetails) ? 'Edit Operation Details' : 'Add Operation Details' }}

Step 3: Provide information about your fishing operations

Back to Dashboard
@if ($errors->any())
    @foreach ($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif
@if(isset($operationDetails))
@method('PUT') @else @endif @csrf

Foreign Buyer Details

The importing company

@error('supplying_companies')

{{ $message }}

@enderror
@error('foreign_buyer_email')

{{ $message }}

@enderror
@error('foreign_buyer_phone')

{{ $message }}

@enderror

Upload your business license (PDF or Image, max 5MB)

@if(isset($operationDetails) && $operationDetails->business_license_path)

✓ Current file: View Document

@endif @error('business_license_path')

{{ $message }}

@enderror

Select the Kiribati islands where you harvest fish

@php $selectedIslandIds = isset($operationDetails) ? $operationDetails->harvestIslands->pluck('id')->toArray() : old('harvest_island_ids', []); @endphp
@foreach(['Gilbert Islands', 'Phoenix Islands', 'Line Islands'] as $group) @php $groupIslands = $kiribatiIslands->where('group', $group); @endphp @if($groupIslands->count() > 0)

{{ $group }}

@foreach($groupIslands as $island) @endforeach
@endif @endforeach

Optional: Additional islands or specific locations

{{-- TARGET FISH FAMILIES --}}

Select one or more fish families you intend to harvest

@php $selectedFamilyIds = isset($operationDetails) ? $operationDetails->targetFishFamilies->where('is_other', false)->pluck('id')->toArray() : old('target_fish_family_ids', []); $otherFamilySelected = isset($operationDetails) && $operationDetails->targetFishFamilies->where('is_other', true)->count() > 0; @endphp @if($activeFishFamilies->isEmpty())
No fish families are currently available. Please contact the administrator.
@else
@foreach($activeFishFamilies as $family) @if(!$family->is_other) @endif @endforeach @foreach($activeFishFamilies as $family) @if($family->is_other) @endif @endforeach

Specify other fish family/families:

{{ count($selectedFamilyIds) + ($otherFamilySelected ? 1 : 0) }} selected

@endif @error('target_fish_family_ids')

{{ $message }}

@enderror
{{-- HARVESTING METHODS --}}

Select all harvesting methods that apply

@php $selectedHarvestingMethodIds = isset($operationDetails) ? $operationDetails->harvestingMethods->where('is_other', false)->pluck('id')->toArray() : old('harvesting_method_ids', []); $otherHarvestingSelected = isset($operationDetails) && $operationDetails->harvestingMethods->where('is_other', true)->count() > 0; @endphp @if($harvestingMethods->isEmpty())
No harvesting methods are currently available. Please contact the administrator.
@else
@foreach($harvestingMethods as $method) @if(!$method->is_other) @endif @endforeach @foreach($harvestingMethods as $method) @if($method->is_other) @endif @endforeach

Specify other harvesting method(s):

{{ count($selectedHarvestingMethodIds) + ($otherHarvestingSelected ? 1 : 0) }} selected

@endif @error('harvesting_method_ids')

{{ $message }}

@enderror
{{-- LICENSE DURATION --}}

Select the duration of the license you are applying for

@php $selectedLicenseDurationId = isset($operationDetails) ? $operationDetails->license_duration_id : old('license_duration_id'); @endphp @if($licenseDurations->isEmpty())
No license durations are currently available. Please contact the administrator.
@else
@foreach($licenseDurations as $duration) @endforeach
@endif @error('license_duration_id')

{{ $message }}

@enderror

Optional: Upload your business plan (PDF or Image, max 5MB)

@if(isset($operationDetails) && $operationDetails->business_plan_path)

✓ Current file: View Document

@endif

Do you have a vessel associated with this application?

@php $hasVessel = isset($operationDetails) ? $operationDetails->has_vessel : (old('has_vessel') !== null ? old('has_vessel') : null); @endphp
@push('scripts') @endpush @endsection