@if ($box->source == 'created') {{-- Box is created --}}

Counted Items

@foreach ($linesWithCounts as $line) @endforeach {{-- @foreach ($linesWithCounts as $line) @endforeach --}}
Barcode Description Style Colour Size Counted Counted By Date
{{ $record->receive_order_line->barcode}} {{ $record->receive_order_line->description}} {{ $record->receive_order_line->style ?? 'N/A' }} {{ $record->receive_order_line->colour ?? 'N/A' }} {{ $record->receive_order_line->size ?? 'N/A' }} {{ $line->qty ?? 0 }} {{$line->createdBy->name ?? 'N/A' }} {{$line->created_at->format(config('app.datetime_format')) ?? 'N/A' }}
{{ $line->receive_order_line->barcode}} {{ $line->description}} {{ $line->style}} {{ $line->colour }} {{ $line->size}} {{ $line->codein}} {{ $line->qty ?? 0}}
@if(count($notFound) > 0)

Created Items

@foreach ($notFound as $line) @endforeach
Barcode Description Style Colour Size Counted Counted By Updated at
{{ $line->barcode }} {{ $line->description }} {{ $line->style }} {{ $line->colour }} {{ $line->size }} {{ $line->counted_qty ?? 0 }} {{ $line->countedBy->name ?? "" }} {{ $line->updated_at != null ? $line->updated_at->format(config('app.datetime_format')) : "" }}
@endif @elseif($box->source == 'imported') {{-- Box is imported --}}

Counted Items

@foreach ($box->receiveOrderLines as $line) @endforeach
Barcode Description Style Colour Size Counted Ordered Counted By Updated at
{{ $line->barcode }} {{ $line->description }} {{ $line->style }} {{ $line->colour }} {{ $line->size }} {{ $line->counted_qty ?? 0 }} {{ $line->qty ?? 0 }} {{ $line->countedBy->name ?? "" }} {{ $line->updated_at != null ? $line->updated_at->format(config('app.datetime_format')) : "" }}
@if($box->receiveOrderNotFound->isNotEmpty())

Created Items

@foreach ($box->receiveOrderNotFound as $line) @endforeach
Barcode Description Style Colour Size Counted Counted By Updated at
{{ $line->barcode }} {{ $line->description }} {{ $line->style }} {{ $line->colour }} {{ $line->size }} {{ $line->counted_qty ?? 0 }} {{ $line->countedBy->name ?? "" }} {{ $line->updated_at != null ? $line->updated_at->format(config('app.datetime_format')) : "" }}
@endif @endif @if($box->getTransferAllocations()->isNotEmpty())

Transfer Allocations

@php $totalAllocated = 0; @endphp @foreach ($box->getTransferAllocations() as $allocation) @php $totalAllocated += $allocation['qty'] ?? 0; @endphp @endforeach
Barcode Description Warehouse Destination Box Allocated Qty
{{ $allocation['barcode'] }} {{ $allocation['description'] }} {{ $allocation['destination_warehouse'] ?? 'N/A' }} {{ $allocation['destination_box_name'] ?? 'N/A' }} {{ $allocation['qty'] ?? 0 }}
Unallocated {{ $box->noOfPcs - $totalAllocated }} Pcs
@endif @if(isset($unallocatedItems) && count($unallocatedItems) > 0)

Unallocated Items

@foreach ($unallocatedItems as $item) @endforeach
Barcode Description Counted Qty Allocated Qty Unallocated Qty
{{ $item['barcode'] }} {{ $item['description'] }} {{ $item['counted_qty'] }} {{ $item['allocated_qty'] }} {{ $item['unallocated_qty'] }}
@endif