|
@@ -75,6 +75,7 @@
|
|
|
</label>
|
|
|
</th>
|
|
|
<th class="border-bottom-0 border-top-0">Context</th>
|
|
|
+ <th class="border-bottom-0 border-top-0">Company Pro</th>
|
|
|
<th class="border-bottom-0 border-top-0">Effective Date</th>
|
|
|
<th class="border-bottom-0 border-top-0">Bal Post Date</th>
|
|
|
@if(!request()->input('t') || request()->input('t') === 'hcp')
|
|
@@ -109,9 +110,12 @@
|
|
|
Note
|
|
|
</a>
|
|
|
@elseif($row->careMonth)
|
|
|
- <a href="/patients/view/{{$row->client->uid}}/care-months/view/{{$row->careMonth->uid}}">
|
|
|
- Care Month
|
|
|
- </a>
|
|
|
+ <div>
|
|
|
+ <a href="/patients/view/{{$row->client->uid}}/care-months/view/{{$row->careMonth->uid}}">
|
|
|
+ Care Month
|
|
|
+ </a>
|
|
|
+ </div>
|
|
|
+
|
|
|
@elseif($row->client)
|
|
|
<a href="/patients/view/{{ $row->client->uid }}">
|
|
|
Chart
|
|
@@ -133,23 +137,73 @@
|
|
|
@endif
|
|
|
@endif
|
|
|
</td>
|
|
|
+ <td>
|
|
|
+
|
|
|
+ @if(!request()->input('t') || request()->input('t') === 'hcp')
|
|
|
+ <div class="mt-1 text-secondary">
|
|
|
+ @if($row->hcpCompanyPro)
|
|
|
+ {{$row->hcpCompanyPro ? $row->hcpCompanyPro->company->name : '-'}}
|
|
|
+ @else
|
|
|
+ <i>[company pro is not set]</i>
|
|
|
+ @endif
|
|
|
+ <div moe class="ml-1">
|
|
|
+ <a class="text-primary" href="" show start><i class="fa fa-edit"></i></a>
|
|
|
+ <form url="/api/bill/swapHcpCompanyPro">
|
|
|
+ <input type="hidden" name="uid" value="{{$row->uid}}">
|
|
|
+ <div class="mb-2">
|
|
|
+ <select name="hcpCompanyProUid" class="form-control form-control-sm">
|
|
|
+ <option value="">-- select --</option>
|
|
|
+ @foreach($row->hcp->companyPros as $companyPro)
|
|
|
+ <option value="{{$companyPro->uid}}">{{$companyPro->company->name}}</option>
|
|
|
+ @endforeach
|
|
|
+ </select>
|
|
|
+ </div>
|
|
|
+ <div class="mb-0">
|
|
|
+ <button class="btn btn-primary btn-sm" submit>Submit</button>
|
|
|
+ <button class="btn btn-default border btn-sm" cancel>Cancel</button>
|
|
|
+ </div>
|
|
|
+ </form>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ @elseif(request()->input('t') === 'na')
|
|
|
+
|
|
|
+ <div class="mt-1 text-secondary">
|
|
|
+ @if($row->genericCompanyPro && $row->genericCompanyPro->company)
|
|
|
+ {{$row->genericCompanyPro->company->name}}
|
|
|
+ @else
|
|
|
+ <i>[company pro is not set]</i>
|
|
|
+ @endif
|
|
|
+ <div moe class="">
|
|
|
+ <a class="text-primary" href="" show start><i class="fa fa-edit"></i></a>
|
|
|
+ <form url="/api/bill/swapGenericCompanyPro">
|
|
|
+ <input type="hidden" name="uid" value="{{$row->uid}}">
|
|
|
+ <div class="mb-2">
|
|
|
+ <select name="genericCompanyProUid" class="form-control form-control-sm">
|
|
|
+ <option value="">-- select --</option>
|
|
|
+ @foreach($row->genericPro->companyPros as $companyPro)
|
|
|
+ <option value="{{$companyPro->uid}}">{{$companyPro->pro->displayName() . ' / ' . $companyPro->company->name}}</option>
|
|
|
+ @endforeach
|
|
|
+ </select>
|
|
|
+ </div>
|
|
|
+ <div class="mb-0">
|
|
|
+ <button class="btn btn-primary btn-sm" submit>Submit</button>
|
|
|
+ <button class="btn btn-default border btn-sm" cancel>Cancel</button>
|
|
|
+ </div>
|
|
|
+ </form>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ @endif
|
|
|
+
|
|
|
+ </td>
|
|
|
<td>{{friendly_date($row->effective_date)}}</td>
|
|
|
<td>{{friendly_date($row->balance_post_date)}}</td>
|
|
|
<td>
|
|
|
+
|
|
|
@if(!request()->input('t') || request()->input('t') === 'hcp')
|
|
|
- {{$row->hcp->name_last}}, {{$row->hcp->name_first}}
|
|
|
- <div class="mt-1 text-sm text-secondary">
|
|
|
- <i class="fa fa-hospital mr-1"></i>
|
|
|
- {{$row->hcpCompanyPro ? $row->hcpCompanyPro->company->name:''}}
|
|
|
- </div>
|
|
|
+ {{$row->hcp->name_last}}, {{$row->hcp->name_first}}
|
|
|
@elseif(request()->input('t') === 'na')
|
|
|
- {{$row->genericPro->name_last}}, {{$row->genericPro->name_first}}
|
|
|
- <div class="mt-1 text-sm text-secondary">
|
|
|
- <i class="fa fa-hospital mr-1"></i>
|
|
|
- @if($row->genericCompanyPro && $row->genericCompanyPro->company)
|
|
|
- {{$row->genericCompanyPro->company->name}}
|
|
|
- @endif
|
|
|
- </div>
|
|
|
+ {{$row->genericPro->name_last}}, {{$row->genericPro->name_first}}
|
|
|
@endif
|
|
|
|
|
|
</td>
|
|
@@ -164,7 +218,7 @@
|
|
|
@endif
|
|
|
</td>
|
|
|
<td>{{str_contains($row->code, 'Treatment Services') || str_contains($row->code, 'Administrative Services') ? ceil((float) $row->number_of_units * 60) . ' mins' : $row->number_of_units}}</td>
|
|
|
- <td>{!! $row->is_verified ? 'Yes<br>' . friendly_date($row->marked_verified_at, true) : 'No' !!} </td>
|
|
|
+ <td>{!! $row->is_verified ? '<i class="fa fa-check text-success"></i> ' . friendly_date($row->marked_verified_at, true) : 'No' !!} </td>
|
|
|
@if(!request()->input('t') || request()->input('t') === 'hcp')
|
|
|
<td>${{$row->hcp_expected_payment_amount}}</td>
|
|
|
@elseif(request()->input('t') === 'na')
|