PHP Classes

File: resources/views/livewire/appointment-new.blade.php

Recommend this page to a friend!
  Classes of Ezhaym Najera M   Tec Medika PHP Doctor Apointment System   resources/views/livewire/appointment-new.blade.php   Download  
File: resources/views/livewire/appointment-new.blade.php
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary script
Class: Tec Medika PHP Doctor Apointment System
Manage the appointments of patient with doctors
Author: By
Last change:
Date: 7 months ago
Size: 1,765 bytes
 

Contents

Class file image Download
<div class="row mt-5">
    <div class="col col-6 mx-auto">
        <div class="row">
            <div class="col col-12 text-center">
                <h3>Paciente: {{ $paciente->fullName }}</h3>
            </div>
            <div class="col col-12 text-center mt-3">
                <table class="table table-striped">
                    <thead>
                    <tr class="text-center">
                        <th>Fecha</th>
                        <th>Hora</th>
                    </tr>
                    </thead>
                    <tbody>
                    @foreach($citas as $cita)
                    <tr class="text-center">
                        <td>{{ getSpanishDate($cita->date) }}</td>
                        <td>{{ $cita->hour }}:00hr</td>
                    </tr>
                    @endforeach
                    </tbody>
                </table>
            </div>
            <form wire:submit.prevent="save" class="col col-12 input-group mt-3">
                <input type="date" class="form-control" wire:model="form.date">
                <input type="number" class="form-control" wire:model="form.hour" placeholder="0-23">
                <button class="btn btn-primary">Guardar</button>
            </form>
            <!-- ALERT -->
            @if(session('message'))
                <div class="col col-12 mt-3">
                    {!! session('message') !!}
                </div>
            @endif
            <!----------------->
            <div class="col col-12">
                @error('form.date') <span class="text-danger">{{ $message }}</span> @enderror <br>
                @error('form.hour') <span class="text-danger">{{ $message }}</span> @enderror
            </div>
        </div>
    </div>
</div>