@extends('adminlte::page') @section('title', 'Log #'.$log->id) @section('content_header') @stop @section('content') @php $tipoClass = in_array($log->tipo, ['info', 'warning', 'error', 'debug', 'critical'], true) ? $log->tipo : 'default'; $logsRelacionados = \App\Models\LogInstalacao::where('instalacao_id', $log->instalacao_id) ->where('id', '!=', $log->id) ->orderBy('created_at', 'desc') ->limit(10) ->get(); @endphp

Log #{{ $log->id }} · {{ $log->instalacao->nome ?? 'N/A' }}

Detalhe do evento

{{ $log->created_at->format('d/m/Y H:i:s') }} · {{ $log->created_at->diffForHumans() }}

{{ strtoupper($log->tipo) }} Voltar à lista

Mensagem

{{ $log->mensagem_viewer }}
@if($log->contexto)

Contexto técnico

{{ $log->contexto_viewer }}
@endif

Ferramentas de diagnóstico

@if($log->contexto) @endif @if($log->ip) @endif

Metadados

  • Instalação {{ $log->instalacao->nome ?? 'N/A' }}
  • Data/hora {{ $log->created_at->format('d/m/Y H:i') }}
  • ID #{{ $log->id }}
  • @if($log->canal)
  • Canal {{ $log->canal }}
  • @endif @if($log->ip)
  • IP {{ $log->ip }}
  • @endif
@if($log->user_agent)

User agent:
{{ Str::limit($log->user_agent, 200) }}

@endif

Logs relacionados

@if($logsRelacionados->isNotEmpty())
@foreach($logsRelacionados as $logRelacionado) @php $relClass = in_array($logRelacionado->tipo, ['info', 'warning', 'error', 'debug', 'critical'], true) ? $logRelacionado->tipo : 'default'; @endphp @endforeach
Nível Mensagem
{{ strtoupper($logRelacionado->tipo) }} {{ Str::limit($logRelacionado->mensagem_viewer, 60) }}
@else

Nenhum log relacionado nesta instalação.

@endif
@stop @section('css') @stop @section('js') @stop