Files
ladill-care/resources/views/care/partials/queue-ops.blade.php
T
isaaccladandCursor e73b39b678
Deploy Ladill Care / deploy (push) Successful in 1m40s
Route Care tickets to per-staff service points instead of shared branch queues.
Provision one consultation point per doctor (room + identity) and role-based
points for pharmacy, lab, billing, and triage. Fixed-doctor appointments and
walk-ins issue only to the assigned point; Call next respects that assignment
and flags unresolved patients rather than random routing.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-17 17:22:14 +00:00

27 lines
1.1 KiB
PHP

{{-- Inline Queue ops when Care↔Queue integration is enabled (not a bolted-on Service counter). --}}
@php
$qi = $queueIntegration ?? null;
$callNextRoute = $queueCallNextRoute ?? null;
$callNextParams = $queueCallNextParams ?? [];
@endphp
@if (! empty($qi['enabled']) && $callNextRoute)
<div class="flex flex-wrap items-center justify-between gap-3 rounded-xl border border-sky-100 bg-sky-50/70 px-4 py-3">
<div>
<p class="text-xs font-semibold uppercase tracking-wide text-sky-700">Queue</p>
<p class="text-sm text-slate-600">Call next operates on your assigned service point only tickets routed to other rooms or desks stay there.</p>
</div>
<form method="POST" action="{{ route($callNextRoute, $callNextParams) }}">
@csrf
@foreach ($callNextParams as $key => $value)
@if (is_scalar($value))
<input type="hidden" name="{{ $key }}" value="{{ $value }}">
@endif
@endforeach
@if (! empty($branchId))
<input type="hidden" name="branch_id" value="{{ $branchId }}">
@endif
<button type="submit" class="btn-primary text-sm">Call next</button>
</form>
</div>
@endif