@php use Illuminate\Support\Str; @endphp
@php
$certificates = $doctor->getMedia($doctor->phone)->filter(function ($file) {
return !Str::startsWith($file->mime_type, 'image/');
});
@endphp
@if($certificates->count() > 0)
Doctor Certificates
| Certificate Name |
File Type |
Upload Date |
Size |
Actions |
@foreach($certificates as $file)
| {{ $file->name }} |
{{ $file->mime_type ?? 'Unknown' }}
|
{{ $file->created_at ? $file->created_at->format('Y-m-d H:i') : 'N/A' }} |
{{ $file->size ? number_format($file->size / 1024, 2) . ' KB' : 'N/A' }} |
Download
View
|
@endforeach
@endif
@if($doctor->clinics && $doctor->clinics->count() > 0)
@foreach($doctor->clinics as $clinic)
{{ $clinic->name }}
Address: {{ $clinic->address ?? 'N/A' }}
Phone: {{ $clinic->phone ?? 'N/A' }}
@php
$am = json_decode($clinic->pivot->am, true);
$pm = json_decode($clinic->pivot->pm, true);
@endphp
AM Schedule: {{ $am['from'] ?? 'N/A' }} - {{ $am['to'] ?? 'N/A' }}
PM Schedule: {{ $pm['from'] ?? 'N/A' }} - {{ $pm['to'] ?? 'N/A' }}
@endforeach
@endif
@foreach ($doctor->files as $file)
 }}/files/{{ $file->name }})
@endforeach
@if ($doctor->status == 'pending')
@endif