Persist admin branch filter across Patient, Pharmacy, Lab, and Bills queues.
Deploy Ladill Care / deploy (push) Successful in 57s

Admins pick a working branch once; session keeps Pharmacy Call Next and lists scoped to that site so ticket numbers no longer collide across branches.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
isaacclad
2026-07-18 05:49:24 +00:00
co-authored by Cursor
parent 88f84a4f96
commit 6cfecc1763
9 changed files with 365 additions and 55 deletions
@@ -2,6 +2,19 @@
<h1 class="text-xl font-semibold text-slate-900">Pharmacy queue</h1>
<p class="mt-1 text-sm text-slate-500">Active prescriptions awaiting dispensing</p>
@if (($canSwitchBranch ?? false) && isset($branches) && $branches->count() > 1)
<form method="GET" class="mt-4 flex flex-wrap gap-3 rounded-2xl border border-slate-200 bg-white p-4">
<select name="branch_id" class="rounded-lg border-slate-300 text-sm">
@foreach ($branches as $branch)
<option value="{{ $branch->id }}" @selected((int) $branchId === (int) $branch->id)>{{ $branch->name }}</option>
@endforeach
</select>
<button type="submit" class="btn-primary">Filter</button>
</form>
@elseif (isset($branches) && $branches->isNotEmpty())
<p class="mt-4 text-sm text-slate-500">{{ $branches->first()->name }}</p>
@endif
<div class="mt-4">
@include('care.partials.queue-ops', [
'queueIntegration' => $queueIntegration ?? null,