|
@@ -1,9 +1,15 @@
|
|
<?php
|
|
<?php
|
|
/** @var \App\Models\Pro $sectionPro */
|
|
/** @var \App\Models\Pro $sectionPro */
|
|
/** @var \App\Models\Pro $pro */
|
|
/** @var \App\Models\Pro $pro */
|
|
|
|
+/** @var \App\Models\Note $note */
|
|
|
|
|
|
if(!@$sectionPro) {
|
|
if(!@$sectionPro) {
|
|
- $sectionPro = $pro;
|
|
|
|
|
|
+ if(@$note) {
|
|
|
|
+ $sectionPro = $note->hcpPro;
|
|
|
|
+ }
|
|
|
|
+ else {
|
|
|
|
+ $sectionPro = $pro; // should never get here
|
|
|
|
+ }
|
|
}
|
|
}
|
|
|
|
|
|
if(!$contentData) $contentData = [];
|
|
if(!$contentData) $contentData = [];
|
|
@@ -38,32 +44,30 @@ $formID = rand(0, 100000);
|
|
|
|
|
|
<input type="hidden" name="data" value="{{json_encode($contentData)}}">
|
|
<input type="hidden" name="data" value="{{json_encode($contentData)}}">
|
|
|
|
|
|
- <div class="border p-3 my-3 bg-aliceblue">
|
|
|
|
-
|
|
|
|
- <p class="font-weight-bold mb-0">
|
|
|
|
- <label class="m-0 d-flex align-items-center">
|
|
|
|
- <span class="mr-2">Follow-up Appointment</span>
|
|
|
|
- <input type="checkbox" v-model="data['{{$sectionPro->uid}}']['next_fu']['active']">
|
|
|
|
- </label>
|
|
|
|
- </p>
|
|
|
|
-
|
|
|
|
- <label v-if="data['{{$sectionPro->uid}}']['next_fu']['active']" class="mt-3 d-flex align-items-center">
|
|
|
|
- <span class="mr-2">Follow Up Date</span>
|
|
|
|
- <input type="date" v-model="data['{{$sectionPro->uid}}']['next_fu']['date']">
|
|
|
|
- <a v-if="data['{{$sectionPro->uid}}']['next_fu']['active'] && !!data['{{$sectionPro->uid}}']['next_fu']['date']" native target="_blank" href="{{route('patients.view.calendar', ['patient' => $patient])}}" class="ml-3">
|
|
|
|
- <i class="fa fa-calendar-alt"></i>
|
|
|
|
- Patient Calendar
|
|
|
|
- </a>
|
|
|
|
|
|
+ <p class="font-weight-bold">
|
|
|
|
+ <label class="m-0 d-flex align-items-center">
|
|
|
|
+ <span class="mr-2">Follow-up Appointment</span>
|
|
|
|
+ <input type="checkbox" v-model="data['{{$sectionPro->uid}}']['next_fu']['active']">
|
|
</label>
|
|
</label>
|
|
|
|
+ </p>
|
|
|
|
+
|
|
|
|
+ <label v-if="data['{{$sectionPro->uid}}']['next_fu']['active']" class="d-flex align-items-center">
|
|
|
|
+ <span class="mr-2">Follow Up Date</span>
|
|
|
|
+ <input type="date" v-model="data['{{$sectionPro->uid}}']['next_fu']['date']">
|
|
|
|
+ <a v-if="data['{{$sectionPro->uid}}']['next_fu']['active'] && !!data['{{$sectionPro->uid}}']['next_fu']['date']" native target="_blank" href="{{route('patients.view.calendar', ['patient' => $patient])}}" class="ml-3">
|
|
|
|
+ <i class="fa fa-calendar-alt"></i>
|
|
|
|
+ Patient Calendar
|
|
|
|
+ </a>
|
|
|
|
+ </label>
|
|
|
|
|
|
- <div v-if="data['{{$sectionPro->uid}}']['next_fu']['active']" class="mt-3">
|
|
|
|
|
|
+ <div v-if="data['{{$sectionPro->uid}}']['next_fu']['active']" class="">
|
|
<div class="mb-2">
|
|
<div class="mb-2">
|
|
<span class="font-weight-bold">Next CC</span>
|
|
<span class="font-weight-bold">Next CC</span>
|
|
<a href="#" class="ml-3"
|
|
<a href="#" class="ml-3"
|
|
v-on:click.prevent="addNextCCItem()"
|
|
v-on:click.prevent="addNextCCItem()"
|
|
>+ Add</a>
|
|
>+ Add</a>
|
|
</div>
|
|
</div>
|
|
- <table class="table table-sm table-bordered mb-0 table-edit-sheet">
|
|
|
|
|
|
+ <table class="table table-sm table-bordered table-edit-sheet">
|
|
<thead>
|
|
<thead>
|
|
<tr class="bg-light">
|
|
<tr class="bg-light">
|
|
<th class="px-2 text-secondary border-bottom-0 width-30px text-center">#</th>
|
|
<th class="px-2 text-secondary border-bottom-0 width-30px text-center">#</th>
|
|
@@ -111,8 +115,6 @@ $formID = rand(0, 100000);
|
|
</table>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
- </div>
|
|
|
|
-
|
|
|
|
</div>
|
|
</div>
|
|
<script>
|
|
<script>
|
|
(function() {
|
|
(function() {
|