@foreach($bookingFormFields as $f)
@php
$optionsText = '';
if (is_array($f->options_json) && count($f->options_json)) {
$optionsText = implode("\n", $f->options_json);
}
$coreLocked = $f->maps_to === 'email';
$nameLocked = $f->maps_to === 'name';
@endphp
|
|
|
{{ $f->field_key }} |
{{ $mapsToLabel[$f->maps_to] ?? $f->maps_to }} |
@if($coreLocked || $nameLocked)
@else
id.'.form_enabled', $f->form_enabled ? '1' : '0') === '1' ? 'checked' : '' }}>
@endif
|
@if($coreLocked)
@else
id.'.is_required', $f->is_required ? '1' : '0') === '1' ? 'checked' : '' }} {{ ($f->form_enabled || $nameLocked) ? '' : 'disabled' }}>
@endif
|
|
|
@if(! $f->is_preset)
@endif
|
@endforeach