|
@@ -62,7 +62,32 @@ $medications = $points;
|
|
|
}
|
|
|
?>
|
|
|
<tr>
|
|
|
- <td class="bg-light font-weight-bold">{{$medication->data->name}}</td>
|
|
|
+ <td class="bg-light font-weight-bold">
|
|
|
+ {{$medication->data->name}}
|
|
|
+ <div class="d-block font-weight-normal">
|
|
|
+ <div class="d-flex align-items-baseline">
|
|
|
+ <span class="text-secondary mr-1">Active:</span>
|
|
|
+ @if($medication->is_removed)
|
|
|
+ <span class="text-secondary">No</span>
|
|
|
+ @else
|
|
|
+ <span class="text-success">Yes</span>
|
|
|
+ @endif
|
|
|
+ <div moe class="ml-2">
|
|
|
+ <a href="#" start show>Mark {{$medication->is_removed ? 'Active' : 'Historic'}}</a>
|
|
|
+ <form url="/api/visitPoint/updateTopLevel" class="mcp-theme-1">
|
|
|
+ <p class="mb-2">Mark medication as {{$medication->is_removed ? 'Active' : 'Historic'}}</p>
|
|
|
+ <input type="hidden" name="uid" value="{{$medication->uid}}">
|
|
|
+ <input type="hidden" name="noteUid" value="{{$note->uid}}">
|
|
|
+ <input type="hidden" name="isRemoved" value="{{$medication->is_removed ? '0' : '1'}}">
|
|
|
+ <div>
|
|
|
+ <button submit class="btn btn-sm btn-primary mr-2">Save</button>
|
|
|
+ <button cancel class="btn btn-sm bg-light btn-default border">Cancel</button>
|
|
|
+ </div>
|
|
|
+ </form>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </td>
|
|
|
<td class="bg-light">
|
|
|
@include('app/patient/wizard-partials/show-plan', ['point' => $medication, 'plan' => $mostRecentPlanBeforeThisNote])
|
|
|
</td>
|