{{-- Action buttons for consultation show (desktop sticky + mobile sheet). --}} @php $canEdit = ! $isCompleted && ($canManage || $canVitals); $btn = 'flex w-full items-center justify-center rounded-xl px-3 py-2.5 text-sm font-semibold transition'; $btnPrimary = $btn.' bg-indigo-600 text-white hover:bg-indigo-700'; $btnSecondary = $btn.' border border-slate-200 bg-white text-slate-800 hover:bg-slate-50'; $btnAccent = $btn.' border border-sky-200 bg-sky-50 text-sky-900 hover:bg-sky-100'; $appointment = $consultation->appointment; $ticketCalled = $appointment && $appointment->queue_ticket_status === 'called'; @endphp @include('care.partials.queue-ops', [ 'queueIntegration' => $queueIntegration ?? null, 'queueCallNextRoute' => 'care.queue.call-next', 'queueCallNextParams' => [], 'branchId' => $queueBranchId ?? null, 'currentAppointmentId' => $appointment?->id, 'variant' => 'button', ]) @if ($ticketCalled && $appointment)
@csrf
@endif @if ($canManage && ! $isCompleted) @endif @if ($canEdit) @if ($canManage && ($canViewAssessments ?? false)) @endif @endif @if ($canPrescribe) @endif @if ($canRequestInvestigations && $investigationTypes->isNotEmpty() && ! $isCompleted) @endif @if ($canGenerateBill && $isCompleted && $consultation->visit)
@csrf
@endif @if (! empty($canAccessPatientQueue)) Back to queue @endif