Deploy Ladill Care / deploy (push) Successful in 37s
Settings toggle provisions Queue org via API; reception staff manage counters without leaving Care. Co-authored-by: Cursor <cursoragent@cursor.com>
35 lines
1.6 KiB
PHP
35 lines
1.6 KiB
PHP
<x-app-layout title="Service queues">
|
|
<div class="flex flex-wrap items-start justify-between gap-4">
|
|
<div>
|
|
<h1 class="text-xl font-semibold text-slate-900">Service queues</h1>
|
|
<p class="mt-1 text-sm text-slate-500">Powered by Ladill Queue — call tickets and manage counters without leaving Care</p>
|
|
</div>
|
|
<a href="https://queue.ladill.com" target="_blank" class="btn-secondary text-sm">Open Queue admin</a>
|
|
</div>
|
|
|
|
@if (session('error'))
|
|
<div class="mt-4 rounded-lg bg-rose-50 px-4 py-3 text-sm text-rose-800">{{ session('error') }}</div>
|
|
@endif
|
|
|
|
<div class="mt-5 grid gap-4 md:grid-cols-2 xl:grid-cols-3">
|
|
@forelse ($counters as $counter)
|
|
<article class="rounded-2xl border border-slate-200 bg-white p-5 shadow-sm">
|
|
<div class="flex items-start justify-between gap-3">
|
|
<div>
|
|
<h2 class="text-lg font-semibold text-slate-900">{{ $counter['name'] }}</h2>
|
|
<p class="mt-1 text-sm text-slate-500">{{ $counter['status'] ?? 'offline' }}</p>
|
|
</div>
|
|
</div>
|
|
<p class="mt-3 text-sm text-slate-600">
|
|
Queues: {{ collect($counter['queues'] ?? [])->join(', ') ?: 'None assigned' }}
|
|
</p>
|
|
<a href="{{ route('care.service-queues.console', $counter['uuid']) }}" class="btn-primary mt-4 inline-block w-full text-center text-sm">Open console</a>
|
|
</article>
|
|
@empty
|
|
<div class="col-span-full rounded-2xl border border-dashed border-slate-300 bg-slate-50 px-6 py-12 text-center text-sm text-slate-600">
|
|
No counters found in Ladill Queue. Create counters in Queue admin, then return here.
|
|
</div>
|
|
@endforelse
|
|
</div>
|
|
</x-app-layout>
|