@php($srcImage = (!empty($ocorrencia->arquivos_ocorrencias) ? $ocorrencia->arquivos_ocorrencias[0]->arquivo : custom_system('API_URL') . '/' . $ocorrencia->subcategoria->imagem )) @php($srcDefault = (!empty($ocorrencia->arquivos_ocorrencias) ? false : true )) @php($rotoloBackGround = \App\Services\ControleColor::arrayColor[$ocorrencia->status_id]) @php($ocorrenciaStatus = \App\Models\Status::statusArray[$ocorrencia->status_id]) @php($bairro = (isset($ocorrencia->bairro->nome) ? $ocorrencia->bairro->nome : '-----------------')) @php($rua = (isset($ocorrencia->rua->nome) ? $ocorrencia->rua->nome : '-----------------')) @php($complemento = (!empty($ocorrencia->complemento) ? $ocorrencia->complemento : '-----------------')) @php($complementoExist = (!empty($ocorrencia->complemento) ? true : false)) @php($pontoReferencia = (!empty($ocorrencia->ponto_referencia) ? $ocorrencia->ponto_referencia : '-----------------')) @php($pontoReferenciaExist = (!empty($ocorrencia->ponto_referencia) ? true : false)) @php($latitude = null) @php($longitude = null) @php($typeMap = null) @if(!empty($ocorrencia->lat)) @php($latitude = $ocorrencia->lat) @php($longitude = $ocorrencia->long) @php($typeMap = 'MARKER') @else @if(!empty($ocorrencia->bairro->lat)) @php($latitude = $ocorrencia->bairro->lat) @php($longitude = $ocorrencia->bairro->lon) @php($typeMap = 'LOCATE') @endif @endif chat
place   {{ $bairro }}   {{ $rua }}
@if($complementoExist == true)
more   {{ $complemento }}
@endif @if($pontoReferenciaExist == true)
more   {{ $pontoReferencia }}
@endif @if($latitude == null) @if($srcDefault == false) face @endif {{ $ocorrenciaStatus }} @endif @if($latitude != null)
@endif

{{ $ocorrencia->texto }}
vpn_key   {{ $ocorrencia->codigo }}
share
thumb_up   {{ count($ocorrencia->adesoes) }}
remove_red_eye   {{ $ocorrencia->visualizacoes }}
business   {{ $ocorrencia->subcategoria->categoria->nome }}
subdirectory_arrow_right   {{ $ocorrencia->subcategoria->nome }}
Galeria
@forelse($ocorrencia->arquivos_ocorrencias as $arquivo)
@empty
block   Usuário não envio foto
@endforelse
Time line do atendimento
@foreach($ocorrencia->historicos as $historico) @php($rotoloBackGround = \App\Services\ControleColor::arrayColor[$historico->status_id]) @php($ocorrenciaStatus = \App\Models\Status::statusArray[$historico->status_id]) @if(!in_array($historico->status_id , [ \App\Models\Status::EM_ATENDIMENTO, \App\Models\Status::FINALISADA ]))

{{ $ocorrenciaStatus }}

{{ \Carbon\Carbon::parse($historico->created_at)->format('d/m/Y') }}

{{ $historico->status_id }}
@endif @if($historico->status_id === \App\Models\Status::EM_ATENDIMENTO)

{{ $ocorrenciaStatus }}

{{ \Carbon\Carbon::parse($historico->created_at)->format('d/m/Y') }}

@foreach($ocorrencia->acoes as $acao)
{{ ($acao->pivot->concluido == 1 ? 'check' : 'access_time') }}    {{ $acao->nome }}
@endforeach
{{ $historico->status_id }}
@endif @if($historico->status_id === \App\Models\Status::FINALISADA) @php($maximoEstrela = 5)

{{ $ocorrenciaStatus }}

{{ \Carbon\Carbon::parse($historico->created_at)->format('d/m/Y') }}

@if($ocorrencia->nota != null) @for($i = 0; $i < $ocorrencia->nota; $i++) star @endfor @for($i = 0; $i < ($maximoEstrela - $ocorrencia->nota); $i++) star_border @endfor @endif
@foreach($ocorrencia->acoes as $acao)
{{ ($acao->pivot->concluido == 1 ? 'check' : 'access_time') }}    {{ $acao->nome }}
@endforeach
{{ $historico->status_id }}
@endif @endforeach