|
@@ -208,7 +208,7 @@
|
|
<div moe
|
|
<div moe
|
|
class="{{ $note->hcp_pro_id !== $pro->id ? 'moe-disabled' : '' }}"
|
|
class="{{ $note->hcp_pro_id !== $pro->id ? 'moe-disabled' : '' }}"
|
|
title="{{ $note->hcp_pro_id !== $pro->id ? 'Only the note\'s HCP can sign' : '' }}">
|
|
title="{{ $note->hcp_pro_id !== $pro->id ? 'Only the note\'s HCP can sign' : '' }}">
|
|
- <a class="" href="" show start>Sign Note</a>
|
|
|
|
|
|
+ <a class="" href="" show start>Sign Note As HCP</a>
|
|
<form url="/api/note/signAsHcp" right>
|
|
<form url="/api/note/signAsHcp" right>
|
|
<input type="hidden" name="uid" value="{{$note->uid}}">
|
|
<input type="hidden" name="uid" value="{{$note->uid}}">
|
|
<p>Sign this note as HCP?</p>
|
|
<p>Sign this note as HCP?</p>
|
|
@@ -221,6 +221,32 @@
|
|
@endif
|
|
@endif
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
+ @if($note->allyPro)
|
|
|
|
+ <div class="mx-4">
|
|
|
|
+ <div>
|
|
|
|
+ @if($note->is_signed_by_ally)
|
|
|
|
+ <span class="text-secondary">
|
|
|
|
+ <i class="fa fa-check"></i>
|
|
|
|
+ Note Signed By NA
|
|
|
|
+ </span>
|
|
|
|
+ @else
|
|
|
|
+ <div moe
|
|
|
|
+ class="{{ $note->ally_pro_id !== $pro->id ? 'moe-disabled' : '' }}"
|
|
|
|
+ title="{{ $note->ally_pro_id !== $pro->id ? 'Only the note\'s Ally can sign' : '' }}">
|
|
|
|
+ <a class="" href="" show start>Sign Note As NA</a>
|
|
|
|
+ <form url="/api/note/signAsAlly" right>
|
|
|
|
+ <input type="hidden" name="uid" value="{{$note->uid}}">
|
|
|
|
+ <p>Sign this NA?</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>
|
|
|
|
+ </div>
|
|
|
|
+ @endif
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ @endif
|
|
@if($note->is_cancelled || (!$note->is_cancelled && !$note->is_signed_by_hcp))
|
|
@if($note->is_cancelled || (!$note->is_cancelled && !$note->is_signed_by_hcp))
|
|
<div class="ml-2 pl-2 border-left">
|
|
<div class="ml-2 pl-2 border-left">
|
|
<div class="d-flex justify-content-end">
|
|
<div class="d-flex justify-content-end">
|
|
@@ -434,7 +460,7 @@
|
|
<div class="d-flex align-items-center mb-2">
|
|
<div class="d-flex align-items-center mb-2">
|
|
<p class="font-weight-bold text-secondary m-0">Bills</p>
|
|
<p class="font-weight-bold text-secondary m-0">Bills</p>
|
|
@include('app/patient/note/_create-bill')
|
|
@include('app/patient/note/_create-bill')
|
|
- @if($pro->pro_type === 'ADMIN')
|
|
|
|
|
|
+
|
|
@if(!$note->is_bill_closed)
|
|
@if(!$note->is_bill_closed)
|
|
<span class="mx-2 text-secondary">|</span>
|
|
<span class="mx-2 text-secondary">|</span>
|
|
<span class="d-block" moe>
|
|
<span class="d-block" moe>
|
|
@@ -462,14 +488,13 @@
|
|
</form>
|
|
</form>
|
|
</span>
|
|
</span>
|
|
@endif
|
|
@endif
|
|
- @else
|
|
|
|
<span class="mx-2 text-secondary">|</span>
|
|
<span class="mx-2 text-secondary">|</span>
|
|
- @if(!$note->is_bill_ready_to_verify)
|
|
|
|
|
|
+ @if(!$note->is_billing_marked_done)
|
|
<span class="d-block" moe>
|
|
<span class="d-block" moe>
|
|
- <a class="text-danger" href="" show start>Mark Ready to Verify</a>
|
|
|
|
- <form url="/api/note/setIsBillReadyToVerifyToTrue">
|
|
|
|
|
|
+ <a class="text-danger" href="" show start>Mark Billing Done</a>
|
|
|
|
+ <form url="/api/note/setIsBillingMarkedDoneToTrue">
|
|
<input type="hidden" name="uid" value="{{$note->uid}}">
|
|
<input type="hidden" name="uid" value="{{$note->uid}}">
|
|
- <p>Mark bills on this note as Ready to Verify?</p>
|
|
|
|
|
|
+ <p>Mark billing on this note as done?</p>
|
|
<div class="mb-0">
|
|
<div class="mb-0">
|
|
<button class="btn btn-success btn-sm" submit>Submit</button>
|
|
<button class="btn btn-success btn-sm" submit>Submit</button>
|
|
<button class="btn btn-default border btn-sm" cancel>Cancel</button>
|
|
<button class="btn btn-default border btn-sm" cancel>Cancel</button>
|
|
@@ -478,17 +503,17 @@
|
|
</span>
|
|
</span>
|
|
@else
|
|
@else
|
|
<span class="d-block" moe>
|
|
<span class="d-block" moe>
|
|
- <a class="text-danger" href="" show start>Undo Mark Ready to Verify</a>
|
|
|
|
- <form url="/api/note/setIsBillReadyToVerifyToFalse">
|
|
|
|
|
|
+ <a class="text-danger" href="" show start>Undo Mark Billing Done</a>
|
|
|
|
+ <form url="/api/note/setIsBillingMarkedDoneToFalse">
|
|
<input type="hidden" name="uid" value="{{$note->uid}}">
|
|
<input type="hidden" name="uid" value="{{$note->uid}}">
|
|
- <p>Mark bills on this note as Not Ready to Verify?</p>
|
|
|
|
|
|
+ <p>Mark billing on this note as not done?</p>
|
|
<div class="mb-0">
|
|
<div class="mb-0">
|
|
<button class="btn btn-success btn-sm" submit>Submit</button>
|
|
<button class="btn btn-success btn-sm" submit>Submit</button>
|
|
<button class="btn btn-default border btn-sm" cancel>Cancel</button>
|
|
<button class="btn btn-default border btn-sm" cancel>Cancel</button>
|
|
</div>
|
|
</div>
|
|
</form>
|
|
</form>
|
|
</span>
|
|
</span>
|
|
- @endif
|
|
|
|
|
|
+
|
|
@endif
|
|
@endif
|
|
</div>
|
|
</div>
|
|
|
|
|
|
@@ -557,7 +582,7 @@
|
|
@endif
|
|
@endif
|
|
</td>
|
|
</td>
|
|
<td class="">
|
|
<td class="">
|
|
- <div class="text-nowrap font-weight-bold text-secondary">{{ $bill->hcp->displayName() }}</div>
|
|
|
|
|
|
+ <div class="text-nowrap font-weight-bold text-secondary">{{ $bill->hcp->displayName() }} (HCP)</div>
|
|
<div class="text-nowrap mt-1">
|
|
<div class="text-nowrap mt-1">
|
|
<span class="text-secondary">Paid: </span>
|
|
<span class="text-secondary">Paid: </span>
|
|
<span>{{ $bill->has_hcp_been_paid ? 'Yes' : 'No' }}</span>
|
|
<span>{{ $bill->has_hcp_been_paid ? 'Yes' : 'No' }}</span>
|
|
@@ -573,6 +598,26 @@
|
|
<span class="font-weight-bold">${{ $bill->hcp_payment_amount }}</span>
|
|
<span class="font-weight-bold">${{ $bill->hcp_payment_amount }}</span>
|
|
</div>
|
|
</div>
|
|
@endif
|
|
@endif
|
|
|
|
+ @if($bill->ally)
|
|
|
|
+ <hr>
|
|
|
|
+ <div class="text-nowrap font-weight-bold text-secondary">{{ $bill->ally->displayName() }} (NA)</div>
|
|
|
|
+ <div class="text-nowrap mt-1">
|
|
|
|
+ <span class="text-secondary">Paid: </span>
|
|
|
|
+ <span>{{ $bill->has_na_been_paid ? 'Yes' : 'No' }}</span>
|
|
|
|
+ </div>
|
|
|
|
+ @if(!$bill->has_na_been_paid)
|
|
|
|
+ <div class="text-nowrap mt-1">
|
|
|
|
+ <span class="text-secondary">Expected: </span>
|
|
|
|
+ <span class="font-weight-bold">${{ $bill->na_expected_payment_amount }}</span>
|
|
|
|
+ </div>
|
|
|
|
+ @else
|
|
|
|
+ <div class="text-nowrap mt-1">
|
|
|
|
+ <span class="text-secondary">Amount: </span>
|
|
|
|
+ <span class="font-weight-bold">${{ $bill->na_payment_amount }}</span>
|
|
|
|
+ </div>
|
|
|
|
+ @endif
|
|
|
|
+ @endif
|
|
|
|
+
|
|
</td>
|
|
</td>
|
|
<td class="pr-3">
|
|
<td class="pr-3">
|
|
@if($bill->has_hcp_been_paid)
|
|
@if($bill->has_hcp_been_paid)
|
|
@@ -594,7 +639,7 @@
|
|
<span moe
|
|
<span moe
|
|
class="d-block {{ $bill->hcp_pro_id !== $pro->id ? 'moe-disabled' : '' }}"
|
|
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' : '' }}">
|
|
title="{{ $bill->hcp_pro_id !== $pro->id ? 'Only the bill\'s HCP can sign' : '' }}">
|
|
- <a class="" href="" show start>Sign</a>
|
|
|
|
|
|
+ <a class="" href="" show start>Sign As HCP</a>
|
|
<form url="/api/bill/signAsHcp">
|
|
<form url="/api/bill/signAsHcp">
|
|
<input type="hidden" name="uid" value="{{$bill->uid}}">
|
|
<input type="hidden" name="uid" value="{{$bill->uid}}">
|
|
<p>Sign this bill as HCP?</p>
|
|
<p>Sign this bill as HCP?</p>
|
|
@@ -605,6 +650,27 @@
|
|
</form>
|
|
</form>
|
|
</span>
|
|
</span>
|
|
@endif
|
|
@endif
|
|
|
|
+
|
|
|
|
+ @if($bill->is_signed_by_na)
|
|
|
|
+ <span class="d-block text-secondary text-nowrap">
|
|
|
|
+ <i class="fa fa-check"></i>
|
|
|
|
+ NA Signed
|
|
|
|
+ </span>
|
|
|
|
+ @else
|
|
|
|
+ <span moe
|
|
|
|
+ class="d-block {{ $bill->na_pro_id !== $pro->id ? 'moe-disabled' : '' }}"
|
|
|
|
+ title="{{ $bill->na_pro_id !== $pro->id ? 'Only the bill\'s NA can sign' : '' }}">
|
|
|
|
+ <a class="" href="" show start>Sign As NA</a>
|
|
|
|
+ <form url="/api/bill/signAsNa">
|
|
|
|
+ <input type="hidden" name="uid" value="{{$bill->uid}}">
|
|
|
|
+ <p>Sign this bill as NA?</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
|
|
@endif
|
|
</td>
|
|
</td>
|
|
<td>
|
|
<td>
|
|
@@ -731,20 +797,38 @@
|
|
|
|
|
|
</td>
|
|
</td>
|
|
<td> <!-- submit payment -->
|
|
<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
|
|
|
|
|
|
+ <div class="my-1">
|
|
|
|
+ @if($pro->pro_type === 'ADMIN' && !$bill->is_cancelled)
|
|
|
|
+ <span class="d-block" moe relative="">
|
|
|
|
+ <a class="font-weight-bold" href="" show start>Submit Payment For HCP</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
|
|
|
|
+ </div>
|
|
|
|
+ <div class="my-1">
|
|
|
|
+ @if($pro->pro_type === 'ADMIN' && !$bill->is_cancelled)
|
|
|
|
+ <span class="d-block" moe relative="">
|
|
|
|
+ <a class="font-weight-bold" href="" show start>Submit Payment For NA</a>
|
|
|
|
+ <form url="/api/bill/payNaAmount" right>
|
|
|
|
+ <input type="hidden" name="uid" value="{{$bill->uid}}">
|
|
|
|
+ <p>Submit Payment For NA</p>
|
|
|
|
+ <div class="mb-0">
|
|
|
|
+ <input type="text" class="text form-control form-control-sm" name="naPaymentAmount" value="{{$bill->na_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
|
|
|
|
+ </div>
|
|
</td>
|
|
</td>
|
|
</tr>
|
|
</tr>
|
|
@endforeach
|
|
@endforeach
|
|
@@ -1097,6 +1181,10 @@
|
|
|
|
|
|
@include('app/patient/note/_cancel-signed-note')
|
|
@include('app/patient/note/_cancel-signed-note')
|
|
|
|
|
|
|
|
+ <div class="border-top p-3">
|
|
|
|
+ @include('app/patient/note/_manage_note_ally')
|
|
|
|
+ </div>
|
|
|
|
+
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|