Ver código fonte

added claims resolver view

unknown 4 anos atrás
pai
commit
37af4baf02

+ 0 - 0
resources/views/app/patient/class.Diff.php → app/Helpers/class.Diff.php


+ 7 - 0
app/Helpers/helpers.php

@@ -7,6 +7,13 @@
  */
 
 use App\Models\AppSession;
+require_once './class.Diff.php';
+
+if(!function_exists('diff')) {
+    function diff($old, $new){
+        return Diff::toHTML(Diff::compare($old, $new));
+    }
+}
 
 if(!function_exists('get_current_session')) {
     function get_current_session(){

+ 2 - 2
resources/views/app/patient/claims-resolver.blade.php

@@ -1,7 +1,7 @@
 @extends ('layouts.patient')
 <?php
 // include the Diff class
-require_once './class.Diff.php';
+
 ?>
 
 @section('inner-content')
@@ -121,7 +121,7 @@ require_once './class.Diff.php';
 
                 // output the result of comparing two files as HTML
                 <?php
-                    echo Diff::toHTML(Diff::compare($lastContent, $content));
+                    echo diff($lastContent, $content);
                 ?>
             </td>
             <td></td>