@extends('layouts.admin.theme') @section('title', env('APP_NAME') . ' :: ' . __('Manifestação - MobiAngra')) @section('content')
@php $headLine = ' ' . __('Manifestação do cidadão'); @endphp @include('components.buttons._headLineButtonsBackAdd', [ 'headLine' => $headLine, 'routeBack' => 'admin.mobiangra.index', 'routeBackParams' => $filterParams, 'nameBack' => __('Voltar'), 'permission' => 'GERENCIADOR_DE_MOBIANGRA', ])
@include('errors.messageFlash')
@if ($chamado)
{{ __('Nº registro') }}:
{{ $chamado->numeroChamado }}
{{ __('Status') }}:
{{ $chamado->statusChamado }}
@endif
{{ __('Registrado em') }}:
{{ $manifestacao->created_at?->format('d/m/Y H:i') }}
{{ __('Solicitante') }}:
{{ $manifestacao->identificacao }}
{{ __('E-mail') }}:
{{ $manifestacao->email }}
{{ __('Linha') }}:
{{ $manifestacao->linha ?: '-' }}
{{ __('Sentido') }}:
{{ $sentidoLabel }}
{{ __('Horário') }}:
{{ $manifestacao->horario ?: '-' }}
{{ __('Local') }}:
{{ $manifestacao->local ?: '-' }}
{{ __('Número do veículo') }}:
{{ $manifestacao->numero_veiculo ?: '-' }}
{{ __('Relato') }}:
{!! nl2br(e($manifestacao->relato)) !!}
@if ($manifestacao->imagem_path)
{{ __('Imagem anexada') }}:

{{ __('Clique para ver em tela cheia') }}

@endif
@if ($chamado)
{{ __('Andamento do chamado') }}
@foreach ($mensagens as $mensagem)
  • {{ $mensagem->solicitacao ? __('Solicitação inicial') : __('Mensagem') }} - {{ $mensagem->created_at?->format('d/m/Y H:i') }}
  • {{ __('Autor') }}: {{ $mensagem->user?->name ?? __('Sistema') }}
  • {{ __('Conteúdo') }}:
    {!! $mensagem->mensagem !!}
  • @php $index = $mensagem->solicitacao ? 0 : 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
@endforeach @if (($chamado->statusChamado ?? '') !== 'Finalizado' && (auth()->user()->getPermissaoDetalhes('GERENCIADOR_DE_MOBIANGRA')['editar'] ?? false))
@csrf @include('components.inputs._textarea', [ 'label' => __('Nova mensagem ao requerente'), 'name' => 'mensagem', 'id' => 'manifestacao_mensagem', '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.inputs._selectType', [ 'for' => 'statusChamado', 'label' => __('Status'), 'name' => 'statusChamado', 'required' => true, 'readonly' => false, 'options' => $statusChamado, 'selected' => old('statusChamado', $chamado->statusChamado), 'placeholder' => __('Selecione o status do chamado...'), 'small' => __('Informe o status atual do chamado.'), 'onchange' => null, ])
@endif @else
{{ __('Manifestação legada sem chamado vinculado. Não é possível registrar andamento por este canal.') }}
@endif
@endsection