@if (session()->has('success'))
{{ session('success') }}
@endif
@if (session()->has('error'))
{{ session('error') }}
@endif
@if (session()->has('warning'))
{{ session('warning') }}
@endif
@if (session()->has('info'))
@endif
@if(config('app.debug'))
Debug Info:
File: {{ $csvFile ? 'Uploaded' : 'None' }}
Season: {{ $selectedSeason ?: 'None' }}
Styles Available: {{ count($styles) }}
@if(count($styles) > 0)
First Style: ID={{ $styles->first()->id }}, customer_ref="{{ $styles->first()->customer_ref }}"
@endif
Import Data: {{ count($importData) }} rows
Processed Data: {{ count($processedData) }} rows
Show Preview: {{ $showPreview ? 'Yes' : 'No' }}
@endif
@if (!$importComplete)
@if($showPreview && count($processedData) > 0)
Preview Import Data
Review the data below and select correct styles for any unmatched entries (highlighted in red).
| Line |
Season |
Style |
Size |
CMT |
Quote |
Match Status |
Select Style |
@foreach($processedData as $index => $row)
| {{ $row['original_line'] }} |
{{ $row['season'] }} |
{{ $row['style'] }} |
{{ $row['size'] ?: 'N/A' }} |
{{ $row['cmt'] }} |
{{ $row['quote'] }} |
@if($row['has_match'])
Matched
@else
No Match
@endif
|
@if(!$row['has_match'])
@else
{{ $row['matched_style']->customer_ref ?? 'N/A' }}
@endif
|
@endforeach
@endif
@else
Import Complete!
The prices have been successfully imported.
@endif