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

{{ isset($vesselDetails) ? 'Edit Vessel Details' : 'Add Vessel Details' }}

Step 4: Register your vessel information

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

Basic Vessel Information

@php $currentVesselType = isset($vesselDetails) ? $vesselDetails->vessel_type : old('vessel_type'); $isOtherVesselType = $currentVesselType === 'Other'; @endphp
{{-- ── Is vessel in Kiribati? ── --}} @php $vesselInKiribati = isset($vesselDetails) ? $vesselDetails->vessel_in_kiribati : (old('vessel_in_kiribati') !== null ? old('vessel_in_kiribati') : null); @endphp
@error('vessel_in_kiribati')

{{ $message }}

@enderror

Vessel Photos

Up to 6 photos · PNG, JPG, JPEG, WEBP · Max 5 MB each

@php $savedPhotos = isset($vesselDetails) ? array_filter([ 'photo_1' => $vesselDetails->photo_1, 'photo_2' => $vesselDetails->photo_2, 'photo_3' => $vesselDetails->photo_3, 'photo_4' => $vesselDetails->photo_4, 'photo_5' => $vesselDetails->photo_5, 'photo_6' => $vesselDetails->photo_6, ]) : []; $savedCount = count($savedPhotos); @endphp @if(!empty($savedPhotos))

Saved Photos (hover & click ✕ to delete)

@foreach($savedPhotos as $slot => $path)
Vessel photo
@endforeach
@endif {{-- ── Upload new photos ── --}}

Click to upload or drag and drop

@if(!empty($savedPhotos)) Add more photos ({{ 6 - $savedCount }} slot{{ 6 - $savedCount === 1 ? '' : 's' }} remaining) @else No photos yet — up to 6 @endif

{{-- ── End Vessel Photos ── --}}

Vessel Dimensions (in meters)

Registration & Port Information

Vessel Specifications

Crew & Operations

e.g., Longline, Nets, Poles, Ice boxes

{{-- ================================================================ --}} {{-- Photo upload JS + Vessel Type toggle --}} {{-- ================================================================ --}} @endsection