Browse Source

New patient intake summary update

Vijayakrishnan Krishnan 4 years ago
parent
commit
1cba492f63
2 changed files with 19 additions and 2 deletions
  1. 11 1
      gem/templates/summary.php
  2. 8 1
      storage/sections/new-patient-intake/summary.php

+ 11 - 1
gem/templates/summary.php

@@ -1 +1,11 @@
-<div><?php dump($newContentData) ?></div>
+<?php foreach($newContentData as $k => $v) { ?>
+    <?php if(!!$v): ?>
+        <?php
+        $k = str_replace("__", " > ", $k);
+        $k = str_replace("_", " ", $k);
+        $k = ucwords($k);
+        ?>
+        <div><?= $k ?>: <b><?php print_r($v) ?></b></div>
+    <?php endif; ?>
+<?php } ?>
+

+ 8 - 1
storage/sections/new-patient-intake/summary.php

@@ -1,4 +1,11 @@
 <?php foreach($newContentData as $k => $v) { ?>
-    <div><?= $k ?>: <b><?= $v ?></b></div>
+    <?php if(!!$v): ?>
+    <?php
+    $k = str_replace("__", " > ", $k);
+    $k = str_replace("_", " ", $k);
+    $k = ucwords($k);
+    ?>
+    <div><?= $k ?>: <b><?php print_r($v) ?></b></div>
+    <?php endif; ?>
 <?php } ?>