diff --git a/resources/views/form/rapport-titans/1790753526-37d85bd1-442d-4226-bacf-5f12e647373d.blade.php b/resources/views/form/rapport-titans/1790753526-37d85bd1-442d-4226-bacf-5f12e647373d.blade.php index ea10541d..743fc5c7 100644 --- a/resources/views/form/rapport-titans/1790753526-37d85bd1-442d-4226-bacf-5f12e647373d.blade.php +++ b/resources/views/form/rapport-titans/1790753526-37d85bd1-442d-4226-bacf-5f12e647373d.blade.php @@ -89,9 +89,19 @@ @endphp + @if(isset($sub->formdata->execution_done) && $sub->formdata->execution_done == 'yes' ) Execution Done + + @else + plan_details="{{ json_encode($sub->formdata) }}"> Edit + + + + @endif + {{ $sub->formdata->plan_date }} {{ isset($sub->formdata->execution_done) && $sub->formdata->execution_done == 'yes' ? 'Yes' : 'No' }} @@ -196,54 +206,34 @@ {{ $question->required == 'yes' ? 'required' : '' }}>{{ isset($question->value) ? $question->value : '' }} @break + + @case('dropdown') - {{-- required ?? '') == 'yes' ? 'required' : '' }}> - @if($question->code == 'contact_id' && isset($option->contact->type) && $option->contact->type == 'doctor') - @foreach ($question->options as $option) - @if( isset($option->contact->core_hcp_connect_drive_doctors) && $option->contact->core_hcp_connect_drive_doctors == 'Yes' ) - + + @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') + + @endif + @else + {{-- Default options for other dropdowns --}} + @endif - @endforeach - @else - @foreach ($question->options as $option) - - @endforeach - @endif - - --}} - - @case('dropdown') - -@break + @endforeach + @break + @case('checkbox') @foreach ($question->options as $option) @@ -281,7 +271,7 @@ @csrf - + {{-- --}} @foreach ($questions as $question)