@extends('layouts.doctor') @section('title', 'My Profile') @section('header', 'Professional Profile') @section('content')
@if(session('status'))
{{ session('status') }}
@endif
@if($doctor->photo_path) @else
@endif

{{ $doctor->name }}

ID: {{ $doctor->doctor_code }} {{ $doctor->designation->name }} {{ $doctor->department->name }}
@foreach($doctor->qualifications as $qual) {{ $qual->name }} @endforeach
@if($doctor->specialities->count() > 0)

Core Specialities

@foreach($doctor->specialities as $spec) {{ $spec->name }} @endforeach
@endif

Practice Exp.

{{ $doctor->total_experience }}

Joined Branch

{{ $doctor->joining_date ? $doctor->joining_date->format('M d, Y') : 'N/A' }}

{{ $doctor->email }}
{{ $doctor->phone }}

Clinical Biography

{!! $doctor->details ?: 'No clinical biography provided.' !!}
@if($doctor->experiences->count() > 0)

Clinical History & Tenure

@foreach($doctor->experiences as $exp)
{{ $exp->hospital_name }}
{{ $exp->address }}
@if($exp->reason_for_leaving)
Note: {{ $exp->reason_for_leaving }}
@endif @if($exp->salary_proof_path) @endif
@endforeach
@endif
@endsection