From a73a95cee7e9585964b64a22aff53af72d984ad9 Mon Sep 17 00:00:00 2001 From: zeeshan Date: Fri, 9 Oct 2026 17:51:14 +0530 Subject: [PATCH] Team 4 (Mother Forum) Month --- ...2f9a-fe45-4b16-843a-224f07ed0d7b.blade.php | 62 ++++++++++++++++++- 1 file changed, 59 insertions(+), 3 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 eb500a6b..be2aa509 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 @@ -77,7 +77,7 @@ @break @case('dropdown') - required == 'yes' ? 'required' : '' }}> @foreach ($question->options as $option) @if($question->code == 'contact_id' && isset($option->contact->type) && $option->contact->type == 'doctor' ) @@ -100,8 +100,64 @@ @endforeach - - @break + */ + + + @case('dropdown') + @php + + $submittedMonths = []; + if (isset($submissions) && is_array($submissions)) { + foreach ($submissions as $sub) { + + if (isset($id) && $id && isset($sub->id) && $sub->id == $id) { + continue; + } + + + $monthVal = $sub->month ?? ($sub->data->month ?? null); + if ($monthVal) { + $submittedMonths[] = trim($monthVal); + } + } + } + @endphp + + + @break + @break @case('checkbox') @foreach($question->options as $option)