|
@@ -269,30 +269,119 @@
|
|
|
|
|
|
<!--Time-->
|
|
|
@if($viewingAs !== 'RME')
|
|
|
+ <?php $dayOfTheMonth = date('j'); ?>
|
|
|
@if($viewingAs === 'ADMIN' || $viewingAs === 'MCP')
|
|
|
+ <?php $minsBilled = round($iPatient->rm_total_time_in_seconds_by_mcp / 60); ?>
|
|
|
<td>
|
|
|
- <div class="d-flex align-items-baseline">
|
|
|
+ <div class="d-flex align-items-baseline flex-nowrap">
|
|
|
<i class="mr-1 text-sm fa fa-circle opacity-35 {{$iPatient->rm_total_time_in_seconds_by_mcp >= 1200 ? 'text-success' : 'text-danger'}}"></i>
|
|
|
<span class="text-nowrap">{{round($iPatient->rm_total_time_in_seconds_by_mcp / 60)}}:{{round($iPatient->rm_total_time_in_seconds_by_mcp % 60)}}</span>
|
|
|
- <span class="sort-data d-none">{{$iPatient->rm_total_time_in_seconds_by_mcp}}</span>
|
|
|
+ @if(date('m') == $month && date('Y') == $year && $viewingAs === 'MCP')
|
|
|
+ <?php
|
|
|
+ $showAddEntry = 0;
|
|
|
+ $expectation = 0;
|
|
|
+ ?>
|
|
|
+ @if($dayOfTheMonth >= 7 && $minsBilled < 5)
|
|
|
+ <?php
|
|
|
+ $showAddEntry = 5 - $minsBilled;
|
|
|
+ $expectation = 5;
|
|
|
+ ?>
|
|
|
+ @elseif($dayOfTheMonth >= 14 && $minsBilled < 10)
|
|
|
+ <?php
|
|
|
+ $showAddEntry = 10 - $minsBilled;
|
|
|
+ $expectation = 10;
|
|
|
+ ?>
|
|
|
+ @elseif($dayOfTheMonth >= 21 && $minsBilled < 15)
|
|
|
+ <?php
|
|
|
+ $showAddEntry = 15 - $minsBilled;
|
|
|
+ $expectation = 15;
|
|
|
+ ?>
|
|
|
+ @elseif($dayOfTheMonth >= 28 && $minsBilled < 20)
|
|
|
+ <?php
|
|
|
+ $showAddEntry = 20 - $minsBilled;
|
|
|
+ $expectation = 20;
|
|
|
+ ?>
|
|
|
+ @endif
|
|
|
+ @if($showAddEntry > 0)
|
|
|
+ <i class="ml-1 fa fa-hourglass text-danger opacity-60 text-sm"></i>
|
|
|
+ <div class="ml-1" title="Total expected billing by end of today: {{$expectation}}">
|
|
|
+ @include('app.practice-management.rpm-manager.rpm_manager_care_month_add_entry_form', [
|
|
|
+ 'right' => true,
|
|
|
+ 'defaultDate' => date('Y-m-d'),
|
|
|
+ 'cmUid' => $iPatient->care_month_uid,
|
|
|
+ 'cmStartDate' => $iPatient->care_month_start_date,
|
|
|
+ 'cmEndDate' => $iPatient->care_month_end_date,
|
|
|
+ 'defaultMins' => $showAddEntry,
|
|
|
+ 'hook' => 'refresh-' . $iPatient->care_month_uid])
|
|
|
+ </div>
|
|
|
+ @endif
|
|
|
+ @endif
|
|
|
</div>
|
|
|
</td>
|
|
|
@endif
|
|
|
@if($viewingAs === 'ADMIN' || $viewingAs === 'RMM')
|
|
|
+ <?php $minsBilled = round($iPatient->rm_total_time_in_seconds_by_rmm_pro / 60); ?>
|
|
|
<td>
|
|
|
- <div class="d-flex align-items-baseline">
|
|
|
+ <div class="d-flex align-items-baseline flex-nowrap">
|
|
|
<i class="mr-1 text-sm fa fa-circle opacity-35 {{$iPatient->rm_total_time_in_seconds_by_rmm_pro >= 1200 ? 'text-success' : 'text-danger'}}"></i>
|
|
|
<span class="text-nowrap">{{round($iPatient->rm_total_time_in_seconds_by_rmm_pro / 60)}}:{{round($iPatient->rm_total_time_in_seconds_by_rmm_pro % 60)}}</span>
|
|
|
- <span class="sort-data d-none">{{$iPatient->rm_total_time_in_seconds_by_rmm_pro}}</span>
|
|
|
+ @if(date('m') == $month && date('Y') == $year && $viewingAs === 'RMM')
|
|
|
+ <?php
|
|
|
+ $showAddEntry = 0;
|
|
|
+ $expectation = 0;
|
|
|
+ ?>
|
|
|
+ @if($dayOfTheMonth >= 7 && $minsBilled < 5)
|
|
|
+ <?php
|
|
|
+ $showAddEntry = 5 - $minsBilled;
|
|
|
+ $expectation = 5;
|
|
|
+ ?>
|
|
|
+ @elseif($dayOfTheMonth >= 14 && $minsBilled < 10)
|
|
|
+ <?php
|
|
|
+ $showAddEntry = 10 - $minsBilled;
|
|
|
+ $expectation = 10;
|
|
|
+ ?>
|
|
|
+ @elseif($dayOfTheMonth >= 21 && $minsBilled < 15)
|
|
|
+ <?php
|
|
|
+ $showAddEntry = 15 - $minsBilled;
|
|
|
+ $expectation = 15;
|
|
|
+ ?>
|
|
|
+ @elseif($dayOfTheMonth >= 28 && $minsBilled < 20)
|
|
|
+ <?php
|
|
|
+ $showAddEntry = 20 - $minsBilled;
|
|
|
+ $expectation = 20;
|
|
|
+ ?>
|
|
|
+ @endif
|
|
|
+ @if($showAddEntry > 0)
|
|
|
+ <i class="ml-1 fa fa-hourglass text-danger opacity-60 text-sm"></i>
|
|
|
+ <div class="ml-1" title="Total expected billing by end of today: {{$expectation}}">
|
|
|
+ @include('app.practice-management.rpm-manager.rpm_manager_care_month_add_entry_form', [
|
|
|
+ 'right' => true,
|
|
|
+ 'defaultDate' => date('Y-m-d'),
|
|
|
+ 'cmUid' => $iPatient->care_month_uid,
|
|
|
+ 'cmStartDate' => $iPatient->care_month_start_date,
|
|
|
+ 'cmEndDate' => $iPatient->care_month_end_date,
|
|
|
+ 'defaultMins' => $showAddEntry,
|
|
|
+ 'hook' => 'refresh-' . $iPatient->care_month_uid])
|
|
|
+ </div>
|
|
|
+ @endif
|
|
|
+ @endif
|
|
|
</div>
|
|
|
</td>
|
|
|
@endif
|
|
|
@if($viewingAs === 'ADMIN')
|
|
|
<td>
|
|
|
- <div class="d-flex align-items-baseline">
|
|
|
+ <div class="d-flex align-items-baseline flex-nowrap">
|
|
|
<i class="mr-1 text-sm fa fa-circle opacity-35 {{$iPatient->rm_total_time_in_seconds >= 1200 ? 'text-success' : 'text-danger'}}"></i>
|
|
|
<span class="text-nowrap">{{round($iPatient->rm_total_time_in_seconds / 60)}}:{{round($iPatient->rm_total_time_in_seconds % 60)}}</span>
|
|
|
- <span class="sort-data d-none">{{$iPatient->rm_total_time_in_seconds}}</span>
|
|
|
+ <div class="ml-1" title="Add Entry">
|
|
|
+ @include('app.practice-management.rpm-manager.rpm_manager_care_month_add_entry_form', [
|
|
|
+ 'right' => true,
|
|
|
+ 'defaultDate' => date('Y-m-d'),
|
|
|
+ 'cmUid' => $iPatient->care_month_uid,
|
|
|
+ 'cmStartDate' => $iPatient->care_month_start_date,
|
|
|
+ 'cmEndDate' => $iPatient->care_month_end_date,
|
|
|
+ 'hook' => 'refresh-' . $iPatient->care_month_uid])
|
|
|
+ </div>
|
|
|
</div>
|
|
|
</td>
|
|
|
@endif
|