|
@@ -5,6 +5,18 @@
|
|
|
|
|
|
@section('inner-content')
|
|
@section('inner-content')
|
|
|
|
|
|
|
|
+ <?php
|
|
|
|
+ $hasBills = false;
|
|
|
|
+ if($note->bills->count()) {
|
|
|
|
+ foreach ($note->bills as $bill) {
|
|
|
|
+ if(!$bill->is_cancelled) {
|
|
|
|
+ $hasBills = true;
|
|
|
|
+ break;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ ?>
|
|
|
|
+
|
|
<div class="pt-2 pb-3 d-flex align-items-start">
|
|
<div class="pt-2 pb-3 d-flex align-items-start">
|
|
<h6 class="my-0 text-secondary d-flex align-items-start">
|
|
<h6 class="my-0 text-secondary d-flex align-items-start">
|
|
<a href="/patients/view/{{ $patient->uid }}/notes" class="small text-decoration-none mr-3">
|
|
<a href="/patients/view/{{ $patient->uid }}/notes" class="small text-decoration-none mr-3">
|
|
@@ -202,7 +214,9 @@
|
|
</div>
|
|
</div>
|
|
<div class="d-flex justify-content-end">
|
|
<div class="d-flex justify-content-end">
|
|
@if(!$note->is_cancelled)
|
|
@if(!$note->is_cancelled)
|
|
- <div moe relatve class="">
|
|
|
|
|
|
+ <div moe relatve
|
|
|
|
+ class="{{ $hasBills ? 'moe-disabled' : '' }}"
|
|
|
|
+ title="{{ $hasBills ? 'Cannot cancel note since it has un-cancelled bills in it' : '' }}">
|
|
<a class="text-danger" href="" show start>Cancel Note</a>
|
|
<a class="text-danger" href="" show start>Cancel Note</a>
|
|
<form url="/api/note/cancel" right>
|
|
<form url="/api/note/cancel" right>
|
|
<input type="hidden" name="uid" value="{{$note->uid}}">
|
|
<input type="hidden" name="uid" value="{{$note->uid}}">
|