@include('components.buttons._headLineButtonsBackAdd', [
'headLine' => __('Dashboard - Monitoramento de Ocorrências'),
'routeBack' => null,
'tabs' => [
[
'route' => 'admin.ocorrencias-pca.acompanhamento',
'label' => __('Acompanhamento Individual'),
'class' => 'fa-users',
'permission' => 'GERENCIADOR_DE_OCORRENCIAS_PCA',
],
],
])
@include('errors.messageFlash')
@php
$statusConfig = [
'ABERTO' => ['bg' => 'warning', 'icon' => 'fa-folder-open', 'text' => 'text-gray', 'label' => 'Aberto'],
'CONCLUÍDO' => ['bg' => 'success', 'icon' => 'fa-check-circle', 'text' => 'text-gray', 'label' => 'Concluído'],
'OUVIDORIA' => ['bg' => 'info', 'icon' => 'fa-headset', 'text' => 'text-gray', 'label' => 'Ouvidoria'],
'SEM ÓRGÃO' => ['bg' => 'secondary', 'icon' => 'fa-building', 'text' => 'text-gray', 'label' => 'Sem órgão'],
'SENDO AVALIADO' => ['bg' => 'primary', 'icon' => 'fa-hourglass-half', 'text' => 'text-gray', 'label' => 'Sendo avaliado'],
'REPROVADO' => ['bg' => 'danger', 'icon' => 'fa-times-circle', 'text' => 'text-gray', 'label' => 'Reprovado'],
'MANUTENÇÃO EM ANDAMENTO' => ['bg' => 'dark', 'icon' => 'fa-tools', 'text' => 'text-gray', 'label' => 'Manutenção em andamento'],
];
@endphp
{{-- Cards de Estatísticas Gerais --}}
{{ __('Total de Ocorrências') }}
{{ $totalAberto ?? 0 }}
{{ __('Aberto hoje') }}
{{ $quantidadeAbertoHoje ?? 0 }}
{{ __('Este mês') }}
{{ $abertoMesAtual ?? 0 }}
{{ __('Ano atual') }}
{{ $abertoAnoAtual ?? 0 }}
{{ __('Ano passado') }}
{{ $abertoAnoPassado ?? 0 }}
{{ __('Variação anual') }}
{{ number_format($variacaoAnual, 2) }}%
{{-- Cards de Status --}}
@foreach ($statusConfig as $status => $config)
{{ __($config['label']) }}
{{ $ocorrenciasPorStatus[$status] ?? 0 }}
@endforeach
{{ __('Ocorrências por dia em') }}
{{ \Carbon\Carbon::createFromFormat('!m', $mesSelecionado)->locale('pt_BR')->translatedFormat('F') }}/{{ $anoSelecionado }}
{{ __('Ocorrências por mês nos últimos anos') }}