@extends(layoutTenant()) @section('title') Home - Licenciamento Ambiental @php $pagina = "home"; @endphp @endsection @section('content')
@if($errors->all()) @endif @if (session('success'))
{{ session('success') }}
@endif @if (session('erro'))
{{ session('erro') }}
@endif
Processos Finalizados

{{\App\Form::where('processo',1000)->orwhere('status', 2)->count() + \App\FCE14::where('processo',1000)->orwhere('status', 2)->count() + \App\Dispensa::where('processo',1000)->orwhere('status', 2)->count()}}

Processos Arquivados

{{\App\Form::where('status',0)->count() + \App\FCE14::where('status',0)->count() + \App\Dispensa::where('status',0)->count()}}

Processos Abertos

{{ \App\Form::where('status', 1)->count() + \App\FCE14::where('status', 1)->where('tramite_ok', 0)->count() + \App\Dispensa::where('status', 1)->count() }}

Total de Processos

{{ \App\Form::all()->count() + \App\FCE14::all()->where('tramite_ok', 0)->count() + \App\Dispensa::all()->count() }}

Processos Excluídos pelos Analistas

{{ \App\Form::where('status', 3)->count() + \App\FCE14::where('status', 3)->where('tramite_ok', 0)->count() + \App\Dispensa::where('status', 3)->count() }}

Processos Excluídos pelos Usuários

{{ \App\Form::where('status', 4)->count() + \App\FCE14::where('status', 4)->where('tramite_ok', 0)->count() + \App\Dispensa::where('status', 4)->count() }}

Total de Processos Excluídos

{{ \App\Form::where('status', '>', 2)->where('status', '<', 5)->count() + \App\FCE14::where('status', '>', 2)->where('status', '<', 5)->where('tramite_ok', 0)->count() + \App\Dispensa::where('status', '>', 2)->where('status', '<', 5)->count()}}

@endsection