|
@@ -31,7 +31,7 @@
|
|
|
<option {{!request()->input('t') || request()->input('t') === 'hcp' ? 'selected' : ''}} value="hcp">
|
|
|
HCP Bills
|
|
|
</option>
|
|
|
- <option {{request()->input('t') === 'na' ? 'selected' : ''}} value="na">NA Bills</option>
|
|
|
+ <option {{request()->input('t') === 'na' ? 'selected' : ''}} value="na">Generic Bills</option>
|
|
|
</select>
|
|
|
</div>
|
|
|
<div class="ml-4 d-inline-flex align-items-center">
|
|
@@ -78,14 +78,18 @@
|
|
|
<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')
|
|
|
- <th class="border-bottom-0 border-top-0">HCP Pro</th>
|
|
|
+ <th class="border-bottom-0 border-top-0">Pro</th>
|
|
|
@elseif(request()->input('t') === 'na')
|
|
|
- <th class="border-bottom-0 border-top-0">NA Pro</th>
|
|
|
+ <th class="border-bottom-0 border-top-0">Pro</th>
|
|
|
@endif
|
|
|
<th class="border-bottom-0 border-top-0">Client</th>
|
|
|
+ <th class="border-bottom-0 border-top-0">Insurance</th>
|
|
|
+ <th class="border-bottom-0 border-top-0">State</th>
|
|
|
+ <th class="border-bottom-0 border-top-0">Company Pro</th>
|
|
|
<th class="border-bottom-0 border-top-0">Code</th>
|
|
|
<th class="border-bottom-0 border-top-0">Units</th>
|
|
|
<th class="border-bottom-0 border-top-0">Verified?</th>
|
|
|
+ <th class="border-bottom-0 border-top-0">Cancelled?</th>
|
|
|
@if(!request()->input('t') || request()->input('t') === 'hcp')
|
|
|
<th class="border-bottom-0 border-top-0">HCP Expected Amount</th>
|
|
|
@elseif(request()->input('t') === 'na')
|
|
@@ -109,9 +113,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 +140,15 @@
|
|
|
@endif
|
|
|
@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>
|
|
@@ -158,13 +157,155 @@
|
|
|
{{$row->client->name_last}}, {{$row->client->name_first}}
|
|
|
@endif
|
|
|
</td>
|
|
|
+ <td>
|
|
|
+ @if($row->client)
|
|
|
+ @include('app.patient.coverage_column_renderer', ['patient'=>$row->client])
|
|
|
+ @endif
|
|
|
+ </td>
|
|
|
+ <td>
|
|
|
+ @if($row->client)
|
|
|
+ {{$row->client->mailing_address_state}}
|
|
|
+ @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>{{$row->code}}
|
|
|
@if($row->generic_target_entity_type && $row->generic_target_entity_uid)
|
|
|
<div class="mt-1 text-sm text-secondary">{{$row->generic_target_entity_type}}</div>
|
|
|
@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' !!}
|
|
|
+ @if(!$row->is_cancelled)
|
|
|
+ @if(!$row->is_verified)
|
|
|
+ <div class="d-block mt-1" moe>
|
|
|
+ <a href="" show start>Mark Verified</a>
|
|
|
+ <form url="/api/bill/markAsVerified">
|
|
|
+ <input type="hidden" name="uid" value="{{$row->uid}}">
|
|
|
+ <p>Mark As Verified?</p>
|
|
|
+ <div class="mb-0">
|
|
|
+ <button class="btn btn-success btn-sm" submit>Submit</button>
|
|
|
+ <button class="btn btn-default border btn-sm" cancel>Cancel</button>
|
|
|
+ </div>
|
|
|
+ </form>
|
|
|
+ </div>
|
|
|
+ @else
|
|
|
+ <div class="d-block mt-1" moe>
|
|
|
+ <a class="" href="" show start>Undo</a>
|
|
|
+ <form url="/api/bill/undoMarkAsVerified">
|
|
|
+ <input type="hidden" name="uid" value="{{$row->uid}}">
|
|
|
+ <p>Undo Mark As Verified?</p>
|
|
|
+ <div class="mb-0">
|
|
|
+ <button class="btn btn-success btn-sm" submit>Submit</button>
|
|
|
+ <button class="btn btn-default border btn-sm" cancel>Cancel</button>
|
|
|
+ </div>
|
|
|
+ </form>
|
|
|
+ </div>
|
|
|
+ @endif
|
|
|
+ @endif
|
|
|
+ </td>
|
|
|
+
|
|
|
+ <td>
|
|
|
+ @if($row->is_cancelled)
|
|
|
+ <div class="text-warning-mellow font-weight-bold">Cancelled</div>
|
|
|
+ @if($row->cancellation_memo)
|
|
|
+ <div class="text-dark text-sm font-italic my-1">{{$row->cancellation_memo}}</div>
|
|
|
+ @endif
|
|
|
+ @if($row->is_cancelled_by_administrator)
|
|
|
+ <div class="text-secondary text-sm text-nowrap">(by Administrator)</div>
|
|
|
+ @endif
|
|
|
+ <div moe class="mt-1">
|
|
|
+ <a class="text-nowrap" href="" show start>Update Memo</a>
|
|
|
+ <form url="/api/bill/updateCancellationMemo">
|
|
|
+ <input type="hidden" name="uid" value="{{$row->uid}}">
|
|
|
+ <p>Update Cancellation Memo</p>
|
|
|
+ <div class="mb-2">
|
|
|
+ <textarea class="text form-control form-control-sm" name="cancellationMemo"
|
|
|
+ placeholder="">{{$row->cancellation_memo ? $row->cancellation_memo : ($pro->pro_type === 'ADMIN' ? 'Please contact billing.' : '')}}</textarea>
|
|
|
+ </div>
|
|
|
+ <div>
|
|
|
+ <button class="btn btn-success btn-sm" submit>Submit</button>
|
|
|
+ <button class="btn btn-default border btn-sm" cancel>Cancel</button>
|
|
|
+ </div>
|
|
|
+ </form>
|
|
|
+ </div>
|
|
|
+ @else
|
|
|
+ <div class="d-block" moe relative="">
|
|
|
+ <a class="text-danger" href="" show start>Cancel</a>
|
|
|
+ <form url="/api/bill/markCancelled" right="">
|
|
|
+ <input type="hidden" name="uid" value="{{$row->uid}}">
|
|
|
+ <p class="mb-2">Cancel this bill?</p>
|
|
|
+ <div class="mb-2">
|
|
|
+ <label class="mb-1 text-secondary">Cancellation Memo</label>
|
|
|
+ <textarea type="text" name="memo" placeholder="Memo" class="form-control form-control-sm">@if($pro->pro_type === 'ADMIN')Please contact billing.@endif</textarea>
|
|
|
+ </div>
|
|
|
+ <div class="mb-0">
|
|
|
+ <button class="btn btn-danger btn-sm" submit>Yes</button>
|
|
|
+ <button class="btn btn-default border btn-sm" cancel>No</button>
|
|
|
+ </div>
|
|
|
+ </form>
|
|
|
+ </div>
|
|
|
+ @endif
|
|
|
+ </td>
|
|
|
+
|
|
|
@if(!request()->input('t') || request()->input('t') === 'hcp')
|
|
|
<td>${{$row->hcp_expected_payment_amount}}</td>
|
|
|
@elseif(request()->input('t') === 'na')
|