@extends('layouts.admin.theme') @section('title', env('APP_NAME') . ' :: ' . __('Meus Chamados')) @section('content')
@php $headLine = " " . __('Meus Chamados'); @endphp @include('components.buttons._headLineButtonsBackAdd', [ 'headLine' => $headLine, 'routeBack' => 'admin.contaAngra.index', 'routeBackParams' => [], 'nameBack' => __('Voltar'), ])
@include('errors.messageFlash') @include('components.modal._modelProfile')
@include('components/forms/_filtroPesquisaDefault', [ 'id' => 'filtroChamadosGeral', 'placeholder' => __('Pesquisar atendimento...'), ]) @foreach ($chamados as $chamado) {{ $chamado->numeroChamado }} {{ date('d/m/Y H:i', strtotime($chamado->created_at)) }} {{ $chamado->convenioAtual }} {{ $chamado->assunto }} {{ $chamado->statusChamado }}
@if ($chamado->statusChamado == 'Em edição') @include('components.buttons._editButton', [ 'route' => 'admin.contaAngra.chamados.edit', 'id' => $chamado->id, 'title' => __('Editar'), 'fontawesome' => null, 'permission' => 'GERENCIADOR_DE_CONTA_ANGRA', ]) @include('components.buttons._deleteButton', [ 'message' => __( '* Este atendimento e seu histórico serão excluídos e esta ação não poderá ser desfeita, deseja continuar?'), 'route' => 'admin.contaAngra.chamados.destroy', 'id' => $chamado->id, 'title' => __('Excluir'), 'fontawesome' => null, 'permission' => 'GERENCIADOR_DE_CONTA_ANGRA', ]) @else @include('components.buttons._editButton', [ 'route' => 'admin.contaAngra.chamados.show', 'id' => $chamado->id, 'title' => __('Página de Acompanhamento'), 'fontawesome' => "", 'permission' => 'GERENCIADOR_DE_CONTA_ANGRA', ]) @endif
@endforeach
@if (!is_null($chamadosTi))
@include('components/forms/_filtroPesquisaDefault', [ 'id' => 'filtroChamadosTi', 'placeholder' => __('Pesquisar chamado TI...'), ])
@forelse ($chamadosTi as $ti) @php $tiColors = [ 'pendente' => 'warning', 'em_andamento' => 'info', 'atendido' => 'success', 'cancelado' => 'secondary', ]; $tiLabels = [ 'pendente' => __('Pendente'), 'em_andamento' => __('Em Andamento'), 'atendido' => __('Atendido'), 'cancelado' => __('Cancelado'), ]; @endphp @empty @endforelse
{{ __('Protocolo') }} {{ __('Título') }} {{ __('Assunto') }} {{ __('Setor') }} {{ __('Status') }} {{ __('Aberto em') }} {{ __('Ações') }}
{{ $ti->numero }} {{ $ti->titulo }} {{ $ti->tiDetalhe?->assunto_nome ?? '—' }} {{ $ti->tiDetalhe?->setor_nome ?? '—' }} {{ $tiLabels[$ti->status] ?? $ti->status }} {{ $ti->data_abertura?->format('d/m/Y H:i') ?? '—' }}
{{ __('Nenhum chamado de suporte TI encontrado.') }}
@endif
@endsection