{{-- ======================================== SHOW VIEW resources/views/medical-reports/show.blade.php ======================================== --}} @extends('layout.master') @section('title', 'Report Details') @section('content')
@if(session('success')) @endif @if(session('error')) @endif @if($errors->any()) @endif

Medical Report Details

Patient Information

Name: {{ $report->patient_name }}

Age: {{ $report->age }} years

Email: {{ $report->email }}

Phone: {{ $report->phone_number }}

Report Type: {{ $report->report_type_name }}

Upload Date: {{ $report->created_at->format('M d, Y h:i A') }}

Report Status

Current Status: {{ $report->status_name }}

Priority Level: {{ $report->urgency_level_name }}

Analysis Fee: PKR {{ number_format($report->price, 2) }}

@if ($report->analyzed_at)

Analyzed On: {{ $report->analyzed_at->format('M d, Y h:i A') }}

@endif
@if ($report->symptoms || $report->medical_history)

Additional Information

@if ($report->symptoms)
Symptoms:

{{ $report->symptoms }}

@endif @if ($report->medical_history)
Medical History:

{{ $report->medical_history }}

@endif
@endif

Uploaded Files ({{ $report->getFileCount() }})

@foreach ($report->file_paths as $index => $filePath)
{{ basename($filePath) }}
Download
@endforeach
@if ($report->analysis_result)

Analysis Result

@if(auth()->check() && auth()->user()->isAdmin())
@csrf @method('PUT')
@error('analysis_result')
{{ $message }}
@enderror
@else
{!! nl2br(e($report->analysis_result)) !!}
@endif {{-- @if ($report->analyzer) Analyzed by: {{ $report->analyzer }} @endif --}}
@if(auth()->check() && auth()->user()->isAdmin()) @endif @else

Analysis Pending

Your medical report is currently being analyzed by our medical experts. You will receive the analysis results via email once completed.

@if ($report->status == 'analyzing')
Analysis in Progress
@endif
@endif
Upload New Report @if ($report->analysis_result) Download PDF @endif
@endsection