ソースを参照

Dashboard - show appt confirmation info with client-pro assoc notifs

Vijayakrishnan 3 年 前
コミット
f62a77216c
1 ファイル変更36 行追加0 行削除
  1. 36 0
      resources/views/app/dashboard.blade.php

+ 36 - 0
resources/views/app/dashboard.blade.php

@@ -283,6 +283,24 @@
                                                     <span class="text-secondary font-size-11">on</span>
                                                     {{friendlier_date_time($nextAppt->raw_date . ' ' . $nextAppt->raw_start_time)}}
                                                 </div>
+                                                @if($nextAppt->status === 'CREATED')
+                                                    <div class="text-warning-mellow font-weight-bold font-size-11 mt-1">
+                                                        <i class="fa fa-exclamation-triangle"></i>
+                                                        Confirmation pending
+                                                    </div>
+                                                @endif
+                                                @if($nextAppt->status === 'CONFIRMED')
+                                                    <div class="text-success font-weight-bold font-size-11 mt-1">
+                                                        <i class="fa fa-check"></i>
+                                                        Confirmed by the patient
+                                                    </div>
+                                                @endif
+                                                @if($nextAppt->status === 'REJECTED')
+                                                    <div class="text-danger font-weight-bold font-size-11 mt-1">
+                                                        <i class="fa fa-stop"></i>
+                                                        Rejected by the patient
+                                                    </div>
+                                                @endif
                                             @endif
                                         </div>
                                         <a href="#" class="ack-client-pro-change ml-3" data-uid="{{$assoc->uid}}">Stamp</a>
@@ -307,6 +325,24 @@
                                                     <span class="text-secondary font-size-11">on</span>
                                                     {{friendlier_date_time($nextAppt->raw_date . ' ' . $nextAppt->raw_start_time)}}
                                                 </div>
+                                                @if($nextAppt->status === 'CREATED')
+                                                    <div class="text-warning-mellow font-weight-bold font-size-11 mt-1">
+                                                        <i class="fa fa-exclamation-triangle"></i>
+                                                        Confirmation pending
+                                                    </div>
+                                                @endif
+                                                @if($nextAppt->status === 'CONFIRMED')
+                                                    <div class="text-success font-weight-bold font-size-11 mt-1">
+                                                        <i class="fa fa-check"></i>
+                                                        Confirmed by the patient
+                                                    </div>
+                                                @endif
+                                                @if($nextAppt->status === 'REJECTED')
+                                                    <div class="text-danger font-weight-bold font-size-11 mt-1">
+                                                        <i class="fa fa-stop"></i>
+                                                        Rejected by the patient
+                                                    </div>
+                                                @endif
                                             @endif
                                         </div>
                                         <a href="#" class="ack-client-pro-change" data-uid="{{$assoc->uid}}">Stamp</a>