LOADING CARGO SUMMARY - MV. {{ $loadingCargoSummary->vessel_name ?: '-' }} (Voyage: {{ $loadingCargoSummary->voyage ?: '-' }} • Total Lembar: {{ count($loadingCargoSummary->resolved_sheets) }})
Kembali
@php $sheets = $loadingCargoSummary->resolved_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; $totCbm = $totals['total_cbm'] ?? 0; $sNo = $sh['sheet_no'] ?? ($sIdx + 1); @endphp
{{-- Kop Surat Perusahaan --}}
Kop Surat PT. Anugrah Permata Samudra
{{-- Top Title with Box on Right --}}

LOADING CARGO SUMMARY

{{ $sNo }}
{{-- Header Info Table --}}
NAME OF VESSEL : MV. {{ $loadingCargoSummary->vessel_name ?: '' }} VOY. {{ $loadingCargoSummary->voyage ?: '' }}
BERTH : {{ $loadingCargoSummary->berth ?: '' }} BERTHED ON : {{ $loadingCargoSummary->berthed_date ?: '' }}   AT : {{ $loadingCargoSummary->berthed_time ?: '' }} HRS
LOADING PORT : {{ $loadingCargoSummary->loading_port ?: '' }} DEPARTURE ON : {{ $loadingCargoSummary->departure_date ?: '' }}   AT : {{ $loadingCargoSummary->departure_time ?: '' }} HRS
{{-- Table --}} @php $rowsToRender = !empty($items) ? $items : [[]]; @endphp @foreach($rowsToRender as $row) @endforeach
DISCHARGING PORT
B/L NO
DESTINATION
PORT
DESCRIPTION OF CARGO UNITS PKGS TONS CBM
{!! !empty($row['discharging_port_bl']) ? e($row['discharging_port_bl']) : ' ' !!} {!! !empty($row['destination_port']) ? e($row['destination_port']) : ' ' !!} {!! !empty($row['description']) ? e($row['description']) : ' ' !!} {{ isset($row['units']) && $row['units'] !== '' ? $row['units'] : '' }} {{ isset($row['pkgs']) && $row['pkgs'] !== '' ? $row['pkgs'] : '' }} {{ isset($row['m_tons']) && $row['m_tons'] !== '' ? $row['m_tons'] : '' }} {{ isset($row['cbm']) && $row['cbm'] !== '' ? $row['cbm'] : '' }}
TOTAL {{ $totUnits > 0 ? number_format((float)$totUnits) : '0' }} {{ $totPkgs > 0 ? number_format((float)$totPkgs) : '' }} {{ formatDecimal($totMTons, 3, true) }} {{ formatDecimal($totCbm, 3, true) }}
{{-- Signatures Section --}}
CHIEF CHECKER
{{ $loadingCargoSummary->chief_checker ?: '' }}
CHIEF OFFICER
{{ $loadingCargoSummary->chief_officer ?: '' }}
@endforeach