@extends('admin.base-admin') @php $contador_tot=0; $contador = 0; $contador_ = 0; @endphp @section('content')
{{--

Administrador de chamados

Admin chamados - Suporte TI

--}}
@foreach($daily_chamado as $daily) @php if (date("20y-m-d", strtotime($daily['date_creation'])) == date("Y-m-d", strtotime('-3 hour')) and $daily['status'] != 6) $contador += 1; if (date("20y-m-d", strtotime($daily['date_mod'])) == date("Y-m-d", strtotime('-3 hour')) and $daily['status'] == 5) $contador_ += 1; @endphp @endforeach

Atividade

{{$contador}} {{$contador_}}

{{--
{{$contador}} {{$contador_}}
--}}

Total abertos

@php echo count($chamados); @endphp

Sem interação

@php echo count($chamados->where('status','!=', '3')->where('date_mod', '<', date("Y-m-d",strtotime("-3 days")))); @endphp

{{-- --}}
{{-- TITULOS TABELA --}}

ID

CHAMADO

STATUS

ABERTURA

.MODIFC

{{-- CONTEUDO TABELA --}} @if (count($chamados) != 0) @foreach($chamados as $chamado)
@if (date("Y-m-d H:i:s", strtotime('-3 days')) < $chamado['date_mod'] or $chamado['status'] == 3)
@else
@endif @if ($chamado['actiontime']) @endif
{{--
{{$chamado['id']}}
--}}
{{$chamado['id']}}
{{$chamado['name'] }}

{{$chamado['content_obs']}}

{{-- STATUS (ABERTO/EM ANDAMENTO) --}} @if ($chamado['status'] == '2' )
Aberto

@endif @if ($chamado['status'] == '3' )

Planejado

@if ($chamado['time_to_resolve'] != null)

{{date('d/m/20y', strtotime($chamado['time_to_resolve']))}}

@else
@endif
@endif @if ($chamado['status'] == '4')
Andamento
{{-- Atribuido para : --}}
@endif
{{date('d/m/20y', strtotime($chamado['date_creation'])) }}
@if (date("Y-m-d H:i:s", strtotime('-3 days')) < $chamado['date_mod'] or $chamado['status'] == 3)
{{date('d/m/20y', strtotime($chamado['date_mod'])) }}
@else
{{date('d/m/20y', strtotime($chamado['date_mod'])) }}
@if(date("m") == date('m', strtotime($chamado['date_mod'])))
{{date("d") - date('d', strtotime($chamado['date_mod'])) }} dias s/ interação
@else (Há muito tempo) @endif @endif
{{-- MODAL STATUS --}} @endforeach @else

Nada aqui, tome um cafézinho enquanto isso

@endif
{{-- MODAL CHAMADOS --}}
@if ($message = Session::get('success'))

{{$message}}

@endif @if ($message = Session::get('success_solu'))

Sucesso!
Chamado ID: {{$message}} restaurado

@endif @if ($message = Session::get('error'))

Ocorreu um erro!
Favor entrar em contato com o desenvolvedor.

@endif
@if ($message = Session::get('error_estoque'))

Ocorreu um erro!
Verificar quantidade disponível no estoque.

@endif {{-- FOOTER --}}
© 2022 Desenvolvido por : Casas da Água
@endsection