-
Conditions
-
- @foreach ($dentalConditions as $value => $label)
-
- @endforeach
+
+
+
-
-
-
-
-
-
-
-
-
+
+
Surfaces
+
+ @foreach ($dentalSurfaces as $surface)
+
+ @endforeach
+
+
+
+
Conditions
+
+ @foreach ($dentalConditions as $value => $label)
+
+ @endforeach
+
+
+
+
+
+
+
+
+
+
+ @else
+
+
+
- Selected tooth
+ - {{ $selected }}
+
+
+
- Status
+ - {{ ($dentalStatuses ?? [])[$selectedData['status'] ?? 'present'] ?? ($selectedData['status'] ?? '—') }}
+
+
+
- Surfaces
+ - {{ ! empty($selectedData['surfaces']) ? implode(', ', $selectedData['surfaces']) : '—' }}
+
+
+
- Conditions
+ -
+ @php
+ $conditionLabels = collect($selectedData['conditions'] ?? [])
+ ->map(fn ($c) => ($dentalConditions ?? [])[$c] ?? $c)
+ ->filter()
+ ->all();
+ @endphp
+ {{ $conditionLabels !== [] ? implode(', ', $conditionLabels) : '—' }}
+
+
+
+
- Notes
+ - {{ $selectedData['notes'] ?: '—' }}
+
+
+ @endif
diff --git a/resources/views/care/specialty/dentistry/workspace-overview.blade.php b/resources/views/care/specialty/dentistry/workspace-overview.blade.php
index 7272d3f..b600f9f 100644
--- a/resources/views/care/specialty/dentistry/workspace-overview.blade.php
+++ b/resources/views/care/specialty/dentistry/workspace-overview.blade.php
@@ -2,6 +2,7 @@
$plan = $dentalPlan;
$openItems = $plan?->items?->whereIn('status', ['proposed', 'accepted']) ?? collect();
$currentStage = $workspaceVisit->specialty_stage;
+ $canManage = $canManageSpecialty ?? true;
$stageFlow = [
'waiting' => ['next' => 'chair', 'label' => 'Seat at chair'],
'chair' => ['next' => 'procedure', 'label' => 'Start procedure'],
@@ -26,20 +27,33 @@
@foreach (['waiting', 'chair', 'procedure', 'recovery', 'completed'] as $stageCode)
-
+ @else
+
$currentStage === $stageCode,
- 'border border-slate-200 bg-white text-slate-700 hover:bg-slate-50' => $currentStage !== $stageCode,
- ])>
+ 'border border-slate-200 bg-white text-slate-400' => $currentStage !== $stageCode,
+ ])
+ @if ($currentStage !== $stageCode) aria-disabled="true" title="View-only access" @endif
+ >
{{ ucfirst($stageCode) }}
-
-
+
+ @endif
@endforeach
- @if ($currentStage && isset($stageFlow[$currentStage]))
+ @if ($canManage && $currentStage && isset($stageFlow[$currentStage]))
- @if (! in_array($item->status, ['done', 'cancelled'], true))
+ @if ($canManage && ! in_array($item->status, ['done', 'cancelled'], true))
- @if (in_array($recall->status, ['scheduled', 'due'], true))
+ @if ($canManage && in_array($recall->status, ['scheduled', 'due'], true))