@extends('layouts.app') @section('title', 'Détails Bâtiment') @section('breadcrumb') @endsection @section('content')

{{ $building->name }}

{{ $building->is_active ? 'Actif' : 'Inactif' }}

{{ $building->type }} ({{ $building->code }})


Capacité: {{ $building->capacity ?? '-' }} têtes

Surface: {{ $building->area ?? '-' }} m²

Description: {{ $building->description ?? '-' }}

Capteurs installés
@forelse($building->sensors as $sensor) @empty @endforelse
Nom Type Dernière lecture Statut
{{ $sensor->name }} {{ ucfirst($sensor->type) }} @if($sensor->readings->isNotEmpty()) {{ $sensor->readings->last()->value }} @else - @endif @if($sensor->is_active) Actif @else Inactif @endif
Aucun capteur installé. Ajouter un capteur
Lots hébergés (Exemple)

Fonctionnalité de gestion des lots à venir.

@endsection