@extends('reports.pdf.layout') @section('content')

Appointment Report

Generated {{ now()->format('d M Y H:i') }}

@foreach($appointments as $a)@endforeach
AppointmentDateTimeDoctorPatientTypeStatusPayment
{{ $a->appointment_number }}{{ $a->appointment_date?->format('Y-m-d') }}{{ $a->start_time }} - {{ $a->end_time }}{{ $a->doctor?->user?->name }}{{ $a->patient?->user?->name }}{{ ucfirst($a->consultation_type) }}{{ ucfirst($a->status) }}{{ ucfirst($a->payment_status) }}
@endsection