Team 3 (Levoswitch Enrollment) Checkbox
Specific Folder FTP Upload / ftp-deploy (push) Successful in 47s Details

This commit is contained in:
zeeshan 2026-11-17 15:02:22 +05:30
parent 8b64a1e851
commit 21cc4ebab1
1 changed files with 20 additions and 0 deletions

View File

@ -559,7 +559,27 @@
@endforeach
@endif
</select>
@break
@case('checkbox')
@foreach($question->options as $option)
<div class="form-check mb-2 form-check-primary">
<input
class="form-check-input"
type="checkbox"
id="field-{{$question->code}}-{{$option->value}}-${doctor_count}"
name="{{$question->code}}[${doctor_count}][]"
value="{{$option->value}}"
{{ isset($question->value) && $question->value != '' && in_array($option->value, (array)$question->value) ? 'checked' : '' }}
>
<label
class="form-check-label"
for="field-{{$question->code}}-{{$option->value}}-${doctor_count}">
{{$option->display}}
</label>
</div>
@endforeach
@break
@endswitch
</div>
@endforeach </div>`;