@extends('layouts.admin') @section('header')

{{ __('Machine Details') }}: {{ $machine->name }}

← {{ __('Back to List') }}
@endsection @section('content')

{{ __('Basic Information') }}

{{ __('Status') }}

{{ __($machine->status === 'online' ? 'Online' : ($machine->status === 'error' ? 'Error' : 'Offline')) }}

{{ __('Location') }}

{{ $machine->location }}

{{ __('Last Heartbeat') }}

{{ $machine->last_heartbeat_at ?? __('N/A') }}

{{ __('Current Page') }}

{{ $machine->current_page_label ?: '-' }}

{{ __('Real-time Operation Logs (Last 50)') }}

{{ __('All Times System Timezone') }}
@forelse ($machine->logs as $log) @empty @endforelse
{{ __('Time') }} {{ __('Level') }} {{ __('Message') }}
{{ $log->created_at->format('Y-m-d H:i:s') }} @php $levelClasses = [ 'info' => 'text-blue-400', 'warning' => 'text-yellow-400', 'error' => 'text-red-400 font-bold', ]; @endphp [{{ strtoupper($log->level) }}] {{ $log->message }} @if($log->context)
{{ json_encode($log->context) }}
@endif
{{ __('No logs found') }}
@endsection