@php use Carbon\Carbon; @endphp @php $i=1; if($appointment->currentPage()>1){ $page=$appointment->currentPage()-1; $i=$page*$appointment->perPage(); $i++; } @endphp @foreach($appointment as $key => $appointment_res) @php $datetime = Carbon::parse($appointment_res->date_of_appointment . ' ' . $appointment_res->time_of_appointment); $formatted = $datetime->format('d-m-Y h:i A'); // 19-03-2026 11:36 AM @endphp @php $i++; @endphp @endforeach
Name Phone Department Doctor Speciality Date Message Download
(Medical Report)
Actions
{{ $appointment_res->title }} {{ $appointment_res->firstname }} {{ $appointment_res->lastname }} {{ $appointment_res->phone }} {{ $appointment_res->department->name ?? 'N/A' }} {{ $appointment_res->doctor->name ?? 'N/A' }} {{ $appointment_res->specialty->name ?? 'N/A' }}{{ $formatted }} {{ $appointment_res->specialty->message ?? 'N/A' }} @php $filePath = 'uploads/gallery/' . $appointment_res->filename; @endphp @if(!empty($appointment_res->filename) && Storage::disk('public')->exists($filePath)) {{-- Image Preview --}}
{{-- Download Link --}} Download @else No File @endif
{{ $appointment->links('vendor.pagination.custom') }}