@props([ 'name', 'options' => [], 'stored' => [], 'direction_name' => null, 'direction_options' => [], 'stored_directions' => [], ]) @php $widgetId = 'field-map-'.\Illuminate\Support\Str::random(8); $availableOptions = collect($options)->except(array_keys($stored))->all(); $showDirection = $direction_name !== null && ! empty($direction_options); @endphp
@if ($showDirection) @endif @foreach ($stored as $storedKey => $storedValue) @if ($showDirection) @endif @endforeach 0) hidden @endif> @if ($showDirection) @endif
{{ trans('admin/settings/sync_adapters.field_map_column_field') }} {{ trans('admin/settings/sync_adapters.field_map_column_path') }}{{ trans('admin/settings/sync_adapters.field_map_column_direction') }}
{{ $options[$storedKey] ?? $storedKey }}
{{ trans('admin/settings/sync_adapters.field_map_empty') }}