Use industry-specific ticket priority labels.
Deploy Ladill Queue / deploy (push) Successful in 55s

Restaurant (and other packages) now show Rush, Reservation, VIP table, etc. instead of clinic terms like Emergency and Elderly.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
isaacclad
2026-07-17 20:15:56 +00:00
co-authored by Cursor
parent a2d5a8affd
commit b5ffa499b9
11 changed files with 252 additions and 4 deletions
+3 -1
View File
@@ -3,6 +3,7 @@
namespace App\Services\Qms;
use App\Models\Ticket;
use App\Services\Qms\TicketPriorities;
class TicketPresenter
{
@@ -11,7 +12,7 @@ class TicketPresenter
*/
public static function toArray(Ticket $ticket, bool $includeQr = true): array
{
$ticket->loadMissing(['serviceQueue', 'counter', 'assignedCounter']);
$ticket->loadMissing(['serviceQueue', 'counter', 'assignedCounter', 'organization']);
$serving = $ticket->counter;
$assigned = $ticket->assignedCounter;
@@ -22,6 +23,7 @@ class TicketPresenter
'ticket_number' => $ticket->ticket_number,
'status' => $ticket->status,
'priority' => $ticket->priority,
'priority_label' => TicketPriorities::label($ticket->organization, $ticket->priority),
'position' => $ticket->position,
'customer_name' => $ticket->customer_name,
'customer_phone' => $ticket->customer_phone,