@extends('layouts.admin.theme') @section("title", env("APP_NAME") . " :: Chamados - Página de Acompanhamento") @section('content')
@php $headLine = " Chamados - Página de Acompanhamento"; @endphp @include('components.buttons._headLineButtonsBackAdd', [ 'headLine' => __($headLine), 'routeBack' => 'admin.contaAngra.chamados.index', 'routeBackParams' => [], 'nameBack' => __("Voltar"), "permission" => "GERENCIADOR_DE_CONTA_ANGRA", ])
@include("errors.messageFlash") @include('components.modal._modelProfile')
@foreach($mensagens as $mensagem) @if($mensagem->solicitacao)
  • {{ __("Data") }}: {{ date("d/m/Y H:i", strtotime($chamado->created_at)) }}

  • {{ __("Solicitação") }}: {{ $chamado->numeroChamado }}
  • {{ __("Criado por") }}: {{ $chamado->user->name }}
  • {{ __("Demanda iniciada em") }}: {{ $chamado->convenio }}
  • {{ __("Estado atual da demanda") }}: {{ $chamado->convenioAtual }}
  • {{ __("Assunto") }}: {{ $chamado->assunto }}
  • {{ __("Solicitação") }}: {!! $mensagem->mensagem !!}
  • {{ __("Status") }}: {{ $chamado->statusChamado }}
  • @php $index = 0; @endphp @foreach($mensagem->arquivos as $arquivo)
  • @include('components.tables._openPhotoAndPdf', [ 'asset' => $arquivo->link, 'alt' => $arquivo->nome, 'title' => $arquivo->nome, 'text' => $arquivo->nome, 'index' => $index, ])
  • @php $index++; @endphp @endforeach

@endif @endforeach @foreach($mensagens as $mensagem) @if(!$mensagem->solicitacao)
  • {{ __("Data") }}: {{ date("d/m/Y H:i", strtotime($mensagem->created_at)) }}

  • {{ __("Criado por") }}: {{ $mensagem->user->name }}
  • {{ __("Mensagem") }}: {!! $mensagem->mensagem !!}
  • @php $index = 100; @endphp @foreach($mensagem->arquivos as $arquivo)
  • @include('components.tables._openPhotoAndPdf',[ 'asset' => $arquivo->link, 'alt' => $arquivo->nome, 'title' => $arquivo->nome, 'text' => $arquivo->nome, 'index' => $index, ])
  • @php $index++; @endphp @endforeach

@endif @endforeach @if($chamado->statusChamado != "Finalizado")
id) }}" method="post" enctype="multipart/form-data">
@csrf @method('post') @include('components.inputs._textarea', [ 'label' => 'Nova mensagem', 'name' => 'mensagem', 'id' => 'limiteCaracter', 'rows' => 5, 'required' => true, 'height' => '200px', 'class' => "textarea-body", 'style' => null, "oninput" => null, 'value' => old('mensagem'), 'small' => null, ])
@include('components.inputs._inputType',[ "for" => "link", "label" => "Arquivos", "name" => "link[]", "id" => 'link', "required" => false, "type" => 'file', "old" => null, "oninput" => null, "readonly" => true, "multiple" => true, "small" => "* Apenas documentos de imagem: PDF, JPG, JPEG, PNG, GIF, BMP, WEBP.", "accept" => 'application/pdf,image/*', ])
@include('components.buttons._backAndSend', [ 'textBack' => 'Voltar', 'textSend' => 'Nova mensagem', 'routeBack' => 'admin.contaAngra.chamados.index' ])
@endif
@endsection