@php /** @var \App\Models\LoadingCargoSummary $loadingCargoSummary */ $sheets = old('sheets', $loadingCargoSummary->resolved_sheets); @endphp @if($errors->any())

Periksa kembali isian formulir:

@endif
@csrf @if($loadingCargoSummary->exists) @method('PUT') @endif @include('partials.vessel-berthing-pull-bar') {{-- Top Card: Meta Info --}} {{-- Top Card: Meta Info --}}

No lembar default.

Draft atau Selesai.

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

LOADING CARGO SUMMARY

{{ old('sheet_no', $loadingCargoSummary->sheet_no ?? '1') }}
{{-- Meta Section (Vessel & Voyage Header Info - Unified 2-Column Grid) --}}
{{-- Left Column --}}
NAME OF VESSEL : MV.
BERTH :
LOADING PORT :
{{-- Right Column --}}
VOY. NO :
BERTHED ON : AT : HRS
DEPARTURE ON : AT : HRS
{{-- 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\LoadingCargoSummary::getDefaultCargoItems(15); if (!is_array($sItems) || count($sItems) === 0) { $sItems = \App\Models\LoadingCargoSummary::getDefaultCargoItems(15); } $sTotals = $sh['totals'] ?? \App\Models\LoadingCargoSummary::getDefaultTotals(); @endphp
{{-- Table Section --}}
@foreach($sItems as $rIdx => $row) @endforeach
DISCHARGING PORT
B/L NO
DESTINATION
PORT
DESCRIPTION OF CARGO UNITS PKGS TONS CBM #
TOTAL {{ $sTotals['total_units'] ?? '0' }} {{ $sTotals['total_pkgs'] ?? '0' }} {{ formatDecimal($sTotals['total_m_tons'] ?? 0, 3, true) }} {{ formatDecimal($sTotals['total_cbm'] ?? 0, 3, true) }}
{{-- Add Row Button per Sheet --}}
Total Units, Pkgs, Tons, CBM otomatis dihitung live per sheet.
@endforeach
{{-- Keterangan Opsional --}}
{{-- Form Actions --}}
Batal