@php $isTypeC = $exceptionList->isTypeC(); $isTypeB = $exceptionList->isTypeB(); $items = $exceptionList->cargo_items ?? []; $totals = $exceptionList->totals ?? []; $totUnits = $totals['total_units'] ?? 0; $totPkgs = $totals['total_pkgs'] ?? 0; $totOver = $totals['total_over'] ?? 0; $totShort = $totals['total_short'] ?? 0; // Portrait needs ~28 rows to fill page, landscape ~20 rows $totalRowsToPrint = $isTypeC ? max(count($items), 28) : max(count($items), 20); @endphp
@php $sheets = $exceptionList->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; $totOver = $totals['total_over'] ?? 0; $totShort = $totals['total_short'] ?? 0; $sNo = $sh['sheet_no'] ?? ($sIdx + 1); @endphp
{{ $exceptionList->subtitle ?: ($isTypeC ? 'DAMAGE CARGO BEFORE' : ($isTypeB ? 'DAMAGE CARGO BEFORE ( FOR LOADING )' : '( SHORT AND EXCESS FOR LOADING )')) }}
| NAME OF VESSEL | : | MV. | VOY. | |
| LOADING PORT | : | BERTHED ON : | ||
| DISCHARGING PORT | : | SAILED ON : | ||
| NAME OF VESSEL | : | MV. | VOY. | BERTH : | ||
| LOADING PORT | : | BERTHED ON : | ||||
| DISCHARGING PORT | : | SAILED ON : | ||||
|
DESCRIPTION OF CARGO
VIN NOS / SERIAL NO.
|
QUANTITY | REMARKS | |||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| UNITS | PKGS | ||||||||||||||||||
| B/L NO | DESTINATION PORT | DESCRIPTION OF CARGO | UNITS | PKGS | STOWAGE | NATURE OF DAMAGE AND REMARKS | |||||||||||||
| B/L NO | DESTINATION PORT | DESCRIPTION OF CARGO | UNITS | PKGS | STOWAGE | OVER | SHORT | REMARKS | |||||||||||
| {!! !empty($row['description']) ? e($row['description']) : ' ' !!} | {{ isset($row['units']) && $row['units'] !== '' ? $row['units'] : '' }} | {{ isset($row['pkgs']) && $row['pkgs'] !== '' ? $row['pkgs'] : '' }} | {!! !empty($row['remarks']) ? e($row['remarks']) : ' ' !!} | @elseif($isTypeB){!! !empty($row['bl_no']) ? e($row['bl_no']) : ' ' !!} | {!! !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'] : '' }} | {!! !empty($row['stowage']) ? e($row['stowage']) : ' ' !!} | {!! !empty($row['remarks']) ? e($row['remarks']) : ' ' !!} | @else{!! !empty($row['bl_no']) ? e($row['bl_no']) : ' ' !!} | {!! !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'] : '' }} | {!! !empty($row['stowage']) ? e($row['stowage']) : ' ' !!} | {{ isset($row['over']) && $row['over'] !== '' ? $row['over'] : '' }} | {{ isset($row['short']) && $row['short'] !== '' ? $row['short'] : '' }} | {!! !empty($row['remarks']) ? e($row['remarks']) : ' ' !!} | @endif
| TOTAL | {{ $totUnits > 0 ? number_format((float)$totUnits) : '0' }} | {{ $totPkgs > 0 ? number_format((float)$totPkgs) : '' }} | |||||||||||||||||
| TOTAL | {{ $totUnits > 0 ? number_format((float)$totUnits) : '0' }} | {{ $totPkgs > 0 ? number_format((float)$totPkgs) : '' }} | |||||||||||||||||
| TOTAL | {{ $totUnits > 0 ? number_format((float)$totUnits) : '0' }} | {{ $totPkgs > 0 ? number_format((float)$totPkgs) : '' }} | {{ $totOver > 0 ? number_format((float)$totOver) : '' }} | {{ $totShort > 0 ? number_format((float)$totShort) : '' }} | |||||||||||||||
|
{{ $isTypeC ? 'CHECKER' : 'CHIEF CHECKER' }}
{{ $exceptionList->chief_checker ?: '' }}
|
CHIEF OFFICER
{{ $exceptionList->chief_officer ?: '' }}
|