@extends('layouts.app') @section('title', 'Preview & Map Columns') @section('breadcrumbs') @endsection @section('content')

Map Columns & Preview

File: {{ $originalName }} — {{ $totalRows }} data rows found

@csrf {{-- Column Mapping --}}

Column Mapping

Map each file column to a system field

@foreach($headers as $index => $header)
@endforeach

Employee Code and Date are required. Other fields are optional.

{{-- Data Preview --}}

Data Preview

Showing first {{ count($previewRows) }} of {{ $totalRows }} rows
@foreach($headers as $header) @endforeach @foreach($previewRows as $rowIndex => $row) @foreach($row as $cell) @endforeach @endforeach
#{{ $header ?: '—' }}
{{ $rowIndex + 1 }}{{ $cell ?? '' }}
{{-- Actions --}}
Cancel
@endsection