|
@@ -3,7 +3,7 @@
|
|
@section('inner-content')
|
|
@section('inner-content')
|
|
|
|
|
|
<div class="pt-2 d-flex align-items-start">
|
|
<div class="pt-2 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-center w-100">
|
|
<span class="font-weight-bold text-secondary">Notes</span>
|
|
<span class="font-weight-bold text-secondary">Notes</span>
|
|
<span class="mx-2 text-secondary">|</span>
|
|
<span class="mx-2 text-secondary">|</span>
|
|
<div moe>
|
|
<div moe>
|
|
@@ -26,6 +26,12 @@
|
|
</div>
|
|
</div>
|
|
</form>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
|
|
+ <select class="ml-auto max-width-300px form-control form-control-sm"
|
|
|
|
+ onchange="fastLoad('/patients/view/{{$patient->uid}}/notes/' + this.value, true, false, false)">
|
|
|
|
+ <option value="active" {{ $filter === 'active' ? 'selected' : '' }}>Active notes</option>
|
|
|
|
+ <option value="cancelled" {{ $filter === 'cancelled' ? 'selected' : '' }}>Cancelled notes</option>
|
|
|
|
+ <option value="all" {{ $filter === 'all' ? 'selected' : '' }}>All notes</option>
|
|
|
|
+ </select>
|
|
</h6>
|
|
</h6>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
@@ -42,7 +48,21 @@
|
|
</tr>
|
|
</tr>
|
|
</thead>
|
|
</thead>
|
|
<tbody>
|
|
<tbody>
|
|
- @foreach ($patient->notes as $note)
|
|
|
|
|
|
+ <?php
|
|
|
|
+ $records = [];
|
|
|
|
+ switch ($filter) {
|
|
|
|
+ case "active":
|
|
|
|
+ $records = $patient->activeNotes;
|
|
|
|
+ break;
|
|
|
|
+ case "cancelled":
|
|
|
|
+ $records = $patient->cancelledNotes;
|
|
|
|
+ break;
|
|
|
|
+ case "all":
|
|
|
|
+ $records = $patient->notes;
|
|
|
|
+ break;
|
|
|
|
+ }
|
|
|
|
+ ?>
|
|
|
|
+ @foreach ($records as $note)
|
|
<tr class="{{ $note->is_cancelled ? 'cancelled-item always-clickable' : '' }}">
|
|
<tr class="{{ $note->is_cancelled ? 'cancelled-item always-clickable' : '' }}">
|
|
<td class="px-2">
|
|
<td class="px-2">
|
|
<span class="font-weight-bold">
|
|
<span class="font-weight-bold">
|