@extends('layouts.admin') @section('header')
| 名稱 | 位置 | 狀態 | 溫度 | 最後心跳 | 操作 |
|---|---|---|---|---|---|
|
{{ $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 {{ strtoupper($machine->status) }} | {{ $machine->temperature ?? '--' }} °C | {{ $machine->last_heartbeat_at ? $machine->last_heartbeat_at->diffForHumans() : '從未連線' }} | 查看日誌 |