@extends('dashboard.doctor.layouts.master') @section('title', $patient->name) @section('toolbar')

{{ $patient->name }}

{{ trans('doctor.common.back') }}
@endsection @section('content')
{{ trans('doctor.patients.email') }}
{{ $patient->email ?: trans('doctor.common.not_available') }}
{{ trans('doctor.patients.phone') }}
{{ $patient->phone ?: trans('doctor.common.not_available') }}
@if($profile)
{{ trans('doctor.patients.date_of_birth') }}
{{ $profile->date_of_birth?->format('Y-m-d') ?: trans('doctor.common.not_available') }}
{{ trans('doctor.patients.gender') }}
{{ $profile->gender ?: trans('doctor.common.not_available') }}
@endif
@if($profile)

{{ trans('doctor.patients.medical_history') }}

@foreach($conditionOptions as $conditionOption) @if(!empty($profile->medical_history[$conditionOption->code] ?? false)) {{ $conditionOption->name }} @endif @endforeach
@if(!empty($profile->medical_history['other'] ?? null))

{{ trans('clinic.patient_profile.other') }}: {{ $profile->medical_history['other'] }}

@endif @if(!empty($profile->surgical_history['had_surgery'] ?? false))

{{ trans('clinic.patient_profile.surgical_history') }}: {{ $profile->surgical_history['type'] ?? '' }} — {{ $profile->surgical_history['hospital'] ?? '' }} ({{ $profile->surgical_history['date'] ?? '' }})

@endif @if($profile->allergy_type)

{{ trans('clinic.patient_profile.allergies') }}: {{ trans('clinic.patient_profile.allergy_types.'.$profile->allergy_type) }} — {{ $profile->allergy_substance }} ({{ trans('clinic.patient_profile.severities.'.$profile->allergy_severity) }})

@endif
@endif

{{ trans('clinic.patient_files.title') }}

@forelse($attachments as $attachment) @empty
{{ trans('clinic.patient_files.none') }}
@endforelse

{{ trans('doctor.schedule.title') }}

@foreach($bookings as $booking) @endforeach
{{ trans('doctor.schedule.date') }} {{ trans('doctor.schedule.branch') }} {{ trans('doctor.schedule.status') }} {{ trans('clinic.common.actions') }}
{{ $booking->scheduled_at->format('Y-m-d H:i') }} {{ $booking->branch->name }} @php $statusBadge = match($booking->status) { 'pending' => 'warning', 'confirmed' => 'success', 'completed' => 'info', 'cancelled' => 'danger', default => 'secondary', }; @endphp {{ trans('doctor.schedule.statuses.'.$booking->status) }} {{ trans('doctor.visits.open') }}
@endsection