logicpowerhouse 5 年之前
父節點
當前提交
9642925509
共有 1 個文件被更改,包括 34 次插入8 次删除
  1. 34 8
      resources/views/app/patient/dashboard.blade.php

+ 34 - 8
resources/views/app/patient/dashboard.blade.php

@@ -35,26 +35,52 @@
             <?php $measurements = json_decode($patient->latest_measurements);?>
             <table class="table table-striped table-sm">
                 <thead>
-                    <tr>
-                        <th>Label</th>
-                        <th>Value</th>
-                        <th>Effective date</th>
-                        <th>Memo</th>
-                    </tr>
+                <tr>
+                    <th>Label</th>
+                    <th>Value</th>
+                    <th>Effective date</th>
+                    <th>Memo</th>
+                </tr>
                 </thead>
                 <tbody>
-                    @foreach ($measurements as $label => $data)
+                @foreach ($measurements as $label => $data)
                     <tr>
                         <td>{{$label}}</td>
                         <td>{{$data->value}}</td>
                         <td>{{$data->effectiveDate}}</td>
                         <td>{{$data->memo}}</td>
                     </tr>
+                @endforeach
+
+                </tbody>
+            </table>
+        </div>
+
+        <div>
+            <h1>Client Info Lines</h1>
+            <?php $infoLines = json_decode($patient->info_lines);?>
+            <table class="table table-striped table-sm">
+                <thead>
+                <tr>
+                    <th>Category</th>
+                    <th>Content Text</th>
+                    <th>Content Detail</th>
+                </tr>
+                </thead>
+                <tbody>
+                @foreach($infoLines as $category => $lines)
+                    @foreach ($lines as $line)
+                        <tr>
+                            <td>{{$category}}</td>
+                            <td>{{$line->contentText}}</td>
+                            <td>{{$line->contentDetail}}</td>
+                        </tr>
                     @endforeach
-                    
+                @endforeach
                 </tbody>
             </table>
         </div>
+
     </div>
     <pre>
         CARE PLAN: [edit]