Browse Source

Behavior segments - summary HTMl fix

Vijayakrishnan 3 năm trước cách đây
mục cha
commit
10864b0e05

+ 5 - 5
resources/views/app/patient/segment-templates/plan_behavior/summary.blade.php

@@ -20,18 +20,18 @@ $points = [
 <?php foreach ($points as $p): ?>
 <?php $point = $p['point']; ?>
 <?php if(!!$point): ?>
-<?php $review = $point->lastChildPlan; ?>
-<?php if ($review && @($review->data)) $review->data = json_decode($review->data); ?>
+<?php $plan = $point->lastChildPlan; ?>
+<?php if ($plan && @($plan->data)) $plan->data = json_decode($plan->data); ?>
 <div class="mb-2">
     <div class="d-flex align-items-baseline">
         <b><?= $p['name'] ?></b>
     </div>
-    <?php if(!!$review): ?>
+    <?php if(!!$plan): ?>
     <div class="pl-3 mt-1 d-flex align-items-baseline">
         <span class="text-secondary font-weight-bold mr-2">Subjective:</span>
         <div class="inline-html-container">
-            <?php $review = $review->data; ?>
-            <?php include(resource_path('views/app/patient/segment-templates/_child_review/behavior/' . $p['category'] . '/view-review.php')); ?>
+            <?php $plan = $plan->data; ?>
+            <?php include(resource_path('views/app/patient/segment-templates/_child_plan/behavior/' . $p['category'] . '/view-plan.php')); ?>
         </div>
     </div>
     <?php endif; ?>