@extends('layouts.admin') @section('title', 'Suporte') @section('content') @if (session('status')) @endif
Limpar
@forelse ($tickets as $t) @php $pTone = match ($t->prioridade) { 'alta' => 'danger', 'media' => 'warning', default => 'secondary', }; $sTone = match ($t->status) { 'aberto' => 'info', 'aguardando' => 'secondary', 'em_andamento' => 'primary', 'resolvido' => 'success', default => 'dark', }; @endphp @empty @endforelse
Ticket Empresa Assunto Atualizado Prioridade Status Ações
#{{ $t->id }} {{ $t->empresa?->nome ?? '—' }} {{ \Illuminate\Support\Str::limit($t->assunto, 60) }} {{ $t->updated_at->format('d/m/Y H:i') }} {{ \App\Models\SuporteTicket::prioridades()[$t->prioridade] }} {{ \App\Models\SuporteTicket::statusRotulos()[$t->status] }} Ver Editar
Nenhum ticket. Abrir ticket

Resumo (dados reais)

Tickets em aberto / andamento: {{ $abertos }}

Resolvidos (últimos 7 dias): {{ $resolvidos7d }}

SLA de 1ª resposta: (campo a definir)

@endsection