|
@@ -285,7 +285,38 @@
|
|
|
</section>
|
|
|
<section>
|
|
|
{{--<div><label>Allergies:</label> Grass, Pollen, Latex</div>--}}
|
|
|
- <div><label>Next Appt:</label> {{$patient->next_mcp_appointment ? friendly_date_time($patient->next_mcp_appointment, false) : '-'}}</div>
|
|
|
+ <div>
|
|
|
+ <label>Next Appt:</label>
|
|
|
+ {{$patient->next_mcp_appointment ? friendly_date_time($patient->next_mcp_appointment, $patient->is_next_appointment_time_specific) : '-'}}
|
|
|
+ <span moe class="ml-1">
|
|
|
+ <a start show><i class="fa fa-edit"></i></a>
|
|
|
+ <form url="/api/client/setNextAppointment" class="mcp-theme-1">
|
|
|
+ <input type="hidden" name="uid" value="{{$patient->uid}}">
|
|
|
+ <div class="mb-2">
|
|
|
+ <label class="text-secondary text-sm">Date</label>
|
|
|
+ <input type="date" name="date" min="{{ date('Y-m-d') }}" value="{{ $patient->next_mcp_appointment ? explode(" ", $patient->next_mcp_appointment)[0] : date('Y-m-d') }}" class="form-control form-control-sm">
|
|
|
+ </div>
|
|
|
+ <div class="my-1 py-1">
|
|
|
+ <label class="text-dar d-flex align-items-center">
|
|
|
+ <span>Is time specific</span>
|
|
|
+ <input type="checkbox" name="isTimeSpecific" class="my-0 ml-1"
|
|
|
+ {{ $patient->is_next_appointment_time_specific ? 'checked' : '' }}
|
|
|
+ onchange="enableTimeSpecificFields(this.checked, '', 'next-appt-time-range')">
|
|
|
+ </label>
|
|
|
+ </div>
|
|
|
+ <div class="mb-2">
|
|
|
+ <label class="text-secondary text-sm">Time</label>
|
|
|
+ <input type="time" name="time" class="form-control form-control-sm next-appt-time-range"
|
|
|
+ value="{{ $patient->is_next_appointment_time_specific && $patient->next_mcp_appointment ? explode(" ", $patient->next_mcp_appointment)[1] : '' }}"
|
|
|
+ {{ $patient->is_next_appointment_time_specific ? '' : 'disabled' }}>
|
|
|
+ </div>
|
|
|
+ <div>
|
|
|
+ <button submit class="btn btn-sm btn-primary mr-1">Submit</button>
|
|
|
+ <button cancel class="btn btn-sm btn-default border">Cancel</button>
|
|
|
+ </div>
|
|
|
+ </form>
|
|
|
+ </span>
|
|
|
+ </div>
|
|
|
<div>
|
|
|
<label>CM:</label> {{ $patient->is_enrolled_in_cm === 'YES' ? 'Yes' : 'No' }}
|
|
|
<label class="ml-2">RM:</label> {{ $patient->is_enrolled_in_rm === 'YES' ? 'Yes' : 'No' }}
|
|
@@ -336,36 +367,6 @@
|
|
|
</form>
|
|
|
</div> */ ?>
|
|
|
<button onclick="return openInRHS('/pro/meet/{{ $patient->uid }}')">Video</button>
|
|
|
- {{--<div moe relative>
|
|
|
- <a start show>
|
|
|
- <button>+ Appointment</button>
|
|
|
- </a>
|
|
|
- <form url="/api/client/setNextAppointment" right class="mcp-theme-1">
|
|
|
- <input type="hidden" name="uid" value="{{$patient->uid}}">
|
|
|
-
|
|
|
- <div class="mb-2">
|
|
|
- <label class="text-secondary text-sm">Date</label>
|
|
|
- <input type="date" name="date" min="{{ date('Y-m-d') }}" class="form-control form-control-sm">
|
|
|
- </div>
|
|
|
-
|
|
|
- <div class="my-1 py-1">
|
|
|
- <label class="text-dar d-flex align-items-center">
|
|
|
- <span>Is time specific</span>
|
|
|
- <input type="checkbox" name="isTimeSpecific" class="my-0 ml-1"
|
|
|
- onchange="enableTimeSpecificFields(this.checked, '', 'next-appt-time-range')">
|
|
|
- </label>
|
|
|
- </div>
|
|
|
-
|
|
|
- <div class="mb-2">
|
|
|
- <label class="text-secondary text-sm">Time</label>
|
|
|
- <input type="time" name="time" class="form-control form-control-sm next-appt-time-range" disabled>
|
|
|
- </div>
|
|
|
- <div>
|
|
|
- <button submit class="btn btn-sm btn-primary mr-1">Submit</button>
|
|
|
- <button cancel class="btn btn-sm btn-default border">Cancel</button>
|
|
|
- </div>
|
|
|
- </form>
|
|
|
- </div>--}}
|
|
|
</section>
|
|
|
</div>
|
|
|
</div></div> <!-- z -->
|