@extends('layouts.dashboard') @section('content')
@if(session('success'))
{{ session('success') }}
@endif @if(session('error'))
{{ session('error') }}
@endif @if($shipment->error_message)
Processing failed: {{ $shipment->error_message }}
@endif

{{ $shipment->shipment_no }}

{{ $shipment->original_file }}

@if($shipment->pdf_file) Download PDF @endif
@csrf
@if(in_array($shipment->status, ['received','partially_received']) && !$shipment->stock_posted_at)
@csrf
@endif Back
Items
{{ $shipment->items_count }}
Matched
{{ $shipment->matched_count }}
Missing Images
{{ $shipment->missing_images_count }}
Status
{{ $shipment->status }}
@csrf @foreach($items as $item) @endforeach
Photo Product SKU Barcode Qty CTN Match Received Damaged
@if($item->product && $item->product->main_image) @else
No Image
@endif
{{ $item->product?->name ?: $item->name }}
@if(!$item->product)
Product not found
@elseif(!$item->product->main_image)
Missing product image
@endif
{{ $item->sku }} {{ $item->barcode }} {{ $item->qty }} {{ $item->ctn }} @if($item->match_status === 'barcode') Barcode @elseif($item->match_status === 'sku') SKU @else Not Matched @endif
@if(!$shipment->stock_posted_at)
@endif
{{ $items->links() }}
@endsection