Deploy Ladill Care / deploy (push) Successful in 1m2s
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>
33 lines
1.3 KiB
PHP
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
|