{{-- Blok hasil spirometri untuk surat konsultasi --}}
HASIL PEMERIKSAAN SPIROMETRI
@if ($letter->spirometry_file_path)
LAMPIRAN GAMBAR:
@php $imagePath = $letter->spirometry_file_path; $normalizedPath = ltrim(preg_replace('/^storage\//', '', $imagePath), '/'); $fullPath = storage_path('app/public/' . $normalizedPath); $alternativePath = public_path('storage/' . $normalizedPath); $resolvedPath = null; if (file_exists($fullPath)) { $resolvedPath = $fullPath; } elseif (file_exists($alternativePath)) { $resolvedPath = $alternativePath; } $imageUri = \App\Helpers\PdfImageHelper::dataUri($resolvedPath); @endphp @if ($imageUri) Hasil Spirometri @else

Gambar spirometri tidak dapat ditampilkan. Periksa berkas hasil pemeriksaan.

@endif
@endif @if ($letter->interpretation)
INTERPRETASI:
@if ($letter->usesFormattedInterpretation())
{!! $letter->formattedInterpretation() !!}
@else

{{ $letter->interpretation }}

@endif
@endif @if ($letter->conclusion)
KESIMPULAN:
@if ($letter->usesFormattedConclusion())
{!! $letter->formattedConclusion() !!}
@else

{{ $letter->conclusion }}

@endif
@endif @if ($letter->recommendation)
ANJURAN:
@if ($letter->usesFormattedRecommendation())
{!! $letter->formattedRecommendation() !!}
@else

{{ $letter->recommendation }}

@endif
@endif