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) @endforeach @foreach ($headersPreview['rows'] as $row) @foreach ($headersPreview['columns'] as $col) @endforeach @endforeach
{{ $col }}
{{ $row[$col] ?? '' }}
@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)') }}
@foreach ($previewRows as $row) @endforeach
{{ __('Articol') }}{{ __('Denumire') }}{{ __('Brand') }}{{ __('Cant.') }}{{ __('Preț') }}{{ __('Status') }}
{{ $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'] }}
@endif {{-- STEP 4: Done --}} @if ($step === 4)

{{ __('Import finalizat cu succes') }}

{{ __(':n poziții importate în Purchase nouă', ['n' => $previewSummary['total']]) }}

@if (session('purchase_id')) {{ __('↗ Deschide Purchase') }} @endif
@endif