|
@@ -66,6 +66,7 @@
|
|
|
<table class="table table-sm table-striped table-hover p-0 m-0">
|
|
|
<thead class="bg-light">
|
|
|
<tr>
|
|
|
+ <th class="border-bottom-0 border-top-0">Care Month</th>
|
|
|
<th class="border-bottom-0 border-top-0">Effective Date</th>
|
|
|
@if(!request()->input('t') || request()->input('t') === 'hcp')
|
|
|
<th class="border-bottom-0 border-top-0">Pro</th>
|
|
@@ -93,6 +94,15 @@
|
|
|
@foreach ($bills as $row)
|
|
|
<tr>
|
|
|
|
|
|
+ <td>
|
|
|
+ @if($row->careMonth)
|
|
|
+ <div>
|
|
|
+ <a target="_blank" native href="/mc/patients/view/{{$row->client->uid}}/care-months/view/{{$row->careMonth->uid}}">
|
|
|
+ Care Month
|
|
|
+ </a>
|
|
|
+ </div>
|
|
|
+ @endif
|
|
|
+ </td>
|
|
|
<td>{{is_null($row->effective_date) ? 'NULL' : friendly_date($row->effective_date)}}</td>
|
|
|
<td>
|
|
|
{{$row->genericPro->name_last}}, {{$row->genericPro->name_first}}
|
|
@@ -148,24 +158,29 @@
|
|
|
@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>
|
|
|
+ @if(count($row->genericPro->companyPros))
|
|
|
+ <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->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>
|
|
|
+ @else
|
|
|
+ <div class="text-warning-dark">No company associations for
|
|
|
+ {{$row->genericPro->displayName()}}</div>
|
|
|
+ @endif
|
|
|
</div>
|
|
|
|
|
|
{{-- @endif--}}
|