@extends('layouts.app') @section('title', 'Test — '.$test->name) @section('actions') Edit @endsection @section('content')
{{ $test->name }}

{{ $test->description ?? 'No description.' }}

@if($test->hasSample()) @php $ext = strtolower(pathinfo($test->sample_path, PATHINFO_EXTENSION)); @endphp
Normal / Sample Report
@if($ext === 'pdf') Open PDF Sample @else sample report @endif @else

No sample report uploaded.

@endif
Patients Suggested This Test
@forelse($test->patientTests as $pt) @empty @endforelse
PatientSuggested DateNotes
{{ $pt->patient->name ?? '—' }} {{ $pt->suggested_date->format('d M Y') }} {{ $pt->notes ?? '—' }}
Not suggested to any patient yet.
@endsection