{{-- --}}
@if($activeFile->header_row)
@foreach($activeFile->header_row AS $index => $header)
{{-- --}}
{{-- --}}
{{ Form::select('field_map.'.$index, $columnOptions[$activeFile->import_type], @$activeFile->field_map[$header],
[
'class' => 'mappings livewire-select2',
'wire:model' => 'field_map.'.$index, // I think it just can't read this :/
'data-livewire-mapping' => $header, // do we still need this?
'data-livewire-model' => 'field_map.'.$index, // start of a 'universal' way to do this?
'placeholder' => 'Do Not Import'
])
}}
{{-- /* 'wire:model' => 'activeFile.field_map.'.$header, doesn't work */
/*'class' => 'livewire-select2 mappings', */' --}}
{{-- --}}
{{ $activeFile->first_row[$index] }}
@endforeach
@else
No Columns Found!
@endif
{{-- --}}