Deploy Ladill Queue / deploy (push) Successful in 36s
Introduce shared x-qms.page-hero with summary stats across queues, tickets, counters, admin pages, and insights; remove bordered cards on Analytics, Reports, Feedback, and Branches list views. Co-authored-by: Cursor <cursoragent@cursor.com>
68 lines
4.1 KiB
PHP
68 lines
4.1 KiB
PHP
<x-app-layout title="Displays">
|
|
<div class="space-y-6">
|
|
<x-qms.page-hero
|
|
badge="Waiting areas · Voice · Ticket calls"
|
|
title="Display screens"
|
|
description="Waiting-area screens and voice announcements so customers see called tickets and hear when their number is up."
|
|
:stats="[
|
|
['value' => number_format($heroStats['total']), 'label' => 'Displays'],
|
|
['value' => number_format($heroStats['active']), 'label' => 'Active'],
|
|
['value' => number_format($heroStats['branches']), 'label' => 'Branches'],
|
|
]">
|
|
@if ($canManage)
|
|
<x-slot name="actions">
|
|
<a href="{{ route('qms.displays.create') }}" class="btn-primary">New display</a>
|
|
</x-slot>
|
|
@endif
|
|
</x-qms.page-hero>
|
|
|
|
<div class="overflow-hidden rounded-2xl border border-slate-200 bg-white">
|
|
@if ($screens->isEmpty())
|
|
<x-empty-state
|
|
title="No display screens yet"
|
|
description="Create a display for your waiting area so customers can see the queue and hear ticket calls."
|
|
>
|
|
<x-slot:icon>
|
|
<svg class="h-6 w-6" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor">
|
|
<path stroke-linecap="round" stroke-linejoin="round" d="M6 20.25h12m-7.5-3v3m3-3v3m-10.125-3H18a2.25 2.25 0 0 0 2.25-2.25V6.108c0-1.135-.845-2.098-1.976-2.192a48.424 48.424 0 0 0-1.123-.08m-5.801 0c-.065.21-.1.433-.1.664 0 .414.336.75.75.75h4.5a.75.75 0 0 0 .75-.75 2.25 2.25 0 0 0-.1-.664m-5.8 0A2.251 2.251 0 0 1 13.5 2.25H15c1.012 0 1.867.668 2.15 1.586m-5.8 0c-.376.023-.75.05-1.124.08C9.095 4.01 8.25 4.973 8.25 6.108V8.25m0 0H4.875c-.621 0-1.125.504-1.125 1.125v11.25c0 .621.504 1.125 1.125 1.125h9.75c.621 0 1.125-.504 1.125-1.125V9.375c0-.621-.504-1.125-1.125-1.125H8.25ZM6.75 12h.008v.008H6.75V12Zm0 3h.008v.008H6.75V15Zm0 3h.008v.008H6.75V18Z" />
|
|
</svg>
|
|
</x-slot:icon>
|
|
@if ($canManage)
|
|
<x-slot:action>
|
|
<a href="{{ route('qms.displays.create') }}" class="btn-primary">Create your first display</a>
|
|
</x-slot:action>
|
|
@endif
|
|
</x-empty-state>
|
|
@else
|
|
<table class="min-w-full divide-y divide-slate-100 text-sm">
|
|
<thead class="bg-slate-50 text-left text-xs uppercase text-slate-500">
|
|
<tr>
|
|
<th class="px-4 py-3">Name</th>
|
|
<th class="px-4 py-3">Layout</th>
|
|
<th class="px-4 py-3">Branch</th>
|
|
<th class="px-4 py-3"></th>
|
|
</tr>
|
|
</thead>
|
|
<tbody class="divide-y divide-slate-50">
|
|
@foreach ($screens as $screen)
|
|
<tr>
|
|
<td class="px-4 py-3 font-medium text-slate-900">
|
|
<a href="{{ route('qms.displays.show', $screen) }}" class="hover:text-indigo-600">{{ $screen->name }}</a>
|
|
</td>
|
|
<td class="px-4 py-3 text-slate-600">{{ config('qms.display_layouts.'.$screen->layout, $screen->layout) }}</td>
|
|
<td class="px-4 py-3 text-slate-600">{{ $screen->branch?->name ?? '—' }}</td>
|
|
<td class="px-4 py-3 text-right">
|
|
<a href="{{ route('qms.display.public', $screen->access_token) }}" target="_blank" class="text-indigo-700 hover:underline">Open display</a>
|
|
</td>
|
|
</tr>
|
|
@endforeach
|
|
</tbody>
|
|
</table>
|
|
<div class="border-t border-slate-200 px-4 py-3">
|
|
{{ $screens->links() }}
|
|
</div>
|
|
@endif
|
|
</div>
|
|
</div>
|
|
</x-app-layout>
|