@extends('layouts.app') @section('title', 'Doctor') @section('content')

{{ $doctor->user->name ?? '-' }}

{{ $doctor->department->name ?? '-' }} ยท {{ $doctor->license_no }}
Edit
@csrf @method('DELETE')
Profile
Specialization
{{ $doctor->specialization ?? '-' }}
Consultation fee
{{ $doctor->consultation_fee }}
Default slot (min)
{{ $doctor->default_duration_minutes }}
Active
{{ $doctor->is_active ? 'Yes' : 'No' }}
Availability (Schedules)
@csrf
@foreach ($doctor->schedules as $s) @endforeach
DayHoursSlot
{{ ['Sun','Mon','Tue','Wed','Thu','Fri','Sat'][$s->day_of_week] ?? $s->day_of_week }} {{ $s->start_time }} - {{ $s->end_time }} {{ $s->slot_minutes }}m
@csrf @method('DELETE')
Time Off
@csrf
@foreach ($doctor->timeOffs as $t) @endforeach
StartEndReason
{{ $t->start_at }} {{ $t->end_at }} {{ $t->reason }}
@csrf @method('DELETE')
@endsection