Files Processed: {{ count($previewData) }}
Database Matches: {{ collect($previewData)->where('db_matches.found', true)->count() }}
Files with Changes: {{ collect($previewData)->filter(fn($data) => $this->hasChanges($data))->count() }}
Total ASNs Found: {{ collect($previewData)->sum(fn($data) => count($data['asn_numbers'] ?? [])) }}
Data Keys: {{ json_encode(array_keys($data)) }}
ASN Data Count: {{ count($data['asn_data'] ?? []) }}
ASN Numbers: {{ json_encode($data['asn_numbers'] ?? []) }}
Has ASN Data: {{ !empty($data['asn_data']) ? 'Yes' : 'No' }}
@if(!empty($data['asn_data']))ASN Data Structure:
{{ json_encode($data['asn_data'], JSON_PRETTY_PRINT) }}
@endif
Full Data Structure:
{{ json_encode($data, JSON_PRETTY_PRINT) }}
| Field | Current (Database) | New (PDF) | Status |
|---|---|---|---|
| Net Weight (kg) | {!! $this->formatCurrentValue($data['db_matches']['current_data']['net_weight'] ?? null) !!} | {{ $data['asn_data'][$loop->index]['net_weight'] ?: 'Not found' }} | @if(($data['db_matches']['current_data']['net_weight'] ?? null) != ($data['asn_data'][$loop->index]['net_weight'] ?? null)) Will Update @else No Change @endif |
| Gross Weight (kg) | {!! $this->formatCurrentValue($data['db_matches']['current_data']['gross_weight'] ?? null) !!} | {{ $data['asn_data'][$loop->index]['gross_weight'] ?: 'Not found' }} | @if(($data['db_matches']['current_data']['gross_weight'] ?? null) != ($data['asn_data'][$loop->index]['gross_weight'] ?? null)) Will Update @else No Change @endif |
| Carton Count | {!! $this->formatCurrentValue($data['db_matches']['current_data']['no_cartons'] ?? null) !!} | {{ $data['asn_data'][$loop->index]['carton_count'] ?: 'Not found' }} | @if(($data['db_matches']['current_data']['no_cartons'] ?? null) != ($data['asn_data'][$loop->index]['carton_count'] ?? null)) Will Update @else No Change @endif |
| ExFty Date | {!! $this->formatCurrentValue($data['db_matches']['current_data']['exfty'] ?? null) !!} | {{ $data['asn_data'][$loop->index]['date'] ?: 'Not found' }} | @if(($data['db_matches']['current_data']['exfty'] ?? null) != ($data['asn_data'][$loop->index]['date'] ?? null)) Will Update @else No Change @endif |
| Factory Invoice | {!! $this->formatCurrentValue($data['db_matches']['current_data']['factory_invoice'] ?? null) !!} | {{ $data['asn_data'][$loop->index]['factory_invoice'] ?: 'Not found' }} | @if(($data['db_matches']['current_data']['factory_invoice'] ?? null) != ($data['asn_data'][$loop->index]['factory_invoice'] ?? null)) Will Update @else No Change @endif |
| ASN Numbers | {!! $this->formatAsnNumbers($data['db_matches']['current_data']['asn'] ?? []) !!} |
@if(!empty($data['asn_numbers']))
@foreach($data['asn_numbers'] as $asn)
{{ $asn }} |
@php $currentAsns = $data['db_matches']['current_data']['asn'] ?? []; $newAsns = $data['asn_numbers'] ?? []; sort($currentAsns); sort($newAsns); $asnChanged = $currentAsns != $newAsns; @endphp @if($asnChanged) Will Update @else No Change @endif |
| Size | Current Qty | New Qty | Composition | Status |
|---|---|---|---|---|
| {{ $sizeData['size'] }} | {{ $currentQty }} | {{ $sizeData['quantity'] }} | {{ $sizeMatch['composition'] ?? 'Not found' }} | @if($found) @if($currentQty != $sizeData['quantity']) Will Update @else No Change @endif @else Size Not Found @endif |
| Field | Current Value | New Value | Status |
|---|---|---|---|
| Net Weight (kg) | {!! $this->formatCurrentValue($data['db_matches']['current_data']['net_weight'] ?? null) !!} | {{ $data['net_weight'] ?: 'Not found' }} | @if(($data['db_matches']['current_data']['net_weight'] ?? null) != ($data['net_weight'] ?? null)) Will Update @else No Change @endif |
| Gross Weight (kg) | {!! $this->formatCurrentValue($data['db_matches']['current_data']['gross_weight'] ?? null) !!} | {{ $data['gross_weight'] ?: 'Not found' }} | @if(($data['db_matches']['current_data']['gross_weight'] ?? null) != ($data['gross_weight'] ?? null)) Will Update @else No Change @endif |
| Carton Count | {!! $this->formatCurrentValue($data['db_matches']['current_data']['no_cartons'] ?? null) !!} | {{ $data['no_cartons'] ?: 'Not found' }} | @if(($data['db_matches']['current_data']['no_cartons'] ?? null) != ($data['no_cartons'] ?? null)) Will Update @else No Change @endif |
| Size | Current Qty | New Qty | Composition | Status |
|---|---|---|---|---|
| {{ $size['size'] }} | {{ $currentQty }} | {{ $size['qty'] ?? $size['quantity'] ?? 'Not found' }} | {{ $size['composition'] ?: 'Not found' }} | @if($found) @if($currentQty != ($size['qty'] ?? $size['quantity'] ?? 0)) Will Update @else No Change @endif @else Size Not Found @endif |