@extends('layouts.app') @section('title', 'Détails Capteur') @section('breadcrumb')
{{ $sensor->is_active ? 'Actif' : 'Inactif' }}
{{ $sensor->code }}
Type: {{ ucfirst($sensor->type) }}
Bâtiment: {{ $sensor->building->name ?? 'Non assigné' }}
Lieu: {{ $sensor->location ?? '-' }}
Seuils: {{ $sensor->min_threshold ?? '∞' }} - {{ $sensor->max_threshold ?? '∞' }}
| Date / Heure | Valeur | Statut |
|---|---|---|
| {{ $reading->recorded_at->format('d/m/Y H:i:s') }} | {{ $reading->value }} | @if(($sensor->min_threshold && $reading->value < $sensor->min_threshold) || ($sensor->max_threshold && $reading->value > $sensor->max_threshold)) Hors limites @else OK @endif |
| Aucune lecture enregistrée pour le moment. | ||