1. {{ __('Upload') }}
2. {{ __('Mapare coloane') }}
3. {{ __('Previzualizare') }}
4. {{ __('Confirmare') }}
{{-- STEP 1: Upload --}}
@if ($step === 1)
{{ __('Pasul 1: Încarcă fișierul') }}
@if ($upload)
{{ __('Selectat:') }} {{ $upload->getClientOriginalName() }}
@endif
@endif
{{-- STEP 2: Mapping --}}
@if ($step === 2)
{{ __('Pasul 2: Mapează coloanele') }}
{{ __('Spune-i sistemului ce reprezintă fiecare coloană din fișier. Vom salva configurația pentru imporțările viitoare.') }}
@foreach ($headersPreview['columns'] as $col)
| {{ $col }} |
@endforeach
@foreach ($headersPreview['rows'] as $row)
@foreach ($headersPreview['columns'] as $col)
| {{ $row[$col] ?? '' }} |
@endforeach
@endforeach
@endif
{{-- STEP 3: Preview --}}
@if ($step === 3)
{{ __('Pasul 3: Previzualizare — :n poziții', ['n' => $previewSummary['total']]) }}
{{ $previewSummary['found'] }}
{{ __('Găsite (cu articol existent)') }}
{{ $previewSummary['new'] }}
{{ __('Articole noi (se vor crea)') }}
{{ $previewSummary['no_article'] }}
{{ __('Fără articol (manual)') }}
| {{ __('Articol') }} | {{ __('Denumire') }} | {{ __('Brand') }} | {{ __('Cant.') }} | {{ __('Preț') }} | {{ __('Status') }} |
@foreach ($previewRows as $row)
| {{ $row['article'] }} |
{{ $row['name'] }} |
{{ $row['brand'] }} |
{{ rtrim(rtrim(number_format($row['qty'], 2), '0'), '.') }} |
{{ number_format($row['price'], 2) }} |
{{ ['found' => '✅ ' . __('Găsit'), 'new' => '⚠️ ' . __('Nou'), 'no_article' => '❓ ' . __('Nu găsit')][$row['status']] ?? $row['status'] }} |
@endforeach
@endif
{{-- STEP 4: Done --}}
@if ($step === 4)
✅
{{ __('Import finalizat cu succes') }}
{{ __(':n poziții importate în Purchase nouă', ['n' => $previewSummary['total']]) }}
@endif