2025-09-02 16:48:56 +02:00
|
|
|
<div class="form__field">
|
2025-09-05 17:05:30 +02:00
|
|
|
<div class="form__field-title">{{ $label }} {{ isset($required) ? '*' : '' }}
|
|
|
|
|
@if (isset($multiple))
|
|
|
|
|
<span class="normal">
|
|
|
|
|
({{ __('front.multiple_choice') }})
|
|
|
|
|
</span>
|
|
|
|
|
@endif
|
|
|
|
|
</div>
|
|
|
|
|
@foreach ($options as $option)
|
2025-09-02 16:48:56 +02:00
|
|
|
<label class="form__field-pseudolabel">
|
2025-09-05 17:05:30 +02:00
|
|
|
<input type="checkbox" name="{{ $name }}[]" value="{{ $option['value'] }}"
|
|
|
|
|
@if (isset($required)) required="true" @endif>
|
2025-09-03 16:17:26 +02:00
|
|
|
<span class="form__field-pseudocircle">{{ $option['label'] }}</span>
|
2025-09-02 16:48:56 +02:00
|
|
|
</label>
|
|
|
|
|
@endforeach
|
2025-09-05 17:05:30 +02:00
|
|
|
|
|
|
|
|
@error($name)
|
|
|
|
|
<div class="form__error">{{ $message }}</div>
|
|
|
|
|
@enderror
|
2025-09-02 16:48:56 +02:00
|
|
|
</div>
|