diff --git a/resources/views/form/rapport-titans/1781584303-cf62bee0-3c63-4070-9781-113989593655.blade.php b/resources/views/form/rapport-titans/1781584303-cf62bee0-3c63-4070-9781-113989593655.blade.php index 250f2f79..facaa13d 100644 --- a/resources/views/form/rapport-titans/1781584303-cf62bee0-3c63-4070-9781-113989593655.blade.php +++ b/resources/views/form/rapport-titans/1781584303-cf62bee0-3c63-4070-9781-113989593655.blade.php @@ -38,6 +38,25 @@
Submitted By: {{$form->user_info->name}}
@endif + @php + $taggedDoctorCount = 0; + + foreach ($questions as $question) { + if ($question->code == 'contact_id') { + foreach ($question->options as $option) { + if ( + isset($option->contact->synchrobreathe_tagged) && + $option->contact->synchrobreathe_tagged == 'yes' + ) { + $taggedDoctorCount++; + } + } + } + } + + $isTaggingComplete = ($taggedDoctorCount == 20); + @endphp + @if($isTaggingComplete)
@@ -75,31 +94,23 @@ @case('dropdown') - @break + @break @case('checkbox') @foreach($question->options as $option)
@@ -145,6 +156,7 @@
@endif
+ @endif @@ -179,6 +191,19 @@ @include('layouts.shared/footer-script') +@if(!$isTaggingComplete) + +@endif +@if(!$isTaggingComplete) + +@endif