@extends('layouts.admin') @section('title', __('Machine Logs')) @section('content')

{{ __('Machine Logs') }}

{{ __('Monitor events and system activity across your vending fleet.') }}

@forelse ($logs as $log) @empty @endforelse
{{ __('Timestamp') }} {{ __('Machine') }} {{ __('Level') }} {{ __('Message Content') }}
{{ $log->created_at->format('Y-m-d') }}
{{ $log->created_at->format('H:i:s') }}
{{ $log->machine->name ?? __('Unknown') }} @php $badgeStyles = [ 'info' => 'bg-cyan-500/10 text-cyan-600 dark:text-cyan-400 border-cyan-500/20', 'warning' => 'bg-amber-500/10 text-amber-600 dark:text-amber-400 border-amber-500/20', 'error' => 'bg-rose-500/10 text-rose-600 dark:text-rose-400 border-rose-500/20', ]; $currentStyle = $badgeStyles[$log->level] ?? 'bg-slate-500/10 text-slate-600 border-slate-500/20'; @endphp {{ __(ucfirst($log->level)) }}

{{ $log->message }}

@if($log->context)
{{ json_encode($log->context, JSON_UNESCAPED_UNICODE | JSON_PRETTY_PRINT) }}
@endif
{{ __('No matching logs found') }}
{{ $logs->links('vendor.pagination.luxury') }}
@endsection