Просмотр исходного кода

fixed mask template repeated words

= 3 лет назад
Родитель
Сommit
4360db8fef

+ 7 - 2
app/Http/Controllers/AdminController.php

@@ -187,9 +187,14 @@ class AdminController extends Controller
         $insurance = $request->get('insurance');
         if($insurance){
             if($insurance === 'MEDICARE'){
-                $patients = $patients->where('is_part_b_primary', 'YES');
+                $patients = $patients->whereHas('latestClientPrimaryCoverage', function($cpcQuery){
+                    return $cpcQuery->where('is_partbprimary', '=', 'YES');
+                });
             }else{
-                $patients = $patients->where('is_part_b_primary', '!=', 'YES');
+                dd("here");
+                $patients = $patients->whereDoesntHave('latestClientPrimaryCoverage', function($cpcQuery){
+                    return $cpcQuery->where('is_partbprimary', '=', 'YES');
+                });
             }
         }
 

+ 1 - 1
resources/views/app/patient/segment-templates/masks_and_respirators/edit.blade.php

@@ -38,7 +38,7 @@ $segmentSections = [
 			],
 			[
 				'key' => 'what_is_the_best_mask_you_will_wear_consistently',
-				'text' => 'What is the most most protective mask that you will wear consistently?',
+				'text' => 'What is the most protective mask that you will wear consistently?',
 				'type' => 'text'
 			]
 		]

+ 1 - 1
resources/views/app/patient/segment-templates/masks_and_respirators/summary.blade.php

@@ -37,7 +37,7 @@ $segmentSections = [
 			],
 			[
 				'key' => 'what_is_the_best_mask_you_will_wear_consistently',
-				'text' => 'What is the most most protective mask that you will wear consistently?',
+				'text' => 'What is the most protective mask that you will wear consistently?',
 				'type' => 'text'
 			]
 		]