@extends('layouts.digitar') @section('Breadcrumbs') {!! Breadcrumbs::render('parameters.list') !!} @endsection @section('content') @if (session('success'))
{!! session('success') !!}
@endif @if (session('error'))
{!! session('error') !!}
@endif @if (session('toastr')) @endif @if (isset($entidadeDomain) && $entidadeDomain) @php $responderUrl = route('ouvidoria.responder'); @endphp

Lista de Chamados

@csrf
Limpar
@foreach ($chamados as $chamado) @endforeach
id Protocolo Indentificação Tipo Assunto Documento Categorias Status Data Endereço Anexos Imprimir Manutenção
{{ $chamado->id }} {{ $chamado->protocolo }} {{ $chamado->anonimo ? 'Anônimo' : $chamado->nome }} {{ $chamado->tipo }} {{ $chamado->assunto }} @if ($chamado->documentos && $chamado->documentos->count()) @foreach ($chamado->documentos as $documento) @endforeach @else Nenhum documento vinculado @endif {{ $chamado->category->name ?? 'N/A' }} @php $statusText = [ 0 => [ 'text' => 'Pendente', 'color' => '#dd4b4b', 'border-style' => 'none', 'border-radius' => '30px', 'padding' => '10px', 'width' => '100%', 'display' => 'flex', 'justify-content' => 'center', 'align-items' => 'center', ], 1 => [ 'text' => 'Em andamento', 'color' => '#2E8B57', 'border-style' => 'none', 'border-radius' => '30px', 'padding' => '10px', 'width' => '100%', 'display' => 'flex', 'justify-content' => 'center', 'align-items' => 'center', ], 2 => [ 'text' => 'Respondido', 'color' => '#2F4F4F', 'border-style' => 'none', 'border-radius' => '30px', 'padding' => '10px', 'width' => '100%', 'display' => 'flex', 'justify-content' => 'center', 'align-items' => 'center', ], 3 => [ 'text' => 'Finalizado', 'color' => 'green', 'border-style' => 'none', 'border-radius' => '30px', 'padding' => '10px', 'width' => '100%', 'display' => 'flex', 'justify-content' => 'center', 'align-items' => 'center', ], ]; @endphp @switch($chamado->status) @case(0) @case(1) @case(2) @case(3) @break @default Desconhecido @endswitch
×

Alterar Status do Chamado

@csrf
@foreach ($statusText as $key => $status) @endforeach
{{ $chamado->created_at->format('d/m/y') }} @if ($chamado->arquivos?->count()) @endif @if ($chamado->arquivos?->count()) @else
Nenhum anexo vínculado
@endif
@csrf @method('DELETE')
{{ $chamados->links() }}