@extends("layouts.app", ["title" => "Consultation Details"]) @section("content_body") @include("shared.partials.page-title", ["subtitle" => "Healthcare", "title" => "Consultation Details"])
| Patient | {{ $consultation->patient?->name ?? 'Unknown patient' }} |
|---|---|
| Family | {{ $consultation->patient?->family?->name ?? 'N/A' }} |
| Assigned Provider | {{ $consultation->homeVisit?->doctor?->user?->name ?? 'Unassigned' }} |
| Visit Date | {{ $consultation->homeVisit?->scheduled_at?->format('Y-m-d H:i') ?? 'N/A' }} |
| Follow-up Plan | {{ str($consultation->follow_up_plan ?? 'not specified')->headline() }} |
{{ $consultation->reason_for_admission ?? 'Not recorded.' }}
{{ $consultation->history_of_current_illness ?? 'Not recorded.' }}
{{ $consultation->clinical_notes ?? 'Not recorded.' }}
{{ $consultation->evolution_treatment ?? 'Not recorded.' }}
| Document | Description | Uploaded By | Action |
|---|---|---|---|
|
@php
$ext = pathinfo($attachment->file_name, PATHINFO_EXTENSION);
$icon = match(strtolower($ext)) {
'pdf' => 'bi-file-pdf-fill text-danger',
'jpg', 'jpeg', 'png', 'webp' => 'bi-file-image-fill text-success',
'doc', 'docx' => 'bi-file-word-fill text-primary',
'xls', 'xlsx' => 'bi-file-excel-fill text-success',
default => 'bi-file-earmark-fill text-secondary'
};
@endphp
{{ $attachment->file_name }}
{{ number_format($attachment->file_size / 1024, 1) }} KB |
{{ $attachment->description ?? 'N/A' }} | {{ $attachment->uploader->name }} {{ $attachment->created_at->format('Y-m-d H:i') }} |
|
| No diagnostic reports attached. | |||