@extends ('../welcome') @section('content')
@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
Certificates ({{ $certificates->count() }})
@foreach($certificates as $file) @endforeach
Certificate Name File Type Upload Date Size Actions
{{ $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
@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) {{ URL::to('/') }}/files/{{ $file->name }} @endforeach
@if ($doctor->status == 'pending')   
@csrf @method('PUT')
  
@csrf @method('PUT')
@endif
@endsection