unknown 4 years ago
parent
commit
fe6dcce5be
2 changed files with 7 additions and 2 deletions
  1. 2 1
      composer.json
  2. 5 1
      resources/views/app/patient/claims-resolver.blade.php

+ 2 - 1
composer.json

@@ -16,7 +16,8 @@
         "guzzlehttp/guzzle": "^6.5",
         "laravel/framework": "^7.0",
         "laravel/tinker": "^2.0",
-        "picqer/php-barcode-generator": "^2.1"
+        "picqer/php-barcode-generator": "^2.1",
+        "soundasleep/html2text": "~1.1"
     },
     "require-dev": {
         "facade/ignition": "^2.0",

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

@@ -80,6 +80,10 @@
                 }
                 $content = ob_get_clean();
                 $lastContent = isset($loopLastContentByHcp[$note->hcpPro->id]) ? $loopLastContentByHcp[$note->hcpPro->id] : "";
+
+                $contentText = null;
+                $lastContentText = null;
+
         ?>
         <tr>
             <td>
@@ -120,7 +124,7 @@
             <td>
 
                 // output the result of comparing two files as HTML
-                {!! Diff::toHTML(Diff::compare($lastContent, $content)) !!}
+                {!! Diff::toString(Diff::compare($lastContentText, $contentText)) !!}
             </td>
             <td></td>
         </tr>