ldc-groupe/resources/views/components/front/inputs/multi-select.blade.php
K Muller c439c6c089 feat: sparkles: form back and front + newsletter subscribe and unsubscribe + alert message #58
feat: sparkles: form back and front + newsletter subscribe and unsubscribe + alert message
2025-09-16 09:10:40 +02:00

19 lines
865 B
PHP

<div class="form__field">
<div class="form__field-title">{{ $label }} {{ $required ? '*' : '' }}</div>
<div class="geographic-checkboxes-block">
<div class="geographic-checkboxes-result form__input"><span class="zones-wrapper">{{ $placeholder }}</span>
</div>
<div class="geographic-checkboxes-list">
@foreach ($options as $option)
<label class="form__field-pseudolabel">
<input type="checkbox" name="{{ $name }}[]" value="{{ $option['value'] }}"
@if (isset($option['required'])) required="true" @endif>
<span class="form__field-pseudosquare">{{ $option['label'] }}</span>
</label>
@endforeach
</div>
</div>
@error($name)
<div class="form__error">{{ $message }}</div>
@enderror
</div>