فهرست منبع

Move getVal() to helpers.php

Vijayakrishnan Krishnan 4 سال پیش
والد
کامیت
f03e6dbf79
2فایلهای تغییر یافته به همراه11 افزوده شده و 7 حذف شده
  1. 11 0
      app/Helpers/helpers.php
  2. 0 7
      resources/views/app/patient/dashboard.blade.php

+ 11 - 0
app/Helpers/helpers.php

@@ -163,3 +163,14 @@ if(!function_exists('renderNoteExamTemplates')) {
         }
     }
 }
+
+if(!function_exists('getVal')) {
+    function getVal($object, $prop)
+    {
+        if (isset($object->$prop)) {
+            return $object->$prop;
+        } else {
+            return '';
+        }
+    }
+}

+ 0 - 7
resources/views/app/patient/dashboard.blade.php

@@ -8,13 +8,6 @@
         <?php $infoLines = !$infoLines ? [] : $infoLines; ?>
 
 	<?php
-		function getVal($object, $prop){
-			if(isset($object->$prop)){
-				return $object->$prop;
-			}else{
-				return '';
-			}
-        }
 
         $vitalMap = [
                 'heightInches' => 'Ht. (in.)',