@extends('layouts.admin.theme') @section("title", env("APP_NAME") . " :: Meu Chamados") @section('content')
@php $headLine = " Meu Chamados"; @endphp @include('components.buttons._headLineButtonsBackAdd', [ 'headLine' => __($headLine), 'routeBack' => 'admin.contaAngra.index', 'routeBackParams' => [], 'nameBack' => __("Voltar"), 'routeAdd' => 'admin.contaAngra.chamados.create', 'routeAddParams' => [], 'nameAdd' => __('Novo atendimento'), "permission" => "GERENCIADOR_DE_CONTA_ANGRA", ])
@include("errors.messageFlash") @include('components.modal._modelProfile') @include('components/forms/_filtroPesquisaDefault', [ "id" => "cadastroDeUsuario", "placeholder" => "Pesquisar atendimento..." ]) @php $index = 0; $mensagensNaoLidasPorChamado = $mensagensNaoLidasPorChamado ?? []; @endphp @foreach($chamados as $chamado) {{ 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
@php $index++; @endphp @endforeach
@endsection