{{ $headingTitle }}

@lang("messages.matchColumnMessage")

@lang("messages.unmatchedColumns", ["unmatchCount" => (!empty($heading) ? collect($columns)->where('required','Yes')->whereNotIn('id', $heading)->count() : 0)]) @lang("app.skipAll")
@php $firstSampleRow = $importSample[0] ?? (is_array($importSample) && count($importSample) ? $importSample[array_key_first($importSample)] : []); @endphp @forelse ($firstSampleRow as $key => $item) @php $headingKey = !empty($heading) ? ($heading[$key] ?? null) : null; $isMatched = $headingKey ? (bool) collect($columns)->where('id', $headingKey)->first() : false; @endphp
@if (!empty($heading))

{{$fileHeading[$key]}}

@endif

@if (!empty($heading)) @if(($heading[$key] ?? null) && collect($columns)->where('id', $heading[$key])->first()) {{ collect($columns)->where('id', $heading[$key])->first()['name'] }} @else (@lang('app.unmatchedColumn')) @endif @else (@lang('app.unmatchedColumn')) @endif

@foreach ($importSample as $dataKey => $value)

{{ $value[$key] }}

@endforeach
@empty @endforelse
@lang('app.submit') @lang('app.cancel')
{{ $backButtonText }}