Fix queue handoff so tickets keep their number across services.
Deploy Ladill Queue / deploy (push) Successful in 40s
Deploy Ladill Queue / deploy (push) Successful in 40s
Handoff now frees the counter, ends the service session, and requeues the same ticket for the next department — critical for hospital flows like doctor → lab. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -17,5 +17,29 @@
|
||||
<a href="{{ route('qms.tickets.index') }}" class="btn-primary">All tickets</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@if ($ticket->transfers->isNotEmpty())
|
||||
<div class="mt-4 rounded-2xl bg-white p-6 shadow-sm">
|
||||
<h2 class="text-sm font-semibold text-slate-900">Hand-off history</h2>
|
||||
<p class="mt-1 text-xs text-slate-500">Ticket number stays {{ $ticket->ticket_number }} across each hand-off.</p>
|
||||
<ul class="mt-4 divide-y divide-slate-100">
|
||||
@foreach ($ticket->transfers as $transfer)
|
||||
<li class="py-3 text-sm">
|
||||
<p class="font-medium text-slate-800">
|
||||
{{ $transfer->fromQueue?->name ?? 'Queue' }}
|
||||
→
|
||||
{{ $transfer->toQueue?->name ?? 'Queue' }}
|
||||
</p>
|
||||
<p class="mt-1 text-xs text-slate-500">
|
||||
{{ $transfer->transferred_at?->format('M j, Y H:i') }}
|
||||
@if ($transfer->reason)
|
||||
· {{ $transfer->reason }}
|
||||
@endif
|
||||
</p>
|
||||
</li>
|
||||
@endforeach
|
||||
</ul>
|
||||
</div>
|
||||
@endif
|
||||
</div>
|
||||
</x-app-layout>
|
||||
|
||||
Reference in New Issue
Block a user