@extends('web_site.account.layout') @section('account_title', trans('site.records.details_title')) @section('account_content')

{{ $record->published_at->translatedFormat('l j F Y') }} @if ($record->last_edited_at) · {{ trans('clinic.medical_records.last_edited_at') }}: {{ $record->last_edited_at->translatedFormat('j F Y') }} @endif

{{ $record->doctor->name }}

{{ $record->doctor->name }}

{{ $record->doctor->specialty?->name }} · {{ $record->booking?->clinicProfile?->name ?? $record->booking?->branch?->name }}
@if ($record->booking) @endif
@foreach (['diagnosis' => 'fa-stethoscope', 'prescription' => 'fa-prescription', 'report' => 'fa-file-alt'] as $field => $icon)

{{ trans('clinic.medical_records.'.$field) }}

{!! $record->{$field} ? nl2br(e($record->{$field})) : ''.e(trans('site.medical_file.none')).'' !!}

@endforeach @if ($record->attachment_path)

{{ trans('clinic.attachments.file') }}

@if ($record->attachment_type === 'image') {{ trans('clinic.attachments.file') }} @else {{ trans('site.records.download') }} @endif
@endif
@endsection