Peter Muturi 3 年 前
コミット
9405303a62

+ 3 - 3
resources/views/app/patient/prescriptions/pdf/DRUG.blade.php

@@ -31,9 +31,9 @@ if($coverage) {
       <tr>
         <td style="vertical-align:top;padding: 5px;">
           <h4 style="line-height:20px;margin:0;text-transform:uppercase;">{{ $patient->displayName() }}</h4>
-          <span style="font-size:13px;line-height:20px;display:block">{{$addressParts ?: ''}}</span>
-          <span style="font-size:13px;line-height:20px;display:block">{{$addressPart2 ?: ''}} {{$patient->mailing_address_zip}}</span>
-          <span style="font-size:13px;line-height:20px;display:block">Phone: {{$patient->cell_number}}</span>
+          @if($addressParts)<span style="font-size:13px;line-height:20px;display:block">{{$addressParts ?: ''}}</span>@endif
+          @if($addressPart2)<span style="font-size:13px;line-height:20px;display:block">{{$addressPart2 ?: ''}} {{$patient->mailing_address_zip}}</span>@endif
+          @if($patient->cell_number)<span style="font-size:13px;line-height:20px;display:block">Phone: {{$patient->cell_number}}</span>@endif
         </td>
         <td style="vertical-align:top;padding: 5px;">
           <h4 style="line-height:20px;margin:0;">PATIENT INFORMATION</h4>

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

@@ -31,13 +31,13 @@
     <title>{{$companyName}}</title>
 </head>
 <body>
-<div style="margin: 0; padding: 1rem; font-family: sans-serif">
+<div style="margin: 0; padding: .3rem; font-family: sans-serif">
     <header style="padding: 0; border: 0; margin: 0">
         <div style="text-align: center">
             <h3 style="margin-bottom:1px;line-height:5px;">{{ $prescription->hcpPro->displayName() }}</h3>
             <h4 style="margin-bottom:1px;line-height:5px;">{{$companyName}}</h4>
-            <h5 style="margin-bottom:1px;line-height:3px;">{{$addressLine1}}, {{$addressLine2}}</h5>
-            <h5 style="margin-bottom: 2rem;line-height:3px;">{{$city}}, {{$state}} {{$zip}}</h5>
+            <h4 style="margin-bottom:1px;line-height:3px;font-weight:400;">{{$addressLine1}}, {{$addressLine2}}</h4>
+            <h4 style="margin-bottom:1rem;line-height:3px;font-weight:400;">{{$city}}, {{$state}} {{$zip}}</h4>
         </div>
         <div style="text-align:center;">
           <span style="width:33.33%; display:inline-block;">Phone: (800) 707-9705</span>
@@ -46,13 +46,13 @@
         </div>
     </header>
 
-    <hr style="border-top: 2px solid #5ca4e8; border-bottom: 0; margin-top:0; margin-bottom: .5rem;">
+    <hr style="border-top: 2px solid #5ca4e8; border-bottom: 0; margin-top:-5px; margin-bottom:.5rem;">
 
     @include('app.patient.prescriptions.pdf.' . $prescription->erx_category)
 
     <?php if($prescription->logistics_detail_json): ?>
         <?php $logistics = json_decode($prescription->logistics_detail_json); ?>
-        <hr style="margin: 0.5rem 0; border-top-width: 0; border-bottom-width: 1px; border-color: #bbb">
+        <hr style="margin: 0 0 0.5rem 0; border-top-width: 0; border-bottom-width: 1px; border-color: #bbb">
         <div style="font-size: 14px; opacity: 0.75; ">
             <p style="margin: 0.5rem 0;"><b>{{ $logistics->facilityName }}</b></p>
             <p style="margin: 0.5rem 0;">{{$logistics->facilityCity}} {{$logistics->facilityState}} {{$logistics->facilityZip}}</p>
@@ -64,9 +64,9 @@
     <table cellpadding="0" cellspacing="0" border="0" style="width: 100%;padding-left:20%;margin-top:1rem;">
         <tr>
           <td style="vertical-align: bottom;padding-right:.2rem;">Signature:</td>
-          <td style="vertical-align: middle;border-bottom:1px solid #aaa;width:100%;padding-bottom:.2rem;padding-left:.5rem;">
+          <td style="vertical-align: middle;border-bottom:1px solid #aaa;width:100%;padding-bottom:.2rem;padding-left:5rem;">
               @if($prescription->hcpPro->signature_base_64)
-                  <img src="{{$prescription->hcpPro->signature_base_64}}" style="max-width: 180px;">
+                  <img src="{{$prescription->hcpPro->signature_base_64}}" style="max-width: 100px;">
               @endif
           </td>
         </tr>