From f0f7e6ddde3fe70261a697ec3acfddb41d33d7c8 Mon Sep 17 00:00:00 2001 From: Ravi Gulhane Date: Sun, 22 Nov 2026 17:20:30 +0530 Subject: [PATCH] Changes --- ...2f9a-fe45-4b16-843a-224f07ed0d7b.blade.php | 74 +++++++++++-------- 1 file changed, 42 insertions(+), 32 deletions(-) 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