Titans (Core HCP Network)
Specific Folder FTP Upload / ftp-deploy (push) Successful in 39s Details

This commit is contained in:
zeeshan 2026-09-30 15:26:25 +05:30
parent 37c7122796
commit be7991eab8
1 changed files with 28 additions and 2 deletions

View File

@ -197,7 +197,7 @@
@break
@case('dropdown')
<select class="form-control" id="field-{{ $question->code }}" name="{{ $question->code }}" {{ $question->required == 'yes' ? 'required' : '' }}>
{{-- <select class="form-control" id="field-{{ $question->code }}" name="{{ $question->code }}" {{ $question->required == 'yes' ? 'required' : '' }}>
<option value=""> -- Select -- </option>
@if($question->code == 'contact_id' && isset($option->contact->type) && $option->contact->type == 'doctor')
@foreach ($question->options as $option)
@ -216,7 +216,33 @@
@endforeach
@endif
</select>
</select> --}}
@case('dropdown')
<select class="form-control" id="field-{{ $question->code }}" name="{{ $question->code }}" {{ ($question->required ?? '') == 'yes' ? 'required' : '' }}>
<option value=""> -- Select -- </option>
@foreach ($question->options as $option)
@if ($question->code == 'contact_id')
{{-- Only show doctors with connect drive enabled --}}
@if (($option->contact->type ?? null) == 'doctor' && ($option->contact->core_hcp_connect_drive_doctors ?? null) == 'Yes')
<option value="{{ $option->value }}"
msl-code="{{ $option->contact->msl_code ?? '' }}"
speciality="{{ $option->contact->speciality ?? '' }}"
core-value="{{ $option->contact->core_hcp_connect_drive_doctors_core_value ?? '' }}"
{{ isset($question->value) && $question->value == $option->value ? 'selected' : '' }}>
{{ $option->display }}
</option>
@endif
@else
{{-- Default options for other dropdowns --}}
<option value="{{ $option->value }}" {{ isset($question->value) && $question->value == $option->value ? 'selected' : '' }}>
{{ $option->display }}
</option>
@endif
@endforeach
</select>
@break
@break
@case('checkbox')