@php($statusCustom = session('configuration')['ocorrencia_status'])
Total de ocorrências: {{$ocorrencias->total}}
@foreach($ocorrencias->data as $ocorrencia) @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 = $statusCustom[$ocorrencia->status_id -1]->nome) @php($ocorrenciaDadosUserPermition = ($ocorrencias->configuration->showUserHomeScreen == 1 ? true: false)) @php($ocorrenciaAutenticada = false) @php($ocorrenciaUserFoto = false) @if($ocorrencia->user_id != null) @php($ocorrenciaAutenticada = true) @if(isset($ocorrencia->user->foto)) @if($ocorrencia->user->foto != null) @php($ocorrenciaUserFoto = true) @endif @endif @endif
@if($srcDefault == false) face @endif {{ $ocorrenciaStatus }}
{{ $ocorrencia->texto }}
@if($ocorrenciaDadosUserPermition)
@if(!$ocorrenciaAutenticada)
X
  Anônima @endif @if($ocorrenciaAutenticada) @if($ocorrenciaUserFoto) @else
{{ substr($ocorrencia->user->name, 0, 1) }}
@endif   {{ $ocorrencia->user->name }} @endif
@endif
place @if(isset($ocorrencia->bairro->nome)) {{ $ocorrencia->bairro->nome }} @else ----------------- @endif
date_range {{ \Carbon\Carbon::parse($ocorrencia->created_at)->format('d/m/Y') }}
remove_red_eye {{ $ocorrencia->visualizacoes }}
@endforeach
@if($ocorrencias->last_page > 1)
@endif {{-- @if($ocorrencias->current_page == $ocorrencias->last_page)
Não existe mais ocorrências aqui !
Você pode alterar o filtro para ver mais
@endif --}}