isEmAndamento()) class="table-warning" @endif>
| {{ $item->numero }} |
{{ $item->solicitante_nome }} |
{{ $item->unidade->abbreviation ?? '—' }} |
{{ $item->setor_nome ?? $item->setor?->nome ?? '—' }} |
{{ $item->assunto_nome ?? $item->assunto?->nome ?? '—' }} |
{{ $item->subassunto_nome ?? $item->subassunto?->nome ?? '—' }} |
@php
$statusLabel = \App\Models\IndicadoresTi\Chamado::STATUS[$item->status] ?? $item->status;
$statusClass = match ($item->status) {
'pendente' => 'warning',
'em_andamento' => 'info',
'atendido' => 'success',
default => 'secondary',
};
@endphp
{{ __($statusLabel) }}
|
@php
$prioLabel = \App\Models\IndicadoresTi\Chamado::PRIORIDADE[$item->prioridade] ?? $item->prioridade;
$prioClass = match ($item->prioridade) {
'alta' => 'danger',
'critica'=> 'danger',
'media' => 'warning',
'baixa' => 'success',
default => 'secondary',
};
@endphp
{{ __($prioLabel) }}
|
{{ $item->atendente->name ?? '—' }} |
{{ optional($item->data_abertura)->format('d/m/Y H:i') }} |
{{ optional($item->data_fechamento)->format('d/m/Y H:i') ?? '—' }} |
@if ($item->isEmAndamento() && $item->data_abertura)
{{ $item->getTempoAtendimentoFormatado() }}
@elseif ($item->data_fechamento)
{{ $item->getTempoAtendimentoFormatado() }}
@else
—
@endif
|
@if ($item->status !== 'atendido')
@endif
@if (
auth()->user()->getPermissaoDetalhes('SYSADMIN')['excluir']
|| $item->atendente_id === auth()->id()
|| $item->participantes->contains('id', auth()->id())
)
@endif
|