Files
ladill-care/resources/views/care/partials/queue-ops.blade.php
T
isaaccladandCursor 86d79b5099
Deploy Ladill Care / deploy (push) Successful in 1m2s
Restore Care queue FIFO after demo skip left tickets Unassigned.
Provision one branch/context at a time instead of the whole org, fall back to a desk when doctor counters are catching up, sync pharmacy tickets in Care list order on page load, and seed waiting_at/queue_position for demos.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-17 23:05:42 +00:00

33 lines
1.3 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">
@if (($qi['routing_mode'] ?? null) === 'shared_pool')
Call next takes the next waiting patient in line for this queue (shared pool).
@else
Call next operates on your assigned service point only tickets routed to other rooms or desks stay there.
@endif
</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