@extends('layouts.app_sidebar') @section('title','Show') @section('content')

{{ $ruche->reference ?? ('Ruche #'.$ruche->id) }}

Rucher : {{ optional($ruche->rucher)->nom }}
État : {{ $ruche->etat ?? '—' }} • Installée : {{ $ruche->date_installation ?? '—' }}

Capteurs

@forelse($ruche->capteurs as $c) @empty @endforelse
TypeUnitéDernière mesure
{{ $c->type }} {{ $c->unite ?? '—' }} @php $lastAt = $latest[$c->id] ?? null; @endphp {{ $lastAt ? \Carbon\Carbon::parse($lastAt)->diffForHumans() : '—' }}
Aucun capteur.

Courbe

@endsection @push('scripts') @endpush