Forráskód Böngészése

Moe to send confirmation SMS

Vijayakrishnan 4 éve
szülő
commit
5c013ef29e

+ 16 - 0
resources/views/app/patient/partials/appointments.blade.php

@@ -49,6 +49,22 @@
                                 </div>
                             </form>
                         </div>
+                        @if($appointment->status === 'CREATED')
+                            <div moe class="ml-2">
+                                <a href="#" start show class="text-sm font-weight-bold">Req. Confirm</a>
+                                <form url="/api/appointment/sendConfirmationRequestViaSms">
+                                    <input type="hidden" name="uid" value="{{ $appointment->uid }}">
+                                    <div class="mb-2">
+                                        <label for="" class="text-sm text-secondary mb-1">Cell Number</label>
+                                        <input type="text" class="form-control form-control-sm" name="toSmsNumber" value="{{$patient->cell_number}}" required>
+                                    </div>
+                                    <div>
+                                        <button submit class="btn btn-sm btn-primary mr-1">Update</button>
+                                        <button cancel class="btn btn-sm btn-default border">Cancel</button>
+                                    </div>
+                                </form>
+                            </div>
+                        @endif
                         <span class="text-sm ml-2">{{ $appointment->title ? $appointment->title : '' }}</span>
                         @if($appointment->title && $appointment->description)<span class="text-secondary mx-1">/</span>@endif
                         <span class="text-sm">{{ $appointment->description ? $appointment->description : '' }}</span>