@php $canManage = $canConsult ?? false; @endphp

Dental imaging

Upload PA, bitewing, OPG, or clinical photos linked to teeth.

@if ($canManage)
@csrf

Teeth

@foreach (array_merge($dentalRows['upper'] ?? [], $dentalRows['lower'] ?? []) as $code) @endforeach
@endif
true, 'mt-4' => ! $canManage])> @forelse ($dentalImages as $image) @php $url = $image->attachment?->file_path ? \Illuminate\Support\Facades\Storage::disk('public')->url($image->attachment->file_path) : null; @endphp
@if ($url && str_starts_with((string) $image->attachment?->mime_type, 'image/')) {{ $image->caption ?: $image->modality }} @elseif ($url) Open file @endif

{{ $dentalModalities[$image->modality] ?? $image->modality }}

{{ $image->captured_at?->format('d M Y H:i') }} @if (! empty($image->tooth_codes)) ยท {{ implode(', ', $image->tooth_codes) }} @endif

@if ($image->caption)

{{ $image->caption }}

@endif
@if ($canManage)
@csrf
@endif
@empty

No images yet.

@endforelse