@php /** @var App\Models\Page $page */ use App\Classes\Utilities; $form_field = $page->form_field; $form_fields = $form_field->form->valid_form_fields; $form_field_index = Utilities::multiFindKey($form_fields->toArray(), 'id', $form_field->id); @endphp {{-- komentar za lažje urejanje v Developer Tools --}} @if(!empty(App\Classes\Prefs::$web_edit_mode) or App::isLocal()) @endif @if(in_array($form_field->type, [ App\Classes\Prefs::$web_form_field_types['submit']['id'], App\Classes\Prefs::$web_form_field_types['reset']['id'], App\Classes\Prefs::$web_form_field_types['button']['id'], ]) or (Utilities::multiFindValue(App\Classes\Prefs::$web_form_field_types, 'id', $form_field->type, 'type') == 'button') ) {{-- gumbov ne dodajamo kot data-input, ampak se dodajo kot cta_button element --}} @else
@endif