|
@@ -25,28 +25,38 @@
|
|
|
</p>
|
|
|
</div>
|
|
|
|
|
|
- <div class="form-group">
|
|
|
- <p>Please confirm your appointment</p>
|
|
|
- </div>
|
|
|
+ @if($appointment->status === 'CREATED')
|
|
|
|
|
|
- <div class="form-group">
|
|
|
- <div class="check d-flex align-items-center mb-2">
|
|
|
- <input type="radio" required name="decision" value="ACCEPT" id="appointment_confirmation_accept" class="check-input my-0 mr-2">
|
|
|
- <label for="appointment_confirmation_accept" class="check-label my-0">Accept - <b>I confirm my availability at the above mentioned date/time</b></label>
|
|
|
+ <div class="form-group">
|
|
|
+ <p>Please confirm your appointment</p>
|
|
|
</div>
|
|
|
- <div class="check d-flex align-items-center">
|
|
|
- <input type="radio" required name="decision" value="REJECT" id="appointment_confirmation_reject" class="check-input my-0 mr-2">
|
|
|
- <label for="appointment_confirmation_reject" class="check-label my-0">Reject - <b>I do not want an appointment at the above mentioned date/time</b></label>
|
|
|
+
|
|
|
+ <div class="form-group">
|
|
|
+ <div class="check d-flex align-items-center mb-2">
|
|
|
+ <input type="radio" required name="decision" value="ACCEPT" id="appointment_confirmation_accept" class="check-input my-0 mr-2">
|
|
|
+ <label for="appointment_confirmation_accept" class="check-label my-0">Accept - <b>I confirm my availability at the above mentioned date/time</b></label>
|
|
|
+ </div>
|
|
|
+ <div class="check d-flex align-items-center">
|
|
|
+ <input type="radio" required name="decision" value="REJECT" id="appointment_confirmation_reject" class="check-input my-0 mr-2">
|
|
|
+ <label for="appointment_confirmation_reject" class="check-label my-0">Reject - <b>I do not want an appointment at the above mentioned date/time</b></label>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
- </div>
|
|
|
|
|
|
- <div class="form-group">
|
|
|
- <textarea name="memo" class="form-control form-control-sm" placeholder="Any additional information / reason in case you are rejecting the appointment"></textarea>
|
|
|
- </div>
|
|
|
+ <div class="form-group">
|
|
|
+ <textarea name="memo" class="form-control form-control-sm" placeholder="Any additional information / reason in case you are rejecting the appointment"></textarea>
|
|
|
+ </div>
|
|
|
|
|
|
- <div class="form-group">
|
|
|
- <button class="btn btn-primary">Submit</button>
|
|
|
- </div>
|
|
|
+ <div class="form-group">
|
|
|
+ <button class="btn btn-primary">Submit</button>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ @else
|
|
|
+
|
|
|
+ @foreach($appointment->confirmationDecisions as $decision)
|
|
|
+ <div class="mb-2"><b>{{$decision->accepted_or_rejected}}</b> on <b>{{friendlier_date_time($decision->created_at)}}</b></div>
|
|
|
+ @endforeach
|
|
|
+
|
|
|
+ @endif
|
|
|
|
|
|
</form>
|
|
|
@endif
|