diff --git a/resources/views/form/rapport-team4/1791539482-b06c2f9a-fe45-4b16-843a-224f07ed0d7b.blade.php b/resources/views/form/rapport-team4/1791539482-b06c2f9a-fe45-4b16-843a-224f07ed0d7b.blade.php index b0824642..10d2f557 100644 --- a/resources/views/form/rapport-team4/1791539482-b06c2f9a-fe45-4b16-843a-224f07ed0d7b.blade.php +++ b/resources/views/form/rapport-team4/1791539482-b06c2f9a-fe45-4b16-843a-224f07ed0d7b.blade.php @@ -244,7 +244,10 @@ @php $isSubmitted = ($question->code == 'month' && in_array(trim($option->value), $submittedMonths, true)); $isSelected = (isset($question->value) && $question->value == $option->value); - $isDisabled = ($isEditMode && $isSubmitted && !$isSelected); + // Create: block already-submitted months. Edit: block other submitted months. + $isDisabled = $question->code == 'month' + ? (($isEditMode && $isSubmitted && !$isSelected) || (!$isEditMode && $isSubmitted)) + : false; @endphp @if($question->code == 'contact_id' && isset($option->contact->type) && $option->contact->type == 'doctor') @@ -258,7 +261,7 @@ @else