{{-- Blok hasil radiologi untuk surat konsultasi --}}
HASIL PEMERIKSAAN RADIOLOGI
@if ($letter->examination_type) @endif
Jenis Pemeriksaan: {{ $letter->examination_type }}
@if ($letter->findings)
TEMUAN RADIOLOGI:
@if ($letter->usesFormattedFindings())
{!! $letter->formattedFindings() !!}
@else

{{ $letter->findings }}

@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 @if ($letter->image_paths && count($letter->image_paths) > 0)
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) Hasil Radiologi @else

Gambar radiologi tidak dapat ditampilkan. Periksa berkas hasil pemeriksaan.

@endif @endforeach
@endif