@extends('layouts.app') @section('title', 'Tickets de Consultation') @section('content')

Tickets de Consultation

Nouveau Ticket
@if($tickets->count() > 0)
@foreach($tickets as $ticket) @endforeach
N° Ticket Patient Médecin Date RDV Heure Statut Paiement Actions
{{ $ticket->ticket_number }} {{ $ticket->patient->full_name }} Dr. {{ $ticket->doctor->full_name }} {{ $ticket->appointment_date->format('d/m/Y') }} {{ $ticket->appointment_time->format('H:i') }} @php $badgeClass = match($ticket->status) { 'pending' => 'bg-warning', 'confirmed' => 'bg-info', 'completed' => 'bg-success', 'cancelled' => 'bg-danger', default => 'bg-secondary' }; $statusText = match($ticket->status) { 'pending' => 'En attente', 'confirmed' => 'Confirmé', 'completed' => 'Terminé', 'cancelled' => 'Annulé', default => $ticket->status }; @endphp {{ $statusText }} @if($ticket->is_paid) Payé @else Non payé @endif
@if(!$ticket->is_paid)
@csrf @method('PATCH')
@endif
{{ $tickets->links() }}
@else
Aucun ticket de consultation

Commencez par créer votre premier ticket de consultation.

Créer un ticket
@endif
@endsection