PHP Classes

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

Recommend this page to a friend!
  Classes of Ezhaym Najera M   Tec Medika PHP Doctor Apointment System   resources/views/livewire/appointment.blade.php   Download  
File: resources/views/livewire/appointment.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: 8 months ago
Size: 2,173 bytes
 

Contents

Class file image Download
<div class="row">
    <div class="col">
        <h4 class="mt-4 text-center">Próximas citas</h4>
        <table class="table table-striped">
            <thead>
                <tr>
                    <th>Hora</th>
                    <th>Paciente</th>
                    <th>Exp</th>
                </tr>
            </thead>
            <tbody>
                @foreach($citas as $cita)
                <tr>
                    <td>{{ $cita->hour }}:00hrs</td>
                    <td>{{ $cita->paciente->fullName }}</td>
                    <td>
                        <button class="btn btn-danger btn-sm" onclick="generatePdf({{ json_encode($cita->paciente) }})">
                            <i class="bi bi-file-pdf-fill"></i>
                        </button>
                    </td>
                </tr>
                @endforeach
                @if(count($citas) === 0)
                <tr>
                    <td colspan="3" class="text-center">No hay citas en esta fecha</td>
                </tr>
                @endif
            </tbody>
        </table>
    </div>
    <div class="col text-center">
        <div class="calendar">
            <div class="month">
                <a href="#" class="nav">
                    <i class="fas fa-angle-left"></i>
                </a>
                <div>{{ $mesTxt }} <span class="year">{{ $year }}</span></div>
                <a href="#" class="nav">
                    <i class="fas fa-angle-right"></i>
                </a>
            </div>
            <div class="days">
                <span>Lun</span>
                <span>Mar</span>
                <span>Mie</span>
                <span>Jue</span>
                <span>Vie</span>
                <span>Sab</span>
                <span>Dom</span>
            </div>
            <div class="dates">
                @for ($i = 1; $i <= $dias; $i++)
                <button wire:click="search('{{ $year . '-' . $mes . '-' . $i }}')"
                        class="{{ $dia == $i ? 'today' : '' }}">
                    <time>{{ $i }}</time>
                </button>
                @endfor
            </div>
        </div>
    </div>
</div>