@php /** @var \App\Models\ExceptionList $exceptionList */ $currentType = strtoupper((string)old('type', $exceptionList->type ?? ($exceptionList->isTypeC() ? 'C' : ($exceptionList->isTypeB() ? 'B' : 'A')))); if (!in_array($currentType, ['A', 'B', 'C'])) { $currentType = 'A'; } $isTypeC = $currentType === 'C'; $isTypeB = $currentType === 'B'; $isTypeA = $currentType === 'A'; $currentOpType = strtolower((string)old('operation_type', $exceptionList->operation_type ?? 'discharging')); $sheets = old('sheets', $exceptionList->resolved_sheets); @endphp @if(isset($errors) && $errors->any())

Periksa kembali isian formulir:

@endif
@csrf @if($exceptionList->exists) @method('PUT') @endif @include('partials.vessel-berthing-pull-bar') {{-- Top Card: Format Selector & Planning Selector --}}
{{-- 1. Pilihan Format Dokumen (A vs B vs C) --}}
{{-- Format A --}} {{-- Format B --}} {{-- Format C (Exception List) --}}
{{-- Operation Type for Format C (Discharging vs Loading) --}}
Opsi Operasi (Damage Cargo Before):

@if($isTypeC) Exception List aktif: Tabel Damage Cargo Before Discharging / Loading dengan kolom Deskripsi Kargo / No. VIN / Serial No, Quantity (Units, Pkgs), dan Remarks. @elseif($isTypeB) Format B aktif: Tabel kerusakan kargo (Damage Cargo Before Loading) dengan kolom Nature Of Damage And Remarks. @else Format A aktif: Tabel Short and Excess dengan kolom Unit, Pkgs, Over, Short, dan Remarks. @endif

No lembar default.

Draft atau Selesai.

{{-- Main Document Card (Formatted like the Official Paper Sheet) --}}
{{-- Document Header --}}

@if($isTypeC) {{ old('title', $exceptionList->title ?: 'EXCEPTION LIST') }} @elseif($isTypeB) {{ old('title', $exceptionList->title ?: 'EXCEPTION LIST ( B )') }} @else {{ old('title', $exceptionList->title ?: 'EXCEPTION LIST ( A )') }} @endif

@if($isTypeC) {{ old('subtitle', $exceptionList->subtitle ?: 'DAMAGE CARGO BEFORE') }} @elseif($isTypeB) {{ old('subtitle', $exceptionList->subtitle ?: 'DAMAGE CARGO BEFORE ( FOR LOADING )') }} @else {{ old('subtitle', $exceptionList->subtitle ?: '( SHORT AND EXCESS FOR LOADING )') }} @endif

{{-- Operation Type Checkboxes (Format C) --}}
{{ $currentOpType === 'discharging' ? '✓' : '' }} DISCHARGING {{ $currentOpType === 'loading' ? '✓' : '' }} LOADING
{{ old('sheet_no', $exceptionList->sheet_no ?? '1') }}
{{-- Meta Section (Vessel & Voyage Header Info - Unified 2-Column Grid) --}}
{{-- Left Column --}}
NAME OF VESSEL : MV.
LOADING PORT :
DISCHARGING PORT :
{{-- Right Column --}}
VOY. NO :
BERTH :
BERTHED ON :
SAILED ON :
{{-- MULTI-SHEET TABS & PANES --}}
{{-- Tabs Navigation --}}
@foreach($sheets as $sIdx => $sh) @endforeach
{{-- Panes Container --}}
@foreach($sheets as $sIdx => $sh) @php $sItems = $sh['cargo_items'] ?? \App\Models\ExceptionList::getDefaultCargoItems(15); if (!is_array($sItems) || count($sItems) === 0) { $sItems = \App\Models\ExceptionList::getDefaultCargoItems(15); } $sTotals = $sh['totals'] ?? \App\Models\ExceptionList::getDefaultTotals(); @endphp
{{-- Cargo Table Section --}}
{{-- B/L NO (Hidden on Type C) --}} {{-- DESTINATION PORT (Hidden on Type C) --}} {{-- DESCRIPTION OF CARGO / VIN NOS / SERIAL NO --}} {{-- QUANTITY: UNITS & PKGS --}} {{-- STOWAGE (Hidden on Type C) --}} {{-- OVER (Format A only) --}} {{-- SHORT (Format A only) --}} {{-- REMARKS / NATURE OF DAMAGE --}} @foreach($sItems as $rIdx => $item) {{-- B/L NO --}} {{-- DESTINATION PORT --}} {{-- DESCRIPTION / VIN NO --}} {{-- UNITS --}} {{-- PKGS --}} {{-- STOWAGE --}} {{-- OVER (Format A only) --}} {{-- SHORT (Format A only) --}} {{-- REMARKS --}} @endforeach
B/L NODESTINATION PORT DESCRIPTION OF CARGO
VIN NOS / SERIAL NO.
UNITS PKGSSTOWAGEOVERSHORT {{ $isTypeB ? 'NATURE OF DAMAGE AND REMARKS' : 'REMARKS' }} #
0 0   0 0
{{-- Add Row Button per Sheet --}}
Total baris akan menyesuaikan dokumen cetak secara otomatis
@endforeach
{{-- Keterangan Tambahan --}}
{{-- Submit Action Bar --}}
Batal