@php use Carbon\Carbon; @endphp
|
|
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' }} | @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{{ $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 |