|
@@ -0,0 +1,29 @@
|
|
|
|
+<div class="{{ !@$noMinHeight ? 'min-height-300px' : ''}} fu-appt-container">
|
|
|
|
+ <div class="d-flex align-items-center mb-2">
|
|
|
|
+ <p class="font-weight-bold text-secondary my-0 mr-2">Would you like to book a follow-up Appointment?</p>
|
|
|
|
+ <input type="checkbox" toggle class="check-book-fu-appt" {{$note->is_follow_up_needed ? 'checked disabled' : ''}} {{is_null($note->is_follow_up_needed) ? 'not-set' : '' }}>
|
|
|
|
+ </div>
|
|
|
|
+ @if($note->is_follow_up_needed === true)
|
|
|
|
+ @if(!$note->follow_up_appointment_id)
|
|
|
|
+ Follow up appointment marked as needed but <b>not booked yet!</b>
|
|
|
|
+ @else
|
|
|
|
+ Follow up appointment on <b>{{$note->followUpAppointment ? friendly_date($note->followUpAppointment->raw_date) : '-'}}</b>
|
|
|
|
+ <span class="text-sm">(Status: {{$note->followUpAppointment ? $note->followUpAppointment->status : '-'}})</span>
|
|
|
|
+ @endif
|
|
|
|
+ @else
|
|
|
|
+ <div moe class="no-fu-memo-form">
|
|
|
|
+ <form show url="/api/note/updateFollowUpStatus" class="d-block">
|
|
|
|
+ <input type="hidden" name="uid" value="{{$note->uid}}">
|
|
|
|
+ <input type="hidden" name="isFollowUpNeeded" value="0">
|
|
|
|
+ <div class="d-flex align-items-baseline mb-2">
|
|
|
|
+ <span class="text-nowrap mr-2">Reason for not booking:</span>
|
|
|
|
+ <input type="text" class="form-control form-control-sm width-300px no-fu-memo" name="followUpNotNeededMemo" value="{{$note->follow_up_not_needed_memo}}" required>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="mb-0">
|
|
|
|
+ <button class="btn btn-primary btn-sm mr-1">Submit</button>
|
|
|
|
+ <button class="btn btn-default border bg-white btn-sm">Reset</button>
|
|
|
|
+ </div>
|
|
|
|
+ </form>
|
|
|
|
+ </div>
|
|
|
|
+ @endif
|
|
|
|
+</div>
|