|
@@ -26,8 +26,14 @@ foreach ($days as $k => $day) {
|
|
}
|
|
}
|
|
|
|
|
|
?>
|
|
?>
|
|
-<p class="font-weight-bold">Care Month Matrix</p>
|
|
|
|
-<table class="table table-condensed table-sm table-bordered mt-2 mb-3">
|
|
|
|
|
|
+<div class="d-flex align-items-baseline">
|
|
|
|
+ <a class="font-weight-bold" href="#" tab-link="matrix">Care Month Matrix</a>
|
|
|
|
+ <span class="mx-2 text-secondary text-sm">|</span>
|
|
|
|
+ <a class="" href="#" tab-link="bmi-summary">BMI Management Settings</a>
|
|
|
|
+ <span class="mx-2 text-secondary text-sm">|</span>
|
|
|
|
+ <a class="" href="#" tab-link="bp-summary">BP Management Settings</a>
|
|
|
|
+</div>
|
|
|
|
+<table class="table table-condensed table-sm table-bordered my-3 cm-tab" tab-key="matrix">
|
|
<thead>
|
|
<thead>
|
|
<tr>
|
|
<tr>
|
|
<th class="px-2 text-secondary align-bottom" rowspan="2">Date</th>
|
|
<th class="px-2 text-secondary align-bottom" rowspan="2">Date</th>
|
|
@@ -251,4 +257,28 @@ foreach ($days as $k => $day) {
|
|
@endforeach
|
|
@endforeach
|
|
@endforeach
|
|
@endforeach
|
|
</tbody>
|
|
</tbody>
|
|
-</table>
|
|
|
|
|
|
+</table>
|
|
|
|
+<div class="my-3 border p-3 d-none cm-tab" tab-key="bmi-summary">
|
|
|
|
+ @include('app.patient.vitals-settings.bmi-management-summary')
|
|
|
|
+</div>
|
|
|
|
+<div class="my-3 border p-3 d-none cm-tab" tab-key="bp-summary">
|
|
|
|
+ @include('app.patient.vitals-settings.bp-management-summary')
|
|
|
|
+</div>
|
|
|
|
+
|
|
|
|
+<script>
|
|
|
|
+ (function() {
|
|
|
|
+ function init() {
|
|
|
|
+ $('a[tab-link]')
|
|
|
|
+ .off('click')
|
|
|
|
+ .on('click', function () {
|
|
|
|
+ let tab = $(this).attr('tab-link');
|
|
|
|
+ $(this).siblings().removeClass('font-weight-bold');
|
|
|
|
+ $(this).addClass('font-weight-bold');
|
|
|
|
+ $('.cm-tab').addClass('d-none');
|
|
|
|
+ $('.cm-tab[tab-key="' + tab + '"]').removeClass('d-none');
|
|
|
|
+ return false;
|
|
|
|
+ });
|
|
|
|
+ }
|
|
|
|
+ addMCInitializer('cm-matrix-{{$patient->id}}', init);
|
|
|
|
+ }).call(window);
|
|
|
|
+</script>
|