@php /** @var \App\Models\OutturnReport $outturnReport */ $rawSheets = old('sheets', $outturnReport->resolved_sheets ?? []); if (empty($rawSheets)) { $rawSheets = [ [ 'sheet_no' => old('sheet_no', $outturnReport->sheet_no ?: '1'), 'date' => old('berthed_on', $outturnReport->berthed_on ?: ''), 'cargo_items' => old('cargo_items', $outturnReport->cargo_items ?? \App\Models\OutturnReport::getDefaultCargoItems(10)), 'totals' => $outturnReport->totals ?? \App\Models\OutturnReport::getDefaultTotals(), ] ]; } @endphp @if($errors->any())
Terdapat beberapa kesalahan pengisian form:
@endif
@csrf @if($outturnReport->exists) @method('PUT') @endif @include('partials.vessel-berthing-pull-bar') {{-- Meta Control Bar --}}

No lembar default.

Draft atau Selesai.

{{-- Main Document Card (Matching the exact Outturn Report Paper Sheet) --}}
{{-- Document Header --}}

OUTTURN REPORT

{{ old('sheet_no', $outturnReport->sheet_no ?? '1') }}
{{-- Section 1: Vessel & Voyage Header Info (Matching Print Format Table) --}}
NAME OF VESSEL :
MV.
VOY. :
BERTH : BERTHED ON :
AT : HOURS
DISCHARGING PORT : DEPARTURE ON :
AT : HOURS
SHIPPING AGENT : STEVEDORING :
{{-- Section 2: Multi-Sheet Navigation & Cargo Tables --}}
@foreach($rawSheets as $sIdx => $sheet) @endforeach
{{-- Containers for each Sheet --}}
@foreach($rawSheets as $sIdx => $sheet) @php $sItems = $sheet['cargo_items'] ?? \App\Models\OutturnReport::getDefaultCargoItems(10); $sTotals = $sheet['totals'] ?? \App\Models\OutturnReport::getDefaultTotals(); $sNo = $sheet['sheet_no'] ?? ($sIdx + 1); @endphp
{{-- Sheet Info Header --}}
{{-- Table for this Sheet --}}
@foreach($sItems as $rIdx => $item) @endforeach
LOADING PORT
B/L NO.
CONSIGNEE NAME DESCRIPTION OF CARGO UNITS PKGS TONS M3 #
TOTAL SHEET INI {{ number_format((float)($sTotals['total_units'] ?? 0)) }} {{ number_format((float)($sTotals['total_pkgs'] ?? 0)) }} {{ formatDecimal($sTotals['total_m_tons'] ?? 0, 2, true) }} {{ formatDecimal($sTotals['total_m3'] ?? 0, 2, true) }}
Total Units, Pkgs, Tons, M3 otomatis dihitung per sheet
@endforeach
{{-- Keterangan Tambahan --}}
{{-- Action Buttons --}}
Batal