@extends('layouts.appReportes') @section('htmlheader_title','audits') {{-- @endsection --}} @section('contentheader_title', 'audits') {{-- @endsection --}} @section('main-content')

auditoria (last month)

@php function desmenusar($variable) { $tipo = gettype($variable); $respuesta = 'el tipo de dato es '.$tipo; switch ($tipo) { case 'boolean': $respuesta = $variable; break; case 'integer': $respuesta = $variable; break; case 'double': $respuesta = $variable; break; case 'string': $subtipo = json_decode($variable); // $tipo = gettype($subtipo); // $respuesta = 'json decode result is'.$tipo; $respuesta = $subtipo; break; case 'array': $respuesta = $variable; break; case 'object': $respuesta = $variable; break; case 'resource': $respuesta = $variable; break; case 'NULL': $respuesta = $variable; break; case 'unknown type': $respuesta = 'unknown type'; break; default: $respuesta = 'variable indefinida'; break; } return $respuesta; } @endphp @foreach($auditorias as $auditoria) @endforeach
ID TIPO Tabla Registro Usuario LOG tipo de log Creado
{{$auditoria->id}} {{$auditoria->AuditType}} {{$auditoria->AuditTabla}} {{$auditoria->AuditRegistro}} {{$auditoria->AuditUser}} {{-- {{gettype ( $auditoria->Auditlog )}} --}} @switch(gettype($auditoria->Auditlog)) @case('boolean') {{$auditoria->Auditlog}} @break @case('integer') {{$auditoria->Auditlog}} @break @case('double') {{$auditoria->Auditlog}} @break @case('string') {{$auditoria->Auditlog}} @break @case('array') @foreach ($auditoria->Auditlog as $key => $value) {{$key}}: @if(is_array($value)) @foreach ($value as $key2 => $value2) {{$key2}}: @if(is_array($value2)) @foreach ($value2 as $key3 => $value3) {{$key3}}: @if(is_array($value3)) {{'array de 3er nivel'}} @else {{$value3}}
@endif @endforeach @else {{$value2}}
@endif @endforeach @else {{$value}}
@endif @endforeach {{-- @foreach ($auditoria->Auditlog as $key => $value) clave:{{$key}} valor:{{$value}} @endforeach @break--}} @case('object') {{-- {{$auditoria->Auditlog}} --}} {{-- @foreach ($auditoria->Auditlog as $key => $value) clave:{{$key}} valor:{{$value}} @endforeach --}} @break @case('resource') {{$auditoria->Auditlog}} @break @case('NULL') {{$auditoria->Auditlog}} @break @case('unknown type') {{$auditoria->Auditlog}} @break @default @endswitch
{{$auditoria->tipo}} {{$auditoria->created_at}}
ID TIPO Tabla Registro Usuario LOG tipo de log Creado
@endsection @section('scripts')