From 5700fd2ae404ba56c2c18ef1190bf5c57417714b Mon Sep 17 00:00:00 2001 From: Farhan Pathan Date: Mon, 13 Jul 2026 09:43:39 +0530 Subject: [PATCH] Titans: Ciphaler Rxn Tracker & Synchrobreathe Rxn Tracker (20 doctors tagging) --- ...bee0-3c63-4070-9781-113989593655.blade.php | 71 +++++++++++++------ ...f5cd-e316-4299-a2a7-31d257766b0a.blade.php | 55 ++++++++------ 2 files changed, 83 insertions(+), 43 deletions(-) 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