@extends('cargo_company.templates.layout') @php $dinfo = config("global.transporter_delivery_statuses.{$delivery->status}") ?? ['text' => '—', 'class' => 'secondary']; $progressPct = $totalExpected > 0 ? (int) round(($totalVerified / $totalExpected) * 100) : 0; $pending = max(0, $totalExpected - $totalVerified); $isCompleted = (int) $delivery->status === TRANSPORTER_DELIVERY_COMPLETED; @endphp @section('head') @endsection @section('content')
{{ $delivery->tracking_number }}
{{ $dinfo['text'] }} · Order {{ $delivery->order->order_reference }} @if($delivery->transporter) · Transporter {{ $delivery->transporter->user_code ?: $delivery->transporter->name }} @endif @if($delivery->arrival_estimate) · Est. {{ web_date_in_timezone($delivery->arrival_estimate, 'M d, Y') }} @endif
Back
Expected
{{ (int) $totalExpected }}
SKUs to verify
Verified
{{ (int) $totalVerified }}
Scanned successfully
Pending
{{ (int) $pending }}
Still to scan
Progress
{{ $progressPct }}%
@if($canScan && ! $isCompleted)
Scan product QR / barcode

Point your scanner at the label, or type the reference ID manually and press Enter.

@elseif($isCompleted)
Delivery completed. This delivery has been received and verified.
@endif
Items to Verify
{{ count($itemBreakdown) }} item{{ count($itemBreakdown) === 1 ? '' : 's' }} · {{ $totalExpected }} unit{{ $totalExpected === 1 ? '' : 's' }}
@forelse($itemBreakdown as $row) @empty @endforelse
Item Variants Verified / Expected Action
@if($row['image_url']) @endif
{{ $row['name'] ?: '—' }}
{{ $row['variants_count'] }} variant{{ $row['variants_count'] === 1 ? '' : 's' }}
@foreach($row['variants'] as $v) @if($v['is_verified'])@endif {{ $v['name'] }} · {{ $v['verified_quantity'] }}/{{ $v['expected_quantity'] }} @endforeach
{{ $row['verified'] }} / {{ $row['expected'] }} @if($row['is_all_verified']) Verified @elseif($canScan && ! $isCompleted) @else — @endif
No items in this delivery
@if($canScan && ! $isCompleted)
@if($allVerified) All items verified. You can complete this delivery. @else Verify all items to enable completion. @endif
@endif @endsection @section('script') @endsection