@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($statusCustom = session('configuration')['ocorrencia_status']) @php($ocorrenciaStatus = $statusCustom[$ocorrencia->status_id - 1]->nome) @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($options['map'] == 'true') @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 @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 }}
thumb_up   {{ count($ocorrencia->adesoes) }}
remove_red_eye   {{ $ocorrencia->visualizacoes }}
business   {{ $ocorrencia->subcategoria->categoria->nome }}
subdirectory_arrow_right   {{ $ocorrencia->subcategoria->nome }}
@if($ocorrencia->status_id === \App\Models\Status::FINALISADA)
Avaliação do Atendimento
@if($ocorrencia->nota !== null)
@php($maximoEstrela = 5) @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
@endif @if($ocorrencia->nota === null and $ocorrencia->user_id === session('user')->id)
Marque abaixo a sua avaliação.
star star_border star_border star_border star_border
@else Aguardando avaliação @endif @endif @if(session('configuration')['bloquear_compartilhamento'] !== 1)
Compartilhar
@endif
Galeria
@forelse($ocorrencia->arquivos_ocorrencias as $arquivo)
@empty
block   Usuário não enviou foto
@endforelse
Linha do tempo do atendimento
@php($countChange = 0) @foreach($ocorrencia->historicos as $keyHistorico => $historico) @foreach($ocorrencia->history_change->secretaria_subcatgoria as $keySubcategoria => $historicoSubcategoria) @if($keySubcategoria === 0 ) @continue @endif @php($historicoSubcategoriaDate = \Carbon\Carbon::parse($historicoSubcategoria->data)) @php($historicoDataCurrent = \Carbon\Carbon::parse($historico->created_at)) @if(isset($ocorrencia->historicos[$keyHistorico + 1])) @php($historicoDataNext = \Carbon\Carbon::parse($ocorrencia->historicos[$keyHistorico + 1]->created_at)) @else @php($historicoDataNext = \Carbon\Carbon::now()) @endif @if($historicoSubcategoriaDate->between($historicoDataCurrent, $historicoDataNext) and $countChange > 0)

Troca de secretaria e subcategoria

Secretaria:

Tipo:

Data:

{{ $ocorrencia->history_change->secretaria_subcatgoria[$keySubcategoria - 1]->categoria }}

{{ $ocorrencia->history_change->secretaria_subcatgoria[$keySubcategoria - 1]->subcategoria }}

{{ \Carbon\Carbon::parse($ocorrencia->history_change->secretaria_subcatgoria[$keySubcategoria - 1]->data)->format('d/m/Y') }}

chevron_right

{{ $historicoSubcategoria->categoria }}

{{ $historicoSubcategoria->subcategoria }}

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

{{--

###############

--}}
update
@endif @php($countChange++) @endforeach @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 ]))

{{ $statusCustom[$historico->status_id - 1]->nome }}

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

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

{{ $statusCustom[$historico->status_id - 1]->nome }}

{{ \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)

{{ $statusCustom[$historico->status_id - 1]->nome }}

{{ \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 @endforeach
@if (isset($ocorrencia->user_id))
@endif