OUTTURN REPORT - {{ $outturnReport->vessel_name ?: 'MV' }} (Ukuran: A4 Portrait • Total Lembar: {{ count($outturnReport->resolved_sheets) }})
Kembali
@php $sheets = $outturnReport->resolved_sheets; $totalSheetsCount = count($sheets); @endphp @foreach($sheets as $sIdx => $sh) @php $items = $sh['cargo_items'] ?? []; $totals = $sh['totals'] ?? []; $totUnits = $totals['total_units'] ?? 0; $totPkgs = $totals['total_pkgs'] ?? 0; $totMtons = $totals['total_m_tons'] ?? 0; $totM3 = $totals['total_m3'] ?? 0; $sNo = $sh['sheet_no'] ?? ($sIdx + 1); @endphp
{{-- Kop Surat Perusahaan --}}
Kop Surat PT. Anugrah Permata Samudra
{{-- Document Header --}}

OUTTURN REPORT

{{ $sNo }}
{{-- Meta Information --}}
NAME OF VESSEL : MV. {{ $outturnReport->vessel_name }} VOY. : {{ $outturnReport->voyage }}
BERTH : {{ $outturnReport->berth }} BERTHED ON : {{ $outturnReport->berthed_on }}  AT : {{ $outturnReport->berthed_at_hours }} HOURS
DISCHARGING PORT : {{ $outturnReport->discharging_port }} DEPARTURE ON : {{ $outturnReport->departure_on }}  AT : {{ $outturnReport->departure_at_hours }} HOURS
SHIPPING AGENT : {{ $outturnReport->resolved_shipping_agent }} STEVEDORING : {{ $outturnReport->resolved_stevedoring }}
{{-- Cargo Manifest Table --}} @php $rowsToRender = !empty($items) ? $items : [[]]; @endphp @foreach($rowsToRender as $row) @endforeach
LOADING PORT
B/L NO.
CONSIGNEE NAME DESCRIPTION OF CARGO UNITS PKGS TONS M3
{!! !empty($row['loading_port_bl']) ? e($row['loading_port_bl']) : ' ' !!} {!! !empty($row['consignee_name']) ? e($row['consignee_name']) : ' ' !!} {!! !empty($row['cargo_description']) ? e($row['cargo_description']) : ' ' !!} {{ isset($row['units']) && $row['units'] !== '' ? number_format((float)$row['units']) : '' }} {{ isset($row['pkgs']) && $row['pkgs'] !== '' ? number_format((float)$row['pkgs']) : '' }} {{ isset($row['m_tons']) && $row['m_tons'] !== '' ? formatDecimal($row['m_tons']) : '' }} {{ isset($row['m3']) && $row['m3'] !== '' ? formatDecimal($row['m3']) : '' }}
TOTAL {{ $totUnits ? number_format((float)$totUnits) : '0' }} {{ $totPkgs ? number_format((float)$totPkgs) : '0' }} {{ formatDecimal($totMtons, 2, true) }} {{ formatDecimal($totM3, 2, true) }}
{{-- Signatures --}}
CHIEF CHECKER
{{ $outturnReport->chief_checker ?: '' }}
CHIEF OFFICER
{{ $outturnReport->chief_officer ?: '' }}
@endforeach