|
@@ -2,7 +2,7 @@
|
|
@section('invoicing-content')
|
|
@section('invoicing-content')
|
|
<div class="d-flex align-items-baseline pb-3">
|
|
<div class="d-flex align-items-baseline pb-3">
|
|
<a href="{{route('patients.view.invoicing-companies', ['patient' => $patient])}}" class="mr-2"><i class="fa fa-chevron-left mr-1"></i> Back</a>
|
|
<a href="{{route('patients.view.invoicing-companies', ['patient' => $patient])}}" class="mr-2"><i class="fa fa-chevron-left mr-1"></i> Back</a>
|
|
- <h4 class="font-weight-bold m-0 font-size-16">{{$customer->company->name}} <i class="fa fa-chevron-right text-sm text-secondary mx-1"></i> Invoices</h4>
|
|
|
|
|
|
+ <h4 class="font-weight-bold m-0 font-size-16">{{@$customer->company ? @$customer->company->name : $patient->displayName()}} <i class="fa fa-chevron-right text-sm text-secondary mx-1"></i> Invoices</h4>
|
|
<span class="text-secondary mx-2">|</span>
|
|
<span class="text-secondary mx-2">|</span>
|
|
<div moe>
|
|
<div moe>
|
|
<a href="" start show class="font-weight-bold">
|
|
<a href="" start show class="font-weight-bold">
|
|
@@ -34,7 +34,7 @@
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
@if(!count($customer->invoices))
|
|
@if(!count($customer->invoices))
|
|
- <div class="border p-2">This patient does not have any invoices from {{$customer->company->name}} yet.</div>
|
|
|
|
|
|
+ <div class="border p-2">This patient does not have any invoices from {{@$customer->company ? @$customer->company->name : $patient->displayName()}} yet.</div>
|
|
@else
|
|
@else
|
|
<table class="table table-sm table-bordered table-striped">
|
|
<table class="table table-sm table-bordered table-striped">
|
|
<thead>
|
|
<thead>
|