@props([ 'shipment' => null, 'isEdit' => false ]) @php $numPieces = $isEdit ? ($shipment->num_pieces ?? 1) : 1; $packages = $isEdit ? ($shipment->packages ?? []) : []; @endphp
Enter the total number of packages. The system will generate individual forms for each package.
@if($isEdit && count($packages) > 0) @foreach($packages as $index => $package)

@if($isEdit && isset($package->images) && count($package->images) > 0)
Existing images: @foreach($package->images as $image) {{ basename($image) }} @endforeach
@endif
@endforeach @endif
Package Summary
Total Packages: {{ $numPieces }}
Total Weight: {{ $isEdit ? number_format($shipment->total_weight ?? 0, 2) : '0' }} kg
Total Volume: {{ $isEdit ? number_format($shipment->total_volume ?? 0, 3) : '0' }}