@extends('layouts.admin') @section('header')
| {{ __('Name') }} | {{ __('Location') }} | {{ __('Status') }} | {{ __('Temperature') }} | {{ __('Last Heartbeat') }} | {{ __('Actions') }} |
|---|---|---|---|---|---|
|
{{ $machine->name }}
{{ $machine->firmware_version }}
|
{{ $machine->location }} | @php $statusClasses = [ 'online' => 'bg-green-100 text-green-800', 'offline' => 'bg-gray-100 text-gray-800', 'error' => 'bg-red-100 text-red-800', ]; $class = $statusClasses[$machine->status] ?? 'bg-blue-100 text-blue-800'; @endphp {{ __($machine->status === 'online' ? 'Online' : ($machine->status === 'error' ? 'Error' : 'Offline')) }} | {{ $machine->temperature ?? '--' }} °C | {{ $machine->last_heartbeat_at ? $machine->last_heartbeat_at->diffForHumans() : __('Never Connected') }} | {{ __('View Logs') }} |