@php $mathCaptcha = app('math-captcha'); $options = [ ...$options, 'label_attr' => [ 'class' => 'form-label required', ], 'label' => $mathCaptcha->label(), ]; @endphp @if ($showLabel && $options['label'] !== false && $options['label_show']) {!! Form::customLabel($name, $options['label'], $options['label_attr']) !!} @endif {!! $mathCaptcha->input([ 'class' => 'form-control', 'id' => 'math-group', 'placeholder' => $showLabel ? $mathCaptcha->getMathLabelOnly() . ' = ?' : $mathCaptcha->label(), ]) !!}