|
@@ -89,6 +89,7 @@
|
|
<th class="border-bottom-0 border-top-0">Code</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">Units</th>
|
|
<th class="border-bottom-0 border-top-0">Verified?</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')
|
|
@if(!request()->input('t') || request()->input('t') === 'hcp')
|
|
<th class="border-bottom-0 border-top-0">HCP Expected Amount</th>
|
|
<th class="border-bottom-0 border-top-0">HCP Expected Amount</th>
|
|
@elseif(request()->input('t') === 'na')
|
|
@elseif(request()->input('t') === 'na')
|
|
@@ -261,6 +262,49 @@
|
|
@endif
|
|
@endif
|
|
@endif
|
|
@endif
|
|
</td>
|
|
</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')
|
|
@if(!request()->input('t') || request()->input('t') === 'hcp')
|
|
<td>${{$row->hcp_expected_payment_amount}}</td>
|
|
<td>${{$row->hcp_expected_payment_amount}}</td>
|