|
@@ -173,7 +173,7 @@
|
|
|
<div class="px-2">
|
|
|
<div class="d-flex">
|
|
|
<span class="mr-2"><span class="text-secondary">Method:</span> {{$note->method ? $note->method : '-'}}</span>
|
|
|
- @if(!$note->is_signed_by_hcp && $note->new_or_fu_or_na !== 'NEW')
|
|
|
+ @if(!$note->is_signed_by_hcp)
|
|
|
<div moe class="ml-auto">
|
|
|
<a href="" show start><i class="fa fa-edit"></i></a>
|
|
|
<form url="/api/note/updateMethod">
|
|
@@ -182,7 +182,9 @@
|
|
|
<select name="method" class="form-control form-control-sm" required>
|
|
|
<option value="">-- select --</option>
|
|
|
<option value="VIDEO" {{ $note->method === "VIDEO" ? "selected" : "" }}>Video</option>
|
|
|
+ @if($note->new_or_fu_or_na !== 'NEW')
|
|
|
<option value="AUDIO" {{ $note->method === "AUDIO" ? "selected" : "" }}>Audio</option>
|
|
|
+ @endif
|
|
|
<option value="IN_CLINIC" {{ $note->method === "IN_CLINIC" ? "selected" : "" }}>In-Clinic</option>
|
|
|
<option value="HOUSE_CALL" {{ $note->method === "HOUSE_CALL" ? "selected" : "" }}>House Call</option>
|
|
|
</select>
|
|
@@ -253,7 +255,7 @@
|
|
|
</div>
|
|
|
<div class="card-body p-0">
|
|
|
<div>
|
|
|
- <div class="mb-3">
|
|
|
+ <div class="">
|
|
|
<div>
|
|
|
<?php
|
|
|
$shortCutsObject = [];
|
|
@@ -283,7 +285,7 @@
|
|
|
|
|
|
<span class="d-none latest-section-ts">{{ $latestSectionTS }}</span>
|
|
|
|
|
|
- <div class="border-top p-3">
|
|
|
+ <div class="p-3 border-bottom">
|
|
|
<div class="">
|
|
|
<div class="d-flex align-items-center mb-2">
|
|
|
<p class="font-weight-bold text-secondary m-0 mr-2">ICDs</p>
|
|
@@ -302,15 +304,456 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
+ @if($pro->pro_type === 'ADMIN')
|
|
|
+ <div class="p-3 border-bottom">
|
|
|
+ <div>
|
|
|
+ <h2 class="font-weight-bold text-secondary">Bills & Claims Summary</h2>
|
|
|
+ <div class="d-flex justify-content-center align-items-start">
|
|
|
+ <table class="w-25 flex-grow-1 table-bordered table-condensed table-sm table-striped">
|
|
|
+ <tbody>
|
|
|
+ <tr>
|
|
|
+ <td class="text-secondary">Bill Total Exp.</td>
|
|
|
+ <td>${{friendly_money($note->bill_total_expected)}}</td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td class="text-secondary">Is Billing Closed</td>
|
|
|
+ <td>{{$note->is_bill_closed ? 'Yes' : 'No'}}</td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td class="text-secondary">Bill Summary</td>
|
|
|
+ <td>{{$note->bill_summary ? $note->bill_summary : '-'}}</td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td class="text-secondary">Bill Total Paid</td>
|
|
|
+ <td>${{friendly_money($note->bill_total_paid)}}</td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td class="text-secondary">Billing Closed At</td>
|
|
|
+ <td>{{friendlier_date_time($note->bill_closed_at)}}</td>
|
|
|
+ </tr>
|
|
|
+ </tbody>
|
|
|
+ </table>
|
|
|
+ <table class="w-25 flex-grow-1 table-bordered table-condensed table-sm table-striped ml-2">
|
|
|
+ <tbody>
|
|
|
+ <tr>
|
|
|
+ <td class="text-secondary">Claim Total Exp.</td>
|
|
|
+ <td>${{friendly_money($note->claim_total_expected)}}</td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td class="text-secondary">Is Claiming Closed</td>
|
|
|
+ <td>{{$note->is_claim_closed ? 'Yes' : 'No'}}</td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td class="text-secondary">Claim Summary</td>
|
|
|
+ <td>{{$note->claim_summary ? $note->claim_summary : '-'}}</td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td class="text-secondary">Claim Total Paid</td>
|
|
|
+ <td>${{friendly_money($note->claim_total_paid)}}</td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td class="text-secondary">Claiming Closed At</td>
|
|
|
+ <td>{{$note->claim_closed_at ? friendlier_date_time($note->claim_closed_at) : '-'}}</td>
|
|
|
+ </tr>
|
|
|
+ </tbody>
|
|
|
+ </table>
|
|
|
+ <table class="w-25 flex-grow-1 table-bordered table-condensed table-sm table-striped ml-2">
|
|
|
+ <tbody>
|
|
|
+ <tr>
|
|
|
+ <td class="text-secondary">HCP Bill Total Exp.</td>
|
|
|
+ <td>${{friendly_money($note->hcp_bill_total_expected)}}</td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td class="text-secondary">NA Bill Total Exp.</td>
|
|
|
+ <td>${{friendly_money($note->na_bill_total_expected)}}</td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td class="text-secondary">RMM Bill Total Exp.</td>
|
|
|
+ <td>${{friendly_money($note->rmm_bill_total_expected)}}</td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td class="text-secondary">RME Bill Total Exp.</td>
|
|
|
+ <td>${{friendly_money($note->rme_bill_total_expected)}}</td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td class="text-secondary">RMS Bill Total Exp.</td>
|
|
|
+ <td>${{friendly_money($note->rms_bill_total_expected)}}</td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td class="text-secondary">RMG Bill Total Exp.</td>
|
|
|
+ <td>${{friendly_money($note->rmg_bill_total_expected)}}</td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td class="text-secondary">CM Bill Total Exp.</td>
|
|
|
+ <td>${{friendly_money($note->cm_bill_total_expected)}}</td>
|
|
|
+ </tr>
|
|
|
+ </tbody>
|
|
|
+ </table>
|
|
|
+ <table class="w-25 flex-grow-1 table-bordered table-condensed table-sm table-striped ml-2">
|
|
|
+ <tbody>
|
|
|
+ <tr>
|
|
|
+ <td class="text-secondary">HCP Bill Total Paid</td>
|
|
|
+ <td>${{friendly_money($note->hcp_bill_total_paid)}}</td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td class="text-secondary">NA Bill Total Paid</td>
|
|
|
+ <td>${{friendly_money($note->na_bill_total_paid)}}</td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td class="text-secondary">RMM Bill Total Paid</td>
|
|
|
+ <td>${{friendly_money($note->rmm_bill_total_paid)}}</td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td class="text-secondary">RME Bill Total Paid</td>
|
|
|
+ <td>${{friendly_money($note->rme_bill_total_paid)}}</td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td class="text-secondary">RMS Bill Total Paid</td>
|
|
|
+ <td>${{friendly_money($note->rms_bill_total_paid)}}</td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td class="text-secondary">RMG Bill Total Paid</td>
|
|
|
+ <td>${{friendly_money($note->rmg_bill_total_paid)}}</td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td class="text-secondary">CM Bill Total Paid</td>
|
|
|
+ <td>${{friendly_money($note->cm_bill_total_paid)}}</td>
|
|
|
+ </tr>
|
|
|
+<!-- <tr>
|
|
|
+ <td class="text-secondary">HCP Company Pro</td>
|
|
|
+ <td>{{$note->hcp_company_pro_id}}</td>
|
|
|
+ </tr>-->
|
|
|
+ </tbody>
|
|
|
+ </table>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ @endif
|
|
|
|
|
|
{{-- bills --}}
|
|
|
@if($pro->pro_type === 'ADMIN' || ($note->hcpPro && $pro->id === $note->hcpPro->id))
|
|
|
@if($note->bills->count())
|
|
|
- <div class="mt-2 px-3">
|
|
|
+ <div class="p-3 border-bottom">
|
|
|
<div class="d-flex align-items-center mb-2">
|
|
|
<p class="font-weight-bold text-secondary m-0">Bills</p>
|
|
|
@include('app/patient/note/_create-bill')
|
|
|
+ @if($pro->pro_type === 'ADMIN')
|
|
|
+ @if(!$note->is_bill_closed)
|
|
|
+ <span class="mx-2 text-secondary">|</span>
|
|
|
+ <span class="d-block" moe>
|
|
|
+ <a class="text-danger" href="" show start>Close Billing</a>
|
|
|
+ <form url="/api/note/closeBilling">
|
|
|
+ <input type="hidden" name="uid" value="{{$note->uid}}">
|
|
|
+ <p>Close billing?</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>
|
|
|
+ </span>
|
|
|
+ @elseif($note->is_bill_closed)
|
|
|
+ <span class="mx-2 text-secondary">|</span>
|
|
|
+ <span class="d-block" moe>
|
|
|
+ <a class="text-danger" href="" show start>Reopen Billing</a>
|
|
|
+ <form url="/api/note/reopenBilling">
|
|
|
+ <input type="hidden" name="uid" value="{{$note->uid}}">
|
|
|
+ <p>Reopen billing?</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>
|
|
|
+ </span>
|
|
|
+ @endif
|
|
|
+ @else
|
|
|
+ <span class="mx-2 text-secondary">|</span>
|
|
|
+ @if(!$note->is_bill_ready_to_verify)
|
|
|
+ <span class="d-block" moe>
|
|
|
+ <a class="text-danger" href="" show start>Mark Ready to Verify</a>
|
|
|
+ <form url="/api/note/setIsBillReadyToVerifyToTrue">
|
|
|
+ <input type="hidden" name="uid" value="{{$note->uid}}">
|
|
|
+ <p>Mark bills on this note as Ready to Verify?</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>
|
|
|
+ </span>
|
|
|
+ @else
|
|
|
+ <span class="d-block" moe>
|
|
|
+ <a class="text-danger" href="" show start>Undo Mark Ready to Verify</a>
|
|
|
+ <form url="/api/note/setIsBillReadyToVerifyToFalse">
|
|
|
+ <input type="hidden" name="uid" value="{{$note->uid}}">
|
|
|
+ <p>Mark bills on this note as Not Ready to Verify?</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>
|
|
|
+ </span>
|
|
|
+ @endif
|
|
|
+ @endif
|
|
|
</div>
|
|
|
+
|
|
|
+ @if($pro->pro_type === 'ADMIN')
|
|
|
+ <table class="table table-sm tabe-striped mb-0 table-bordered">
|
|
|
+ <thead class="bg-light">
|
|
|
+ <tr class="text-secondary">
|
|
|
+ <?php /* <th class="border-bottom-0"></th> */ ?>
|
|
|
+ <th class="border-bottom-0">Date</th>
|
|
|
+ <th class="border-bottom-0">Service</th>
|
|
|
+ <th class="border-bottom-0">Billable</th>
|
|
|
+ <th class="border-bottom-0">HCP</th>
|
|
|
+ <th class="border-bottom-0">Total</th>
|
|
|
+ <th class="border-bottom-0">Sign</th>
|
|
|
+ <th class="border-bottom-0">Bal Post Date</th>
|
|
|
+ <th class="border-bottom-0">Verification</th>
|
|
|
+ <th class="border-bottom-0">Cancellation</th>
|
|
|
+ <th class="border-bottom-0">Payment</th>
|
|
|
+ </tr>
|
|
|
+ </thead>
|
|
|
+ <tbody>
|
|
|
+ @foreach ($note->bills as $bill)
|
|
|
+ <tr class="{{$bill->is_cancelled ? 'bg-light text-secondary' : ''}}">
|
|
|
+ <?php /* <td class="p-0">
|
|
|
+ <table class="table-striped table-sm table-condensed border border-left-0 border-top-0 border-bottom-0">
|
|
|
+ <tbody>
|
|
|
+ <tr><td>collected_amount</td><td>{{$bill->collected_amount}}</td></tr>
|
|
|
+ <tr><td>effective_date</td><td>{{$bill->effective_date}}</td></tr>
|
|
|
+ <tr><td>has_hcp_been_paid</td><td>{{$bill->has_hcp_been_paid}}</td></tr>
|
|
|
+ <tr><td>hcp_expected_payment_amount</td><td>{{$bill->hcp_expected_payment_amount}}</td></tr>
|
|
|
+ <tr><td>hcp_payment_amount</td><td>{{$bill->hcp_payment_amount}}</td></tr>
|
|
|
+ <tr><td>is_cancelled</td><td>{{$bill->is_cancelled}}</td></tr>
|
|
|
+ <tr><td>hcp_payment_pro_transaction_id</td><td>{{$bill->hcp_payment_pro_transaction_id}}</td></tr>
|
|
|
+ <tr><td>balance_post_date</td><td>{{$bill->balance_post_date}}</td></tr>
|
|
|
+ <tr><td>is_verified</td><td>{{$bill->is_verified}}</td></tr>
|
|
|
+ <tr><td>is_cancellation_acknowledged</td><td>{{$bill->is_cancellation_acknowledged}}</td></tr>
|
|
|
+ <tr><td>is_cancelled_by_administrator</td><td>{{$bill->is_cancelled_by_administrator}}</td></tr>
|
|
|
+ <tr><td>total_expected</td><td>{{$bill->total_expected}}</td></tr>
|
|
|
+ <tr><td>total_paid</td><td>{{$bill->total_paid}}</td></tr>
|
|
|
+ </tbody>
|
|
|
+ </table>
|
|
|
+ </td> */ ?>
|
|
|
+ <td class="text-nowrap">{{friendlier_date_time($bill->effective_date, false)}}</td>
|
|
|
+ <td>{{$bill->code}}</td>
|
|
|
+ <td class="">
|
|
|
+ @if(strpos(strtolower($bill->code), 'treatment services') !== FALSE)
|
|
|
+ <?php
|
|
|
+ $totalSeconds = $bill->number_of_units * 3600;
|
|
|
+ $remainder = $totalSeconds % 60;
|
|
|
+ if ($remainder !== 0) {
|
|
|
+ if ($remainder < 30) {
|
|
|
+ $totalSeconds = $totalSeconds - $remainder;
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ $totalSeconds = $totalSeconds + (60 - $remainder);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ ?>
|
|
|
+ {{ time_in_hrminsec($totalSeconds) }}
|
|
|
+ @else
|
|
|
+ @if(!!$bill->number_of_units)
|
|
|
+ {{ $bill->number_of_units }} unit(s)
|
|
|
+ @else
|
|
|
+ -
|
|
|
+ @endif
|
|
|
+ @endif
|
|
|
+ </td>
|
|
|
+ <td class="">
|
|
|
+ <div class="text-nowrap font-weight-bold text-secondary">{{ $bill->hcp->displayName() }}</div>
|
|
|
+ <div class="text-nowrap mt-1">
|
|
|
+ <span class="text-secondary">Paid: </span>
|
|
|
+ <span>{{ $bill->has_hcp_been_paid ? 'Yes' : 'No' }}</span>
|
|
|
+ </div>
|
|
|
+ @if(!$bill->has_hcp_been_paid)
|
|
|
+ <div class="text-nowrap mt-1">
|
|
|
+ <span class="text-secondary">Expected: </span>
|
|
|
+ <span class="font-weight-bold">${{ $bill->hcp_expected_payment_amount }}</span>
|
|
|
+ </div>
|
|
|
+ @else
|
|
|
+ <div class="text-nowrap mt-1">
|
|
|
+ <span class="text-secondary">Amount: </span>
|
|
|
+ <span class="font-weight-bold">${{ $bill->hcp_payment_amount }}</span>
|
|
|
+ </div>
|
|
|
+ @endif
|
|
|
+ </td>
|
|
|
+ <td class="pr-3">
|
|
|
+ @if($bill->has_hcp_been_paid)
|
|
|
+ <span class="text-secondary">Paid. </span>
|
|
|
+ <span class="font-weight-bold">${{ friendly_money($bill->total_paid) }}</span>
|
|
|
+ @else
|
|
|
+ <span class="text-secondary">Exp. </span>
|
|
|
+ <span class="font-weight-bold">{{ $bill->total_expected ? '$' . friendly_money($bill->total_expected) : '-' }}</span>
|
|
|
+ @endif
|
|
|
+ </td>
|
|
|
+ <td>
|
|
|
+ @if(!$bill->is_cancelled)
|
|
|
+ @if($bill->is_signed_by_hcp)
|
|
|
+ <span class="d-block text-secondary text-nowrap">
|
|
|
+ <i class="fa fa-check"></i>
|
|
|
+ HCP Signed
|
|
|
+ </span>
|
|
|
+ @else
|
|
|
+ <span moe
|
|
|
+ class="d-block {{ $bill->hcp_pro_id !== $pro->id ? 'moe-disabled' : '' }}"
|
|
|
+ title="{{ $bill->hcp_pro_id !== $pro->id ? 'Only the bill\'s HCP can sign' : '' }}">
|
|
|
+ <a class="" href="" show start>Sign</a>
|
|
|
+ <form url="/api/bill/signAsHcp">
|
|
|
+ <input type="hidden" name="uid" value="{{$bill->uid}}">
|
|
|
+ <p>Sign this bill as HCP?</p>
|
|
|
+ <div class="mb-0">
|
|
|
+ <button class="btn btn-success btn-sm" submit>Sign</button>
|
|
|
+ <button class="btn btn-default border btn-sm" cancel>Cancel</button>
|
|
|
+ </div>
|
|
|
+ </form>
|
|
|
+ </span>
|
|
|
+ @endif
|
|
|
+ @endif
|
|
|
+ </td>
|
|
|
+ <td>
|
|
|
+ @if(!$bill->is_cancelled)
|
|
|
+ <span class="d-block" moe>
|
|
|
+ <a class="" href="" show start>
|
|
|
+ {{$bill->balance_post_date ? friendlier_date_time($bill->balance_post_date, false) : '(not set)' }}
|
|
|
+ </a>
|
|
|
+ <form url="/api/bill/updateBalancePostDate">
|
|
|
+ <input type="hidden" name="uid" value="{{$bill->uid}}">
|
|
|
+ <p>Update Balance Post Date</p>
|
|
|
+ <div class="mb-0">
|
|
|
+ <input type="date" class="text form-control form-control-sm" name="balancePostDate" value="{{$bill->balance_post_date}}" placeholder="balance post date"><br>
|
|
|
+ <button class="btn btn-success btn-sm" submit>Submit</button>
|
|
|
+ <button class="btn btn-default border btn-sm" cancel>Cancel</button>
|
|
|
+ </div>
|
|
|
+ </form>
|
|
|
+ </span>
|
|
|
+ @endif
|
|
|
+ </td>
|
|
|
+ <td> <!-- verification -->
|
|
|
+ @if($pro->pro_type === 'ADMIN' && !$bill->is_cancelled)
|
|
|
+ @if(!$bill->is_verified)
|
|
|
+ <div class="text-warning-mellow font-weight-bold">Not Verified</div>
|
|
|
+ <span class="d-block mt-1" moe>
|
|
|
+ <a href="" show start>Mark Verified</a>
|
|
|
+ <form url="/api/bill/markAsVerified">
|
|
|
+ <input type="hidden" name="uid" value="{{$bill->uid}}">
|
|
|
+ <p>Mark As Verfified?</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>
|
|
|
+ </span>
|
|
|
+ @else
|
|
|
+ <div class="text-success font-weight-bold"><i class="fa fa-check"></i> Verified</div>
|
|
|
+ <span class="d-block mt-1" moe>
|
|
|
+ <a class="" href="" show start>Undo</a>
|
|
|
+ <form url="/api/bill/undoMarkAsVerified">
|
|
|
+ <input type="hidden" name="uid" value="{{$bill->uid}}">
|
|
|
+ <p>Undo Mark As Verfified?</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>
|
|
|
+ </span>
|
|
|
+ @endif
|
|
|
+ @endif
|
|
|
+ </td>
|
|
|
+ <td> <!-- cancellation -->
|
|
|
+ @if($bill->is_cancelled)
|
|
|
+ <div class="text-warning-mellow font-weight-bold">Cancelled</div>
|
|
|
+ @if($bill->is_cancelled_by_administrator)
|
|
|
+ <div class="text-secondary text-sm">(by Administrator)</div>
|
|
|
+ @endif
|
|
|
+ <div moe class="mt-1">
|
|
|
+ <a class="" href="" show start>Update Memo</a>
|
|
|
+ <form url="/api/bill/updateCancellationMemo">
|
|
|
+ <input type="hidden" name="uid" value="{{$bill->uid}}">
|
|
|
+ <p>Update Cancellation Memo</p>
|
|
|
+ <div class="mb-0">
|
|
|
+ <input type="text" class="text form-control form-control-sm" name="updateCancellationMemo" value="{{$bill->cancellation_memo}}" placeholder=""><br>
|
|
|
+ <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
|
|
|
+ <span 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="{{$bill->uid}}">
|
|
|
+ <p class="mb-2">Cancel this bill?</p>
|
|
|
+ <div class="mb-2">
|
|
|
+ <label class="mb-1 text-secondary">Cancellation Memo</label>
|
|
|
+ <input type="text" name="memo" placeholder="Memo" class="form-control form-control-sm">
|
|
|
+ </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>
|
|
|
+ </span>
|
|
|
+ @endif
|
|
|
+
|
|
|
+ @if($bill->is_cancelled && !$bill->is_cancellation_acknowledged)
|
|
|
+ <div class="mt-2 text-secondary">
|
|
|
+ <i class="fa fa-exclamation-triangle"></i>
|
|
|
+ Not Acknowledged
|
|
|
+ </div>
|
|
|
+ <div class="d-block mt-1" moe>
|
|
|
+ <a class="" href="" show start>Ack. Cancellation</a>
|
|
|
+ <form url="/api/bill/acknowledgeCancellation">
|
|
|
+ <input type="hidden" name="uid" value="{{$bill->uid}}">
|
|
|
+ <p>Acknowledge Cancellation?</p>
|
|
|
+ <div class="mb-0">
|
|
|
+ <input type="text" class="text form-control form-control-sm" name="cancellationMemo" value="{{$bill->cancellation_memo}}" placeholder=""><br>
|
|
|
+ <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
|
|
|
+
|
|
|
+ @if($bill->is_cancellation_acknowledged)
|
|
|
+ <div class="mt-2 text-secondary">
|
|
|
+ <i class="fa fa-check"></i>
|
|
|
+ Acknowledged
|
|
|
+ </div>
|
|
|
+ <div class="d-block mt-1" moe>
|
|
|
+ <a class="" href="" show start>Undo Cancellation Ack.</a>
|
|
|
+ <form url="/api/bill/undoAcknowledgeCancellation">
|
|
|
+ <input type="hidden" name="uid" value="{{$bill->uid}}">
|
|
|
+ <p>Undo Acknowledge Cancellation?</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
|
|
|
+
|
|
|
+ </td>
|
|
|
+ <td> <!-- submit payment -->
|
|
|
+ @if($pro->pro_type === 'ADMIN' && !$bill->is_cancelled)
|
|
|
+ <span class="d-block" moe relative="">
|
|
|
+ <a class="font-weight-bold" href="" show start>Submit Payment</a>
|
|
|
+ <form url="/api/bill/payHcpAmount" right>
|
|
|
+ <input type="hidden" name="uid" value="{{$bill->uid}}">
|
|
|
+ <p>Submit Payment</p>
|
|
|
+ <div class="mb-0">
|
|
|
+ <input type="text" class="text form-control form-control-sm" name="hcpPaymentAmount" value="{{$bill->hcp_expected_payment_amount}}" placeholder="amount"><br>
|
|
|
+ <button class="btn btn-success btn-sm" submit>Submit</button>
|
|
|
+ <button class="btn btn-default border btn-sm" cancel>Cancel</button>
|
|
|
+ </div>
|
|
|
+ </form>
|
|
|
+ </span>
|
|
|
+ @endif
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ @endforeach
|
|
|
+ </tbody>
|
|
|
+ </table>
|
|
|
+ @else
|
|
|
<table class="table table-sm tabe-striped mb-3 border-left border-right border-bottom">
|
|
|
<thead class="bg-light">
|
|
|
<tr>
|
|
@@ -371,8 +814,8 @@
|
|
|
</span>
|
|
|
@else
|
|
|
<span moe
|
|
|
- class="d-block {{ $bill->hcp_pro_id !== $pro->id ? 'moe-disabled' : '' }}"
|
|
|
- title="{{ $bill->hcp_pro_id !== $pro->id ? 'Only the bill\'s HCP can sign' : '' }}">
|
|
|
+ class="d-block {{ $bill->hcp_pro_id !== $pro->id ? 'moe-disabled' : '' }}"
|
|
|
+ title="{{ $bill->hcp_pro_id !== $pro->id ? 'Only the bill\'s HCP can sign' : '' }}">
|
|
|
<a class="" href="" show start>Sign</a>
|
|
|
<form url="/api/bill/signAsHcp">
|
|
|
<input type="hidden" name="uid" value="{{$bill->uid}}">
|
|
@@ -385,9 +828,9 @@
|
|
|
</span>
|
|
|
@endif
|
|
|
@endif
|
|
|
- @if(!$bill->has_hcp_been_paid && $pro->pro_type === 'ADMIN')
|
|
|
- <span class="mx-2 text-secondary">|</span>
|
|
|
- <span class="d-block" moe>
|
|
|
+ @if(!$bill->has_hcp_been_paid && $pro->pro_type === 'ADMIN')
|
|
|
+ <span class="mx-2 text-secondary">|</span>
|
|
|
+ <span class="d-block" moe>
|
|
|
<a class="text-danger" href="" show start>Submit Payment</a>
|
|
|
<form url="/api/bill/payHcpAmount">
|
|
|
<input type="hidden" name="uid" value="{{$bill->uid}}">
|
|
@@ -399,7 +842,7 @@
|
|
|
</div>
|
|
|
</form>
|
|
|
</span>
|
|
|
- @endif
|
|
|
+ @endif
|
|
|
@if($bill->is_cancelled)
|
|
|
<span class="mx-2 text-secondary">|</span>
|
|
|
<span class="d-block text-secondary">
|
|
@@ -409,7 +852,7 @@
|
|
|
<span class="mx-2 text-secondary">|</span>
|
|
|
<span class="d-block" moe>
|
|
|
<a class="text-danger" href="" show start>Cancel</a>
|
|
|
- <form url="/api/bill/markCancelled">
|
|
|
+ <form url="/api/bill/markCancelled" right>
|
|
|
<input type="hidden" name="uid" value="{{$bill->uid}}">
|
|
|
<p>Cancel this bill?</p>
|
|
|
<div class="mb-0">
|
|
@@ -425,9 +868,11 @@
|
|
|
@endforeach
|
|
|
</tbody>
|
|
|
</table>
|
|
|
+ @endif
|
|
|
+
|
|
|
</div>
|
|
|
@else
|
|
|
- <div class="my-3 px-3 d-flex">
|
|
|
+ <div class="p-3 d-flex border-bottom">
|
|
|
<p class="font-weight-bold mb-0 text-secondary">No bills in this note</p>
|
|
|
@include('app/patient/note/_create-bill')
|
|
|
</div>
|
|
@@ -437,10 +882,53 @@
|
|
|
{{-- claims --}}
|
|
|
@if($pro->pro_type === 'ADMIN')
|
|
|
@if($note->claims->count())
|
|
|
- <div class="mt-2 px-3">
|
|
|
+ <div class="p-3">
|
|
|
<div class="d-flex align-items-center mb-2">
|
|
|
<p class="font-weight-bold text-secondary m-0">Claims</p>
|
|
|
@include('app/patient/note/_create-claim')
|
|
|
+ @if($pro->pro_type === 'ADMIN')
|
|
|
+ @if(!$note->is_claim_closed)
|
|
|
+ <span class="mx-2 text-secondary">|</span>
|
|
|
+ <span class="d-block" moe>
|
|
|
+ <a class="text-danger" href="" show start>Close Claiming</a>
|
|
|
+ <form url="/api/note/closeClaiming">
|
|
|
+ <input type="hidden" name="uid" value="{{$note->uid}}">
|
|
|
+ <p>Close claiming?</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>
|
|
|
+ </span>
|
|
|
+ @elseif($note->is_claim_closed)
|
|
|
+ <span class="mx-2 text-secondary">|</span>
|
|
|
+ <span class="d-block" moe>
|
|
|
+ <a class="text-danger" href="" show start>Reopen Claiming</a>
|
|
|
+ <form url="/api/note/reopenClaiming">
|
|
|
+ <input type="hidden" name="uid" value="{{$note->uid}}">
|
|
|
+ <p>Reopen claiming?</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>
|
|
|
+ </span>
|
|
|
+ <span class="mx-2 text-secondary">|</span>
|
|
|
+ <span class="d-block" moe>
|
|
|
+ <a class="text-danger" href="" show start>Update Claim Total Paid</a>
|
|
|
+ <form url="/api/note/updateClaimTotalPaid">
|
|
|
+ <input type="hidden" name="uid" value="{{$note->uid}}">
|
|
|
+ <div class="form-group">
|
|
|
+ <input type="number" class="form-control" name="claimTotalPaid">
|
|
|
+ </div>
|
|
|
+ <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>
|
|
|
+ </span>
|
|
|
+ @endif
|
|
|
+ @endif
|
|
|
</div>
|
|
|
|
|
|
<table class="table table-sm tabe-striped mb-3 border-left border-right border-bottom">
|