{{-- DTHospital - a single doctor, with their recent appointment list. Copyright (c) ICT Innovations Part of DTHospital Licensed under the GNU General Public License v3.0. --}} @extends('layouts.master') @section('style') @stop @section('content') @if (Session::get('success'))
{{ Session::get('success') }}
@endif

{{ $doctor->name }}

@if (\App\Support\Permissions::allows('doctor_schedule')) Booking slots@endif Edit
@if ($doctor->img_url)

{{ $doctor->name }}

@endif
Department{{ $doctor->department ?: 'Not recorded' }}
Qualification{{ $doctor->profile ?: 'Not recorded' }}
Phone{{ $doctor->phone ?: 'Not recorded' }}
Email{{ $doctor->email ?: 'Not recorded' }}
Address{{ $doctor->address ?: 'Not recorded' }}
Book an appointment Back to list

Recent appointments

@if ($appointments->isEmpty())

Nothing booked with this doctor yet.

@else @foreach ($appointments as $appointment) @php($patient = $patients[$appointment->patient] ?? null) @endforeach
Date Time Patient Status
{{ $appointment->date }} {{ $appointment->time_slot }} @if ($patient) {{ $patient->name }} @else Removed @endif {{ ucfirst($appointment->status) }}

Showing the {{ $appointments->count() }} most recent.

@endif
@stop @section('script') @stop