Faster voice announcements, Care/Frontdesk API, and console UI polish.
Deploy Ladill Queue / deploy (push) Successful in 28s

Poll displays every 1.2s with client-side TTS ack; expose service API for sibling apps; redesign tickets, counters, and staff console.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
isaacclad
2026-06-29 21:51:13 +00:00
co-authored by Cursor
parent 051372672b
commit bc6bf0a07c
22 changed files with 813 additions and 140 deletions
+20 -1
View File
@@ -36,9 +36,28 @@ class CounterController extends Controller
{
$this->authorizeAbility($request, 'counters.view');
$this->authorizeOwner($request, $counter);
$owner = $this->ownerRef($request);
$counter->load(['branch', 'serviceQueues']);
return view('qms.counters.show', compact('counter'));
$currentTicket = \App\Models\Ticket::owned($owner)
->where('counter_id', $counter->id)
->whereIn('status', ['called', 'serving', 'on_hold'])
->with('serviceQueue')
->latest('called_at')
->first();
$waitingCounts = $counter->serviceQueues->mapWithKeys(function (ServiceQueue $queue) use ($owner) {
$count = \App\Models\Ticket::owned($owner)
->where('service_queue_id', $queue->id)
->where('status', 'waiting')
->count();
return [$queue->id => $count];
});
$canManage = app(\App\Services\Qms\QmsPermissions::class)->can($this->member($request), 'counters.manage');
return view('qms.counters.show', compact('counter', 'currentTicket', 'waitingCounts', 'canManage'));
}
public function create(Request $request): View