@if(!empty($label)) {{ $label }}@if(!empty($required)) * @endif @endif @foreach ($associatedModels as $associatedModel) {$name}->value ?? $value ?? Arr::first($associatedModels)->value) == $associatedModel->value) selected @endif> {{ $associatedModel->label }} @endforeach @include('modules.input-error', [ 'inputName' => $name, 'helperId' => "{{ $id }}Help", 'helper' => $helper ])