Samson Mutunga 3 лет назад
Родитель
Сommit
1349b848fc
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      resources/views/app/patient/coverage_column_renderer.blade.php

+ 2 - 2
resources/views/app/patient/coverage_column_renderer.blade.php

@@ -36,12 +36,12 @@
         <small class="ml-2 text-muted">(No insurance)</small>
     @endif
 </div>
-@if($coverage->plan_type === 'MEDICARE')
+@if($coverage && $coverage->plan_type === 'MEDICARE')
     @if(@$patient->mpb_remaining !== null)
         <small class="text-muted d-block ml-3">Deductible: {{format_number(@$patient->mpb_remaining)}} </small>
     @endif
 @endif
-@if($coverage->plan_type === 'COMMERCIAL')
+@if($coverage && $coverage->plan_type === 'COMMERCIAL')
     @if(@$coverage->deductable_amount !== null)
         <small class="text-muted d-block ml-3">Deductible: {{format_number(@$coverage->deductable_amount)}} </small>
     @endif