|
@@ -1450,26 +1450,28 @@
|
|
</form>
|
|
</form>
|
|
</span>
|
|
</span>
|
|
@endif
|
|
@endif
|
|
- <span class="mx-2 text-secondary">|</span>
|
|
|
|
- @if($bill->is_signed_by_na)
|
|
|
|
- <span class="d-block text-secondary">
|
|
|
|
- <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->hcp_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>
|
|
|
|
|
|
+ @if($bill->na_pro_id === $pro->id)
|
|
|
|
+ <span class="mx-2 text-secondary">|</span>
|
|
|
|
+ @if($bill->is_signed_by_na)
|
|
|
|
+ <span class="d-block text-secondary">
|
|
|
|
+ <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->hcp_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
|
|
@endif
|
|
@endif
|
|
@if(!$bill->has_hcp_been_paid && $pro->pro_type === 'ADMIN')
|
|
@if(!$bill->has_hcp_been_paid && $pro->pro_type === 'ADMIN')
|