浏览代码

Claims resolver - datatables integration

Vijayakrishnan 4 年之前
父节点
当前提交
150e90ef3a
共有 2 个文件被更改,包括 18 次插入2 次删除
  1. 16 2
      resources/views/app/patient/claims-resolver.blade.php
  2. 2 0
      resources/views/layouts/template.blade.php

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

@@ -43,7 +43,7 @@
         if($note->hcpPro->is_enrolled_as_mcp){
             $loopLastDateSeenByMcpTypePro = $d;
         }
-        $daysInMcpProgramTotal = $daysInMcpProgram;
+        $daysInMcpProgramTotal = (strtotime(date('Y-m-d')) - strtotime($firstDateSeenByThisHcp)) / (60 * 60 * 24);
         }
     ?>
     <h2><strong>Numbers:</strong></h2>
@@ -148,7 +148,7 @@
 
     </style>
     <div style="overflow: auto">
-        <table class="table table-bordered table-condensed">
+        <table class="table table-bordered table-condensed" id="notes-table">
         <thead>
         <tr>
             <th>HCP</th>
@@ -319,6 +319,20 @@
         </tbody>
     </table>
     </div>
+
+    <script>
+        (function() {
+            function init() {
+                $('#notes-table').DataTable( {
+                    paging: false,
+                    scrollY: 500,
+                    scrollX: true
+                } );
+            }
+            addMCInitializer('claims-resolver', init);
+        }).call(window);
+    </script>
+
 @endsection
 
 <?php

+ 2 - 0
resources/views/layouts/template.blade.php

@@ -340,6 +340,8 @@
 
         });
     </script>
+    <link rel="stylesheet" type="text/css" href="https://cdn.datatables.net/v/dt/dt-1.10.24/fc-3.3.2/fh-3.1.8/datatables.min.css"/>
+    <script type="text/javascript" src="https://cdn.datatables.net/v/dt/dt-1.10.24/fc-3.3.2/fh-3.1.8/datatables.min.js"></script>
 </body>
 
 </html>