{{ $this->form }} @if (!empty($this->excelData) && empty($this->filteredData) && $this->warehouse)

No data found: No rows match the selected warehouse "{{ $this->warehouse }}". Please check that the U_Loc column in your Excel file matches the warehouse name exactly.

Total rows loaded: {{ count($this->excelData) }}

@endif @if (!empty($this->excelData) && empty($this->filteredData) && empty($this->warehouse))

Data loaded: {{ count($this->excelData) }} row(s) loaded. Please select a warehouse to filter and preview the data.

@endif @php // If warehouse is selected, always use filteredData (even if empty) // Otherwise, show all excelData if (!empty($this->warehouse)) { $previewData = $this->filteredData ?? []; } else { $previewData = $this->excelData ?? []; } @endphp @if (!empty($this->excelData) && !empty($this->warehouse) && empty($this->filteredData))

Debug Info: Warehouse is selected ({{ $this->warehouse }}) but filteredData is empty. Total Excel rows: {{ count($this->excelData) }}. This means no rows match the selected warehouse.

@endif @if (!empty($previewData))

Preview Data ({{ count($previewData) }} rows)

@if ($this->warehouse)

Filtered by: {{ $this->warehouse }}

@else

Showing all data (select warehouse to filter)

@endif
@foreach($previewData as $row) @endforeach
DocNum U_SoNum U_DelNote U_CntNo U_Size U_opnm U_LoadOn U_DelOn U_HoldTill U_TrkNo2 U_SAOut2 U_SAInFull U_DriverName U_Loc U_Seal U_ContainerType U_Dest U_ReqDate U_BookNo
{{ $row['docnum'] ?? $row['DocNum'] ?? '-' }} {{ $row['u_sonum'] ?? $row['U_SoNum'] ?? '-' }} {{ $row['u_delnote'] ?? $row['U_DelNote'] ?? '-' }} {{ $row['u_cntno'] ?? $row['U_CntNo'] ?? '-' }} {{ $row['u_size'] ?? $row['U_Size'] ?? '-' }} {{ $row['u_opnm'] ?? $row['U_opnm'] ?? '-' }} {{ $row['u_loadon'] ?? $row['U_LoadOn'] ?? '-' }} {{ $row['u_delon'] ?? $row['U_DelOn'] ?? '-' }} {{ $row['u_holdtill'] ?? $row['U_HoldTill'] ?? '-' }} {{ $row['u_trkno2'] ?? $row['U_TrkNo2'] ?? '-' }} {{ $row['u_saout2'] ?? $row['U_SAOut2'] ?? '-' }} {{ $row['u_sainfull'] ?? $row['U_SAInFull'] ?? '-' }} {{ $row['u_drivername'] ?? $row['U_DriverName'] ?? '-' }} {{ $row['u_loc'] ?? $row['U_Loc'] ?? '-' }} {{ $row['u_seal'] ?? $row['U_Seal'] ?? '-' }} {{ $row['u_containertype'] ?? $row['U_ContainerType'] ?? '-' }} {{ $row['u_dest'] ?? $row['U_Dest'] ?? '-' }} {{ $row['u_reqdate'] ?? $row['U_ReqDate'] ?? '-' }} {{ $row['u_bookno'] ?? $row['U_BookNo'] ?? '-' }}
@endif @if (!empty($previewData))
Confirm & Upload ({{ count($previewData) }} rows)
@endif