| Jenis Pemeriksaan: | {{ $letter->examination_type }} |
TEMUAN RADIOLOGI:
@if ($letter->usesFormattedFindings())
{!! $letter->formattedFindings() !!}
@else
{{ $letter->findings }}
@endifKESIMPULAN:
@if ($letter->usesFormattedConclusion())
{!! $letter->formattedConclusion() !!}
@else
{{ $letter->conclusion }}
@endifANJURAN:
@if ($letter->usesFormattedRecommendation())
{!! $letter->formattedRecommendation() !!}
@else
{{ $letter->recommendation }}
@endif
LAMPIRAN GAMBAR:
@foreach ($letter->image_paths as $imagePath)
@php
$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)
Gambar radiologi tidak dapat ditampilkan. Periksa berkas hasil pemeriksaan.
@endif @endforeach