Forráskód Böngészése

Labs and imaging - pdf fix

Vijayakrishnan 3 éve
szülő
commit
0effe8dc66

+ 2 - 7
resources/views/app/patient/prescriptions/pdf/IMAGING.blade.php

@@ -166,7 +166,7 @@
             <td style="padding-bottom: 0.25rem; width: 30%; opacity: 0.75; font-weight: bold;">Yes&nbsp;&nbsp;/&nbsp;&nbsp;No</td>
             <td style="padding-bottom: 0.25rem; width: 20%; opacity: 0.75;">ICD Codes:</td>
             <td style="padding-bottom: 0.25rem; width: 30%; opacity: 0.75; font-weight: bold;">
-                {{@$clinical->icds ?: ''}}
+                {{@$clinical->icds ? implode(", ", @$clinical->icds) : '-'}}
             </td>
         </tr>
         <tr>
@@ -177,7 +177,6 @@
         </tr>
     </table>
 
-
 </section>
 
 
@@ -189,13 +188,9 @@
 
 <section style="font-size: 15px;">
     <table cellpadding="0" cellspacing="0" border="0" style="width: 100%">
-        <?php $testIndex = 1; ?>
         <tr>
-            <td style="width: 20px; vertical-align: top; opacity: 0.75; font-size: 14px">
-                <span>{{$testIndex++}}. </span>
-            </td>
             <td style="vertical-align: top">
-                <div style="padding-bottom: 0.3rem;">{{$clinical->test}} <span style="padding-left: 15px; color: #666">{{$clinical->memo}}</span></div>
+                {!! @$clinical->tests ? implode("<br>", @$clinical->tests) : '-' !!}
             </td>
         </tr>
     </table>

+ 2 - 7
resources/views/app/patient/prescriptions/pdf/LAB.blade.php

@@ -166,7 +166,7 @@
             <td style="padding-bottom: 0.25rem; width: 30%; opacity: 0.75; font-weight: bold;">Yes&nbsp;&nbsp;/&nbsp;&nbsp;No</td>
             <td style="padding-bottom: 0.25rem; width: 20%; opacity: 0.75;">ICD Codes:</td>
             <td style="padding-bottom: 0.25rem; width: 30%; opacity: 0.75; font-weight: bold;">
-                {{@$clinical->icds ?: ''}}
+                {{@$clinical->icds ? implode(", ", @$clinical->icds) : '-'}}
             </td>
         </tr>
         <tr>
@@ -177,7 +177,6 @@
         </tr>
     </table>
 
-
 </section>
 
 
@@ -189,13 +188,9 @@
 
 <section style="font-size: 15px;">
     <table cellpadding="0" cellspacing="0" border="0" style="width: 100%">
-        <?php $testIndex = 1; ?>
         <tr>
-            <td style="width: 20px; vertical-align: top; opacity: 0.75; font-size: 14px">
-                <span>{{$testIndex++}}. </span>
-            </td>
             <td style="vertical-align: top">
-                <div style="padding-bottom: 0.3rem;">{{$clinical->test}} <span style="padding-left: 15px; color: #666">{{$clinical->memo}}</span></div>
+                {!! @$clinical->tests ? implode("<br>", @$clinical->tests) : '-' !!}
             </td>
         </tr>
     </table>