{{-- Partial: chamado request header Variáveis esperadas: $chamado (Chamado model) --}} @php $infoNome = $chamado->user?->first()?->info?->name ?? null; $infoFilial = $chamado->locations?->comment ?? null; $infoSetor = $chamado->setor?->name ?? null; $infoCategoria = $chamado->payload['form_label'] ?? ($chamado->category ? $chamado->category->name : null); $fotoUrl = \App\Helpers\UserHelper::photoUrl($chamado->user?->first()?->info?->photo); $iniciais = $infoNome ? collect(explode(' ', trim($infoNome))) ->take(2) ->map(fn($p) => mb_strtoupper(mb_substr($p, 0, 1))) ->implode('') : '?'; @endphp
{{-- Foto com fallback para iniciais --}}
{{ $iniciais }}
{{-- Esquerda: label + nome + filial/setor --}}
Solicitante
{{ $infoNome ?? '—' }}
{{-- Direita: tipo badge + categoria --}}
@if ($infoCategoria)
{{ $infoCategoria }}
@endif @if ($infoFilial || $infoSetor)
@if ($infoFilial) {{ $infoFilial }} @endif @if ($infoSetor) {{ $infoSetor }} @endif
@endif