@php $_v = '07092024-002'; @endphp {{-- # Gráficos --}} @php try { $Graficos = null; if(class_exists('\App\Models\RGraficos')) { $Graficos = \App\Models\RGraficos::find(1); } }catch(\Exception $e){ /* ... */ } @endphp {{-- - # --}} @extends('layouts.app') @section('style') @endsection @section('content')
@if(1) @endif {{-- # Gráficos --}} @php if(!is_null($Graficos) && $Graficos && $Graficos->status){ try { eval(\App\Helper\Security::NO_CODE($Graficos->codigo,['db'],true)); }catch(\Throwable $e){ echo '[ Graficos -> CÓDIGO -| Error ]'; Log::info('Graficos -> CÓDIGO -| Error: '.$e->getMessage()); } } @endphp {{-- # Gráficos - Topo --}} @if(!is_null($Graficos) && $Graficos && $Graficos->status && !$Graficos->posicao) @php try { $BladeCompile = \Blade::compileString(\App\Helper\Security::NO_CODE($Graficos->html,['db'],true)); eval("?>" . $BladeCompile . " HTML -| Error ]'; Log::info('Graficos -> CÓDIGO -| Error: '.$e->getMessage()); } @endphp @endif
@if(1) @if(\App\Models\Permissions::permissaoUsuario(\Auth::user(), 'App\Http\Controllers\IndicatorsController@show')) @foreach($indicadores as $key => $value) @php try { if (strpos(strtolower($value->query), 'select') !== false) { $query = strtolower($value->query); $query = str_replace('$user_id', \Auth::user()->id, $query); $result = DB::select($query); if(!empty($result)){ $count = current($result[0]); } else { $count = 0; } } else { $value->name = 'SCRIPT INVÁLIDO'; $value->color = 'red'; $value->description = 'Não foi possível obter resultado'; $count = 0; } } catch (Exception $e) { continue; } @endphp
{{$count}} @if($value->link != '') @endif

{{$value->name}}

@if($value->link != '')
@endif

{{$value->description}}

@endforeach @endif @endif
@if(isset($calendar) && $calendar && \App\Models\Permissions::permissaoUsuario(\Auth::user(), "App\Http\Controllers\EventsController@index_calendar"))
@include('events.calendar_content',['_v'=>$_v])

@endif @if(env('GANTT') and \App\Models\Permissions::permissaoUsuario(\Auth::user(), 'App\Http\Controllers\GanttController@get'))
@endif {{-- # Gráficos - Fundo --}} @if(!is_null($Graficos) && $Graficos && $Graficos->status && $Graficos->posicao) @php try { $BladeCompile = \Blade::compileString(\App\Helper\Security::NO_CODE($Graficos->html,['db'],true)); eval("?>" . $BladeCompile . " HTML -| Error ]'; Log::info('Graficos -> CÓDIGO -| Error: '.$e->getMessage()); } @endphp @endif {{-- - # --}}
@section('script') @endsection @endsection