pass nnumber one

This commit is contained in:
Mark Gregory
2026-06-22 11:43:05 +01:00
parent de336c219d
commit e1a4adc4d4
@@ -663,125 +663,154 @@
}
</script>
</div>
<aside class="space-y-4">
<div class="rounded-xl border border-zinc-200 bg-white p-4 shadow-sm dark:border-zinc-700 dark:bg-zinc-900">
<div class="mb-3 border-b border-blue-200 pb-2 dark:border-blue-900/70">
<h2 class="flex items-center gap-2 text-sm font-extrabold text-zinc-900 dark:text-white">
<span class="inline-flex h-8 w-8 items-center justify-center rounded-lg bg-blue-600 text-white shadow-sm">
<i class="fa-solid fa-file-lines text-xs" aria-hidden="true"></i>
</span>
Ticket details
</h2>
<div class="overflow-hidden rounded-2xl border border-zinc-200 bg-white shadow-sm dark:border-zinc-700 dark:bg-zinc-900">
<div class="bg-gradient-to-r from-blue-700 via-blue-800 to-indigo-950 px-4 py-4 text-white">
<div class="flex items-center gap-3">
<span class="inline-flex h-12 w-12 shrink-0 items-center justify-center rounded-xl bg-blue-500/30 text-white ring-1 ring-white/20 shadow-sm">
<i class="fa-solid fa-file-lines text-lg" aria-hidden="true"></i>
</span>
<div class="min-w-0">
<h2 class="text-lg font-black uppercase tracking-wide text-white">Ticket details</h2>
<p class="mt-0.5 text-xs font-medium text-blue-100">Key information about this ticket</p>
</div>
</div>
</div>
<dl class="space-y-2 text-xs">
<div class="flex justify-between gap-3">
<dt class="text-zinc-500">Category</dt>
<dd>{{ $ticket->category?->name ?? 'None' }}</dd>
</div>
<div class="flex justify-between gap-3">
<dt class="text-zinc-500">Project</dt>
<dd>{{ $ticket->project?->title ?? 'None' }}</dd>
</div>
<div class="flex justify-between gap-3">
<dt class="text-zinc-500">Product/service</dt>
<dd>{{ $ticket->product?->name ?? 'None' }}</dd>
</div>
<div class="flex justify-between gap-3">
<dt class="text-zinc-500">Team</dt>
<dd>{{ $ticket->team?->name ?? 'None' }}</dd>
</div>
<div class="flex justify-between gap-3">
<dt class="text-zinc-500">Created</dt>
<dd>{{ $ticket->created_at->format('d M Y H:i') }}</dd>
</div>
<div class="flex justify-between gap-3">
<dt class="text-zinc-500">Due</dt>
<dd>{{ $ticket->due_at?->format('d M Y') ?? 'No due date' }}</dd>
</div>
</dl>
<div class="p-4">
<dl class="space-y-3 text-sm">
<div class="flex justify-between gap-3">
<dt class="text-zinc-500 dark:text-zinc-400">Category</dt>
<dd class="text-right font-semibold text-zinc-900 dark:text-zinc-100">{{ $ticket->category?->name ?? 'None' }}</dd>
</div>
<div class="flex justify-between gap-3">
<dt class="text-zinc-500 dark:text-zinc-400">Project</dt>
<dd class="text-right font-semibold text-zinc-900 dark:text-zinc-100">{{ $ticket->project?->title ?? 'None' }}</dd>
</div>
<div class="flex justify-between gap-3">
<dt class="text-zinc-500 dark:text-zinc-400">Product/service</dt>
<dd class="text-right font-semibold text-zinc-900 dark:text-zinc-100">{{ $ticket->product?->name ?? 'None' }}</dd>
</div>
<div class="flex justify-between gap-3">
<dt class="text-zinc-500 dark:text-zinc-400">Team</dt>
<dd class="text-right font-semibold text-zinc-900 dark:text-zinc-100">{{ $ticket->team?->name ?? 'None' }}</dd>
</div>
<div class="flex justify-between gap-3">
<dt class="text-zinc-500 dark:text-zinc-400">Created</dt>
<dd class="text-right font-semibold text-zinc-900 dark:text-zinc-100">{{ $ticket->created_at->format('d M Y H:i') }}</dd>
</div>
<div class="flex justify-between gap-3">
<dt class="text-zinc-500 dark:text-zinc-400">Due</dt>
<dd class="text-right font-semibold text-zinc-900 dark:text-zinc-100">{{ $ticket->due_at?->format('d M Y') ?? 'No due date' }}</dd>
</div>
</dl>
</div>
</div>
<div class="rounded-xl border border-zinc-200 bg-white p-4 shadow-sm dark:border-zinc-700 dark:bg-zinc-900">
<div class="mb-3 border-b border-red-200 pb-2 dark:border-red-900/70">
<h2 class="flex items-center gap-2 text-sm font-extrabold text-zinc-900 dark:text-white">
<span class="inline-flex h-8 w-8 items-center justify-center rounded-lg bg-red-600 text-white shadow-sm">
<i class="fa-solid fa-clock text-xs" aria-hidden="true"></i>
</span>
SLA metrics
</h2>
<div class="overflow-hidden rounded-2xl border border-zinc-200 bg-white shadow-sm dark:border-zinc-700 dark:bg-zinc-900">
<div class="bg-gradient-to-r from-red-700 via-red-800 to-red-950 px-4 py-4 text-white">
<div class="flex items-center gap-3">
<span class="inline-flex h-12 w-12 shrink-0 items-center justify-center rounded-xl bg-red-500/30 text-white ring-1 ring-white/20 shadow-sm">
<i class="fa-solid fa-clock text-lg" aria-hidden="true"></i>
</span>
<div class="min-w-0">
<h2 class="text-lg font-black uppercase tracking-wide text-white">SLA metrics</h2>
<p class="mt-0.5 text-xs font-medium text-red-100">Service level agreement overview</p>
</div>
</div>
</div>
<div class="grid gap-2 text-xs">
<div class="rounded-lg border {{ $ticket->sla_first_response_breached ? 'border-red-300 bg-red-50 text-red-900 dark:border-red-900 dark:bg-red-950 dark:text-red-100' : 'border-emerald-200 bg-emerald-50 text-emerald-900 dark:border-emerald-900 dark:bg-emerald-950 dark:text-emerald-100' }} p-3">
<div class="text-[0.68rem] font-semibold uppercase tracking-wide">First response</div>
<div class="mt-1">{{ $ticket->first_response_at?->format('d M Y H:i') ?? 'Awaiting response' }}</div>
<div class="mt-1 text-[0.68rem] opacity-75">Due {{ $ticket->sla_first_response_due_at?->format('d M Y H:i') ?? 'Not set' }}</div>
<div class="grid gap-3 p-4 text-xs">
<div class="rounded-xl border {{ $ticket->sla_first_response_breached ? 'border-red-700 bg-red-950 text-red-100' : 'border-emerald-700 bg-emerald-950 text-emerald-100' }} p-4 shadow-sm">
<div class="text-xs font-black uppercase tracking-wide">First response</div>
<div class="mt-2 text-base font-semibold">{{ $ticket->first_response_at?->format('d M Y H:i') ?? 'Awaiting response' }}</div>
<div class="mt-1 text-xs opacity-75">Due {{ $ticket->sla_first_response_due_at?->format('d M Y H:i') ?? 'Not set' }}</div>
</div>
<div class="rounded-lg border {{ $ticket->sla_resolution_breached ? 'border-red-300 bg-red-50 text-red-900 dark:border-red-900 dark:bg-red-950 dark:text-red-100' : 'border-blue-200 bg-blue-50 text-blue-900 dark:border-blue-900 dark:bg-blue-950 dark:text-blue-100' }} p-3">
<div class="text-[0.68rem] font-semibold uppercase tracking-wide">Resolution</div>
<div class="mt-1">{{ $ticket->completed_at?->format('d M Y H:i') ?? 'Open' }}</div>
<div class="mt-1 text-[0.68rem] opacity-75">Due {{ $ticket->sla_resolution_due_at?->format('d M Y H:i') ?? 'Not set' }}</div>
<div class="rounded-xl border {{ $ticket->sla_resolution_breached ? 'border-red-700 bg-red-950 text-red-100' : 'border-blue-700 bg-blue-950 text-blue-100' }} p-4 shadow-sm">
<div class="text-xs font-black uppercase tracking-wide">Resolution</div>
<div class="mt-2 text-base font-semibold">{{ $ticket->completed_at?->format('d M Y H:i') ?? 'Open' }}</div>
<div class="mt-1 text-xs opacity-75">Due {{ $ticket->sla_resolution_due_at?->format('d M Y H:i') ?? 'Not set' }}</div>
</div>
<div class="grid grid-cols-2 gap-2 text-center">
<div class="rounded-lg border border-blue-300 bg-blue-50 p-2 text-blue-900 shadow-sm dark:border-blue-900 dark:bg-blue-950 dark:text-blue-100">
<div class="text-lg font-extrabold">{{ $ticket->public_replies_count }}</div>
<div class="text-[0.68rem] font-semibold text-blue-700 dark:text-blue-200">Public replies</div>
<div class="grid grid-cols-2 gap-3 text-center">
<div class="rounded-xl border border-blue-700 bg-blue-950 p-3 text-blue-100 shadow-sm">
<div class="text-2xl font-black">{{ $ticket->public_replies_count }}</div>
<div class="mt-1 text-xs font-bold text-blue-200">Public replies</div>
</div>
<div class="rounded-lg border border-emerald-300 bg-emerald-50 p-2 text-emerald-900 shadow-sm dark:border-emerald-900 dark:bg-emerald-950 dark:text-emerald-100">
<div class="text-lg font-extrabold">{{ $ticket->time_spent_minutes }}</div>
<div class="text-[0.68rem] font-semibold text-emerald-700 dark:text-emerald-200">Minutes logged</div>
<div class="rounded-xl border border-emerald-700 bg-emerald-950 p-3 text-emerald-100 shadow-sm">
<div class="text-2xl font-black">{{ $ticket->time_spent_minutes }}</div>
<div class="mt-1 text-xs font-bold text-emerald-200">Minutes logged</div>
</div>
</div>
</div>
</div>
<div class="rounded-xl border border-zinc-200 bg-white p-4 shadow-sm dark:border-zinc-700 dark:bg-zinc-900">
<div class="mb-3 border-b border-emerald-200 pb-2 dark:border-emerald-900/70">
<h2 class="flex items-center gap-2 text-sm font-extrabold text-zinc-900 dark:text-white">
<span class="inline-flex h-8 w-8 items-center justify-center rounded-lg bg-emerald-600 text-white shadow-sm">
<i class="fa-solid fa-user text-xs" aria-hidden="true"></i>
</span>
Requester profile
</h2>
<div class="overflow-hidden rounded-2xl border border-zinc-200 bg-white shadow-sm dark:border-zinc-700 dark:bg-zinc-900">
<div class="bg-gradient-to-r from-emerald-700 via-emerald-800 to-teal-950 px-4 py-4 text-white">
<div class="flex items-center gap-3">
<span class="inline-flex h-12 w-12 shrink-0 items-center justify-center rounded-xl bg-emerald-500/30 text-white ring-1 ring-white/20 shadow-sm">
<i class="fa-solid fa-user text-lg" aria-hidden="true"></i>
</span>
<div class="min-w-0">
<h2 class="text-lg font-black uppercase tracking-wide text-white">Requester profile</h2>
<p class="mt-0.5 text-xs font-medium text-emerald-100">Information about the requester</p>
</div>
</div>
</div>
<dl class="space-y-2 text-xs">
<div class="flex justify-between gap-3">
<dt class="text-zinc-500">Name</dt>
<dd>{{ $ticket->owner?->name ?? 'Unknown' }}</dd>
</div>
<div class="flex justify-between gap-3">
<dt class="text-zinc-500">Email</dt>
<dd class="truncate">{{ $ticket->owner?->email ?? 'None' }}</dd>
</div>
<div class="flex justify-between gap-3">
<dt class="text-zinc-500">Company</dt>
<dd>{{ $ticket->owner?->company?->name ?? 'Current company' }}</dd>
</div>
</dl>
<div class="p-4">
<dl class="space-y-3 text-sm">
<div class="flex justify-between gap-3">
<dt class="text-zinc-500 dark:text-zinc-400">Name</dt>
<dd class="text-right font-semibold text-zinc-900 dark:text-zinc-100">{{ $ticket->owner?->name ?? 'Unknown' }}</dd>
</div>
<div class="flex justify-between gap-3">
<dt class="text-zinc-500 dark:text-zinc-400">Email</dt>
<dd class="truncate text-right font-semibold text-zinc-900 dark:text-zinc-100">{{ $ticket->owner?->email ?? 'None' }}</dd>
</div>
<div class="flex justify-between gap-3">
<dt class="text-zinc-500 dark:text-zinc-400">Company</dt>
<dd class="text-right font-semibold text-zinc-900 dark:text-zinc-100">{{ $ticket->owner?->company?->name ?? 'Current company' }}</dd>
</div>
</dl>
@if ($ticket->tags->isNotEmpty())
<div class="mt-3 flex flex-wrap gap-2">
@foreach ($ticket->tags as $tag)
<span class="rounded-full px-2 py-1 text-xs font-semibold text-white" style="background-color: {{ \Modules\Helpdesk\Support\Color::css($tag->color) }}">{{ $tag->name }}</span>
@endforeach
</div>
@endif
@if ($ticket->tags->isNotEmpty())
<div class="mt-4 flex flex-wrap gap-2">
@foreach ($ticket->tags as $tag)
<span class="rounded-full px-2 py-1 text-xs font-semibold text-white" style="background-color: {{ \Modules\Helpdesk\Support\Color::css($tag->color) }}">{{ $tag->name }}</span>
@endforeach
</div>
@endif
</div>
</div>
@if ($ticket->checklistItems->isNotEmpty())
<div class="rounded-xl border border-zinc-200 bg-white p-4 shadow-sm dark:border-zinc-700 dark:bg-zinc-900">
<div class="overflow-hidden rounded-2xl border border-zinc-200 bg-white shadow-sm dark:border-zinc-700 dark:bg-zinc-900">
@php($completedChecks = $ticket->checklistItems->where('is_completed', true)->count())
<div class="mb-3 flex items-center justify-between gap-3">
<h2 class="text-sm font-semibold text-zinc-900 dark:text-white">Checklist</h2>
<flux:badge color="blue">{{ $completedChecks }}/{{ $ticket->checklistItems->count() }}</flux:badge>
<div class="bg-gradient-to-r from-amber-600 via-amber-700 to-orange-900 px-4 py-4 text-white">
<div class="flex items-center justify-between gap-3">
<div class="flex items-center gap-3">
<span class="inline-flex h-12 w-12 shrink-0 items-center justify-center rounded-xl bg-amber-500/30 text-white ring-1 ring-white/20 shadow-sm">
<i class="fa-solid fa-list-check text-lg" aria-hidden="true"></i>
</span>
<div class="min-w-0">
<h2 class="text-lg font-black uppercase tracking-wide text-white">Checklist</h2>
<p class="mt-0.5 text-xs font-medium text-amber-100">Completion progress</p>
</div>
</div>
<flux:badge color="blue">{{ $completedChecks }}/{{ $ticket->checklistItems->count() }}</flux:badge>
</div>
</div>
<div class="space-y-2">
<div class="space-y-2 p-4">
@foreach ($ticket->checklistItems as $item)
<label class="flex items-start gap-2 rounded-lg border border-zinc-200 p-2 text-xs dark:border-zinc-700">
<input type="checkbox" wire:click="toggleChecklistItem({{ $item->id }})" @checked($item->is_completed) class="mt-1 rounded border-zinc-300">
@@ -792,17 +821,28 @@
</div>
@endif
<div class="rounded-xl border border-zinc-200 bg-white p-4 shadow-sm dark:border-zinc-700 dark:bg-zinc-900">
<h2 class="mb-3 text-sm font-semibold text-zinc-900 dark:text-white">Git commits</h2>
<div class="overflow-hidden rounded-2xl border border-zinc-200 bg-white shadow-sm dark:border-zinc-700 dark:bg-zinc-900">
<div class="bg-gradient-to-r from-violet-700 via-purple-800 to-purple-950 px-4 py-4 text-white">
<div class="flex items-center gap-3">
<span class="inline-flex h-12 w-12 shrink-0 items-center justify-center rounded-xl bg-violet-500/30 text-white ring-1 ring-white/20 shadow-sm">
<i class="fa-solid fa-code-branch text-lg" aria-hidden="true"></i>
</span>
<div class="space-y-2">
<div class="min-w-0">
<h2 class="text-lg font-black uppercase tracking-wide text-white">Git commits</h2>
<p class="mt-0.5 text-xs font-medium text-violet-100">Code commits linked to this ticket</p>
</div>
</div>
</div>
<div class="space-y-2 p-4">
@forelse ($ticket->gitCommits as $commit)
<a href="{{ $commit->url ?: '#' }}" target="_blank" class="block rounded-lg border border-zinc-100 p-2 dark:border-zinc-800">
<a href="{{ $commit->url ?: '#' }}" target="_blank" class="block rounded-lg border border-zinc-100 p-2 transition hover:bg-zinc-50 dark:border-zinc-800 dark:hover:bg-zinc-800">
<div class="font-mono text-[0.68rem] text-zinc-500">{{ $commit->short_hash }} · {{ $commit->repository?->name }}</div>
<div class="mt-1 text-xs font-medium text-zinc-900 dark:text-zinc-100">{{ $commit->message }}</div>
</a>
@empty
<div class="rounded-lg border border-dashed border-zinc-300 p-3 text-center text-xs text-zinc-500 dark:border-zinc-700">
<div class="rounded-xl border border-dashed border-zinc-300 p-4 text-center text-xs text-zinc-500 dark:border-zinc-700">
No commits linked.
</div>
@endforelse
@@ -810,80 +850,90 @@
</div>
@can('update', $ticket)
<div class="rounded-xl border border-zinc-200 bg-white p-4 shadow-sm dark:border-zinc-700 dark:bg-zinc-900">
<div class="mb-4 rounded-xl bg-gradient-to-r from-blue-700 via-indigo-700 to-violet-700 px-3 py-3 text-white shadow-sm">
<p class="text-[0.68rem] font-black uppercase tracking-[0.18em] text-blue-100">Ticket controls</p>
<h2 class="mt-1 text-base font-black tracking-tight">Assignment, status and priority</h2>
<div class="overflow-hidden rounded-2xl border border-zinc-200 bg-white shadow-sm dark:border-zinc-700 dark:bg-zinc-900">
<div class="bg-gradient-to-r from-blue-700 via-indigo-800 to-violet-950 px-4 py-4 text-white">
<div class="flex items-center gap-3">
<span class="inline-flex h-12 w-12 shrink-0 items-center justify-center rounded-xl bg-white/10 text-white ring-1 ring-white/20 shadow-sm">
<i class="fa-solid fa-sliders text-lg" aria-hidden="true"></i>
</span>
<div class="min-w-0">
<h2 class="text-lg font-black uppercase tracking-wide text-white">Ticket controls</h2>
<p class="mt-0.5 text-xs font-medium text-blue-100">Assignment, status and priority</p>
</div>
</div>
</div>
@if (session('ticket-action-updated'))
<div class="mb-4 rounded-lg border border-emerald-200 bg-emerald-50 px-3 py-2 text-xs font-bold text-emerald-800 dark:border-emerald-800 dark:bg-emerald-950 dark:text-emerald-100">
{{ session('ticket-action-updated') }}
</div>
@endif
<div class="space-y-4 p-4">
@if (session('ticket-action-updated'))
<div class="rounded-lg border border-emerald-200 bg-emerald-50 px-3 py-2 text-xs font-bold text-emerald-800 dark:border-emerald-800 dark:bg-emerald-950 dark:text-emerald-100">
{{ session('ticket-action-updated') }}
</div>
@endif
<form method="POST" action="{{ route('helpdesk.tickets.agent.update', $ticket) }}" class="mb-4 space-y-2">
@csrf
<form method="POST" action="{{ route('helpdesk.tickets.agent.update', $ticket) }}" class="space-y-2">
@csrf
<label class="block text-xs font-bold text-zinc-700 dark:text-zinc-200" for="show_agent_id">Assigned agent</label>
<select id="show_agent_id" name="agent_id" class="hd-select block w-full rounded-lg border border-zinc-300 bg-white p-2 text-xs font-semibold text-zinc-900 shadow-sm focus:border-emerald-500 focus:ring-emerald-500 dark:border-zinc-700 dark:bg-zinc-950 dark:text-zinc-100" data-dusk="ticket-show-agent">
<option value="" @selected($agent_id === null)>Unassigned</option>
@forelse ($agents as $agent)
<option value="{{ $agent->id }}" @selected((int) $agent_id === (int) $agent->id)>{{ $agent->name }} · {{ $agent->email }}</option>
@empty
<option value="" disabled>No users available for assignment</option>
@endforelse
</select>
<label class="block text-xs font-bold text-zinc-700 dark:text-zinc-200" for="show_agent_id">Assigned agent</label>
<select id="show_agent_id" name="agent_id" class="hd-select block w-full rounded-lg border border-zinc-300 bg-white p-2 text-xs font-semibold text-zinc-900 shadow-sm focus:border-emerald-500 focus:ring-emerald-500 dark:border-zinc-700 dark:bg-zinc-950 dark:text-zinc-100" data-dusk="ticket-show-agent">
<option value="" @selected($agent_id === null)>Unassigned</option>
@forelse ($agents as $agent)
<option value="{{ $agent->id }}" @selected((int) $agent_id === (int) $agent->id)>{{ $agent->name }} · {{ $agent->email }}</option>
@empty
<option value="" disabled>No users available for assignment</option>
@endforelse
</select>
@error('agent_id')
<p class="text-xs font-bold text-red-600 dark:text-red-400">{{ $message }}</p>
@enderror
@error('agent_id')
<p class="text-xs font-bold text-red-600 dark:text-red-400">{{ $message }}</p>
@enderror
<button type="submit" dusk="update-agent" data-dusk="update-agent" class="inline-flex items-center justify-center rounded-lg bg-emerald-600 px-3 py-2 text-xs font-black text-white shadow-sm transition hover:bg-emerald-700 focus:outline-none focus:ring-2 focus:ring-emerald-400/70">
<i class="fa-solid fa-user-check mr-2" aria-hidden="true"></i>
<span>Assign agent</span>
</button>
</form>
<button type="submit" dusk="update-agent" data-dusk="update-agent" class="inline-flex items-center justify-center rounded-lg bg-emerald-600 px-3 py-2 text-xs font-black text-white shadow-sm transition hover:bg-emerald-700 focus:outline-none focus:ring-2 focus:ring-emerald-400/70">
<i class="fa-solid fa-user-check mr-2" aria-hidden="true"></i>
<span>Assign agent</span>
</button>
</form>
<form method="POST" action="{{ route('helpdesk.tickets.status.update', $ticket) }}" class="mb-4 space-y-2">
@csrf
<form method="POST" action="{{ route('helpdesk.tickets.status.update', $ticket) }}" class="space-y-2">
@csrf
<label class="block text-xs font-bold text-zinc-700 dark:text-zinc-200" for="show_status_id">Status</label>
<select id="show_status_id" name="status_id" class="hd-select block min-h-10 w-full rounded-lg border border-zinc-300 bg-white px-3 py-2 text-xs font-semibold text-zinc-900 shadow-sm focus:border-blue-500 focus:ring-blue-500 dark:border-zinc-700 dark:bg-zinc-950 dark:text-zinc-100" data-dusk="ticket-show-status">
@foreach ($statuses as $status)
<option value="{{ $status->id }}" @selected((int) $status_id === (int) $status->id)>{{ $status->name }}</option>
@endforeach
</select>
<label class="block text-xs font-bold text-zinc-700 dark:text-zinc-200" for="show_status_id">Status</label>
<select id="show_status_id" name="status_id" class="hd-select block min-h-10 w-full rounded-lg border border-zinc-300 bg-white px-3 py-2 text-xs font-semibold text-zinc-900 shadow-sm focus:border-blue-500 focus:ring-blue-500 dark:border-zinc-700 dark:bg-zinc-950 dark:text-zinc-100" data-dusk="ticket-show-status">
@foreach ($statuses as $status)
<option value="{{ $status->id }}" @selected((int) $status_id === (int) $status->id)>{{ $status->name }}</option>
@endforeach
</select>
@error('status_id')
<p class="text-xs font-bold text-red-600 dark:text-red-400">{{ $message }}</p>
@enderror
@error('status_id')
<p class="text-xs font-bold text-red-600 dark:text-red-400">{{ $message }}</p>
@enderror
<button type="submit" dusk="update-status" class="inline-flex items-center justify-center rounded-lg bg-blue-600 px-3 py-2 text-xs font-black text-white shadow-sm transition hover:bg-blue-700 focus:outline-none focus:ring-2 focus:ring-blue-400/70">
<i class="fa-solid fa-circle-check mr-2" aria-hidden="true"></i>
<span>Update status</span>
</button>
</form>
<button type="submit" dusk="update-status" class="inline-flex items-center justify-center rounded-lg bg-blue-600 px-3 py-2 text-xs font-black text-white shadow-sm transition hover:bg-blue-700 focus:outline-none focus:ring-2 focus:ring-blue-400/70">
<i class="fa-solid fa-circle-check mr-2" aria-hidden="true"></i>
<span>Update status</span>
</button>
</form>
<form method="POST" action="{{ route('helpdesk.tickets.priority.update', $ticket) }}" class="space-y-2">
@csrf
<form method="POST" action="{{ route('helpdesk.tickets.priority.update', $ticket) }}" class="space-y-2">
@csrf
<label class="block text-xs font-bold text-zinc-700 dark:text-zinc-200" for="show_priority_id">Priority</label>
<select id="show_priority_id" name="priority_id" class="hd-select block w-full rounded-lg border border-zinc-300 bg-white p-2 text-xs font-semibold text-zinc-900 shadow-sm focus:border-amber-500 focus:ring-amber-500 dark:border-zinc-700 dark:bg-zinc-950 dark:text-zinc-100" data-dusk="ticket-show-priority">
@foreach ($priorities as $priority)
<option value="{{ $priority->id }}" @selected((int) $priority_id === (int) $priority->id)>{{ $priority->name }}</option>
@endforeach
</select>
<label class="block text-xs font-bold text-zinc-700 dark:text-zinc-200" for="show_priority_id">Priority</label>
<select id="show_priority_id" name="priority_id" class="hd-select block w-full rounded-lg border border-zinc-300 bg-white p-2 text-xs font-semibold text-zinc-900 shadow-sm focus:border-amber-500 focus:ring-amber-500 dark:border-zinc-700 dark:bg-zinc-950 dark:text-zinc-100" data-dusk="ticket-show-priority">
@foreach ($priorities as $priority)
<option value="{{ $priority->id }}" @selected((int) $priority_id === (int) $priority->id)>{{ $priority->name }}</option>
@endforeach
</select>
@error('priority_id')
<p class="text-xs font-bold text-red-600 dark:text-red-400">{{ $message }}</p>
@enderror
@error('priority_id')
<p class="text-xs font-bold text-red-600 dark:text-red-400">{{ $message }}</p>
@enderror
<button type="submit" dusk="update-priority" class="inline-flex items-center justify-center rounded-lg bg-amber-500 px-3 py-2 text-xs font-black text-white shadow-sm transition hover:bg-amber-600 focus:outline-none focus:ring-2 focus:ring-amber-300/70">
<i class="fa-solid fa-flag mr-2" aria-hidden="true"></i>
<span>Update priority</span>
</button>
</form>
<button type="submit" dusk="update-priority" class="inline-flex items-center justify-center rounded-lg bg-amber-500 px-3 py-2 text-xs font-black text-white shadow-sm transition hover:bg-amber-600 focus:outline-none focus:ring-2 focus:ring-amber-300/70">
<i class="fa-solid fa-flag mr-2" aria-hidden="true"></i>
<span>Update priority</span>
</button>
</form>
</div>
</div>
@endcan
</aside>