Procházet zdrojové kódy

Coverage renderer UI tweak - single line

Vijayakrishnan před 3 roky
rodič
revize
7ce3405c8e

+ 8 - 10
resources/views/app/patient/coverage_column_renderer.blade.php

@@ -24,7 +24,7 @@
         @endif
     @endif
 
-    <div class="ml-2">
+    <div class="ml-2 d-inline-flex align-items-baseline">
         @if($coverage)
             @if($coverage->plan_type === 'MEDICAID' && $coverage->mcdPayer)
                 <span class="{{ @$truncateName ? 'coverage-payer-name':'' }}"
@@ -40,16 +40,14 @@
             <small class="ml-2 text-muted">(No insurance)</small>
         @endif
         <div class="">
-            @if($coverage)
-                @if($coverage && $coverage->plan_type === 'MEDICARE')
-                    @if(@$patient->mpb_remaining !== null)
-                        <span class="text-muted d-block text-sm">Deductible: {{format_number(@$patient->mpb_remaining)}}</span>
-                    @endif
+            @if($coverage && $coverage->plan_type === 'MEDICARE')
+                @if(@$patient->mpb_remaining)
+                    <span class="text-muted d-block text-sm ml-1">(Ded: {{format_number(@$patient->mpb_remaining)}})</span>
                 @endif
-                @if($coverage->plan_type === 'COMMERCIAL')
-                    @if(@$coverage->deductible_amount !== null)
-                        <span class="text-muted d-block text-sm">Deductible: {{format_number(@$coverage->deductible_amount)}}</span>
-                    @endif
+            @endif
+            @if($coverage->plan_type === 'COMMERCIAL')
+                @if(@$coverage->deductible_amount && !!+@$coverage->deductible_amount)
+                    <span class="text-muted d-block text-sm ml-1">(Ded: {{format_number(@$coverage->deductible_amount)}})</span>
                 @endif
             @endif
         </div>