Browse Source

Nutrition - text change

Vijayakrishnan 2 years ago
parent
commit
c815cbf557

+ 5 - 1
resources/views/app/patient/module-specific-summary-renderers/nutrition/plan.blade.php

@@ -25,7 +25,11 @@
                     </td>
                     </td>
                     <td class="px-2">
                     <td class="px-2">
                         <div class=" <?= $point->is_removed ? 'strike-through' : '' ?> grow-till-300px">
                         <div class=" <?= $point->is_removed ? 'strike-through' : '' ?> grow-till-300px">
-                            {{ucwords(str_replace('_', ' ', strtolower($point->category)))}}
+                            @if($point->category === 'HIGH_SUGAR_BEVERAGES')
+                                Beverages
+                            @else
+                                {{ucwords(str_replace('_', ' ', strtolower($point->category)))}}
+                            @endif
                         </div>
                         </div>
                     </td>
                     </td>
                     <td class="width-300px">
                     <td class="width-300px">

+ 6 - 2
resources/views/app/patient/module-specific-summary-renderers/nutrition/subjective.blade.php

@@ -20,12 +20,16 @@
                         @if($rel)
                         @if($rel)
                             {{ $j }}.*
                             {{ $j }}.*
                         @else
                         @else
-                            {{ $j }}.
+                            {{ $j }}.1
                         @endif
                         @endif
                     </td>
                     </td>
                     <td class="px-2">
                     <td class="px-2">
                         <div class=" <?= $point->is_removed ? 'strike-through' : '' ?> grow-till-300px">
                         <div class=" <?= $point->is_removed ? 'strike-through' : '' ?> grow-till-300px">
-                            {{ucwords(str_replace('_', ' ', strtolower($point->category)))}}
+                            @if($point->category === 'HIGH_SUGAR_BEVERAGES')
+                                Beverages
+                            @else
+                                {{ucwords(str_replace('_', ' ', strtolower($point->category)))}}
+                            @endif
                         </div>
                         </div>
                     </td>
                     </td>
                     <td class="width-300px">
                     <td class="width-300px">

+ 1 - 1
resources/views/app/patient/nutrition-center.blade.php

@@ -19,7 +19,7 @@ $dailyIntakeCarbohydrates = Point::getOnlyPointOfCategory($patient, 'DAILY_INTAK
 $dailyIntakeCalories = Point::getOnlyPointOfCategory($patient, 'DAILY_INTAKE_CALORIES');
 $dailyIntakeCalories = Point::getOnlyPointOfCategory($patient, 'DAILY_INTAKE_CALORIES');
 
 
 $points = [
 $points = [
-    ["category" => 'HIGH_SUGAR_BEVERAGES', "name" => 'High Sugar Beverages', "point" => $highSugarBeverages],
+    ["category" => 'HIGH_SUGAR_BEVERAGES', "name" => 'Beverages', "point" => $highSugarBeverages],
     ["category" => 'WATER_INTAKE', "name" => 'Water Intake', "point" => $waterIntake],
     ["category" => 'WATER_INTAKE', "name" => 'Water Intake', "point" => $waterIntake],
     ["category" => 'FAST_FOOD', "name" => 'Fast Food', "point" => $fastFood],
     ["category" => 'FAST_FOOD', "name" => 'Fast Food', "point" => $fastFood],
     ["category" => 'SNACKS', "name" => 'Snacks', "point" => $snacks],
     ["category" => 'SNACKS', "name" => 'Snacks', "point" => $snacks],

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

@@ -14,7 +14,7 @@ $dailyIntakeCarbohydrates = Point::getOnlyPointOfCategory($patient, 'DAILY_INTAK
 $dailyIntakeCalories = Point::getOnlyPointOfCategory($patient, 'DAILY_INTAKE_CALORIES');
 $dailyIntakeCalories = Point::getOnlyPointOfCategory($patient, 'DAILY_INTAKE_CALORIES');
 
 
 $points = [
 $points = [
-    ["category" => 'HIGH_SUGAR_BEVERAGES', "name" => 'High Sugar Beverages', "point" => $highSugarBeverages],
+    ["category" => 'HIGH_SUGAR_BEVERAGES', "name" => 'Beverages', "point" => $highSugarBeverages],
     ["category" => 'WATER_INTAKE', "name" => 'Water Intake', "point" => $waterIntake],
     ["category" => 'WATER_INTAKE', "name" => 'Water Intake', "point" => $waterIntake],
     ["category" => 'FAST_FOOD', "name" => 'Fast Food', "point" => $fastFood],
     ["category" => 'FAST_FOOD', "name" => 'Fast Food', "point" => $fastFood],
     ["category" => 'SNACKS', "name" => 'Snacks', "point" => $snacks],
     ["category" => 'SNACKS', "name" => 'Snacks', "point" => $snacks],

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

@@ -14,7 +14,7 @@ $dailyIntakeCarbohydrates = Point::getOnlyPointOfCategory($patient, 'DAILY_INTAK
 $dailyIntakeCalories = Point::getOnlyPointOfCategory($patient, 'DAILY_INTAKE_CALORIES');
 $dailyIntakeCalories = Point::getOnlyPointOfCategory($patient, 'DAILY_INTAKE_CALORIES');
 
 
 $points = [
 $points = [
-    ["category" => 'HIGH_SUGAR_BEVERAGES', "name" => 'High Sugar Beverages', "point" => $highSugarBeverages],
+    ["category" => 'HIGH_SUGAR_BEVERAGES', "name" => 'Beverages', "point" => $highSugarBeverages],
     ["category" => 'WATER_INTAKE', "name" => 'Water Intake', "point" => $waterIntake],
     ["category" => 'WATER_INTAKE', "name" => 'Water Intake', "point" => $waterIntake],
     ["category" => 'FAST_FOOD', "name" => 'Fast Food', "point" => $fastFood],
     ["category" => 'FAST_FOOD', "name" => 'Fast Food', "point" => $fastFood],
     ["category" => 'SNACKS', "name" => 'Snacks', "point" => $snacks],
     ["category" => 'SNACKS', "name" => 'Snacks', "point" => $snacks],