|
@@ -5,6 +5,7 @@
|
|
|
<h4 class="font-weight-bold mb-3 text-secondary font-size-16" id="rm-setup">RM Setup</h4>
|
|
|
|
|
|
<hr class="m-neg-4">
|
|
|
+ @if($pro->pro_type === 'ADMIN')
|
|
|
<div class="d-flex align-items-baseline mb-3">
|
|
|
<span class="width-200px">Is Eligible for RM?</span>
|
|
|
<div class="ml-3">
|
|
@@ -53,6 +54,7 @@
|
|
|
@endif
|
|
|
</div>
|
|
|
</div>
|
|
|
+ @endif
|
|
|
|
|
|
<hr class="m-neg-4">
|
|
|
<div class="d-flex align-items-baseline mb-3">
|
|
@@ -372,7 +374,6 @@
|
|
|
<span class="width-200px">Measurement days this month:</span>
|
|
|
<div class="ml-3">
|
|
|
<b>{{$careMonth->number_of_days_with_remote_measurements}} days</b>
|
|
|
- <div id="caremonth-measurements-calendar" class="width-300px mt-2 caremonth-measurements-calendar"></div>
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
@@ -396,41 +397,4 @@
|
|
|
|
|
|
@endif
|
|
|
|
|
|
- <link href='/fullcalendar-5.3.2/lib/main.css' rel='stylesheet' />
|
|
|
- <script src='/fullcalendar-5.3.2/lib/main.js'></script>
|
|
|
- <script>
|
|
|
- (function() {
|
|
|
- function formatDate(date) {
|
|
|
- let d = new Date(date),
|
|
|
- month = '' + (d.getMonth() + 1),
|
|
|
- day = '' + d.getDate(),
|
|
|
- year = d.getFullYear();
|
|
|
- if (month.length < 2)
|
|
|
- month = '0' + month;
|
|
|
- if (day.length < 2)
|
|
|
- day = '0' + day;
|
|
|
- return [year, month, day].join('-');
|
|
|
- }
|
|
|
- function init() {
|
|
|
- @if(count($datesWithMeasurements))
|
|
|
- let datesWithMeasurements = {!! json_encode($datesWithMeasurements) !!};
|
|
|
- let calendarElem = $('#caremonth-measurements-calendar');
|
|
|
- calendarElem.datepicker({
|
|
|
- dateFormat: 'yy-mm-dd',
|
|
|
- onSelect: function(_date) {},
|
|
|
- onChangeMonthYear: function(_year, _month) {},
|
|
|
- beforeShowDay: function(d) {
|
|
|
- if(datesWithMeasurements.indexOf(formatDate(d)) !== -1) {
|
|
|
- return [true, 'has-events'];
|
|
|
- }
|
|
|
- return [true, 'no-events'];
|
|
|
- }
|
|
|
- });
|
|
|
-
|
|
|
- @endif
|
|
|
- }
|
|
|
- addMCInitializer('rm-setup', init, '#rm-setup')
|
|
|
- }).call(window);
|
|
|
- </script>
|
|
|
-
|
|
|
@endsection
|