@extends('layouts.app') @section('title', 'Sensor Analytics - ' . $sensor->device_uuid) @section('content')
{{ $sensor->device_uuid }}
{{ $sensor->last_gas_level ?? 'N/A' }}%
{{ number_format($consumptionRate, 2) }}%
per day
{{ $daysUntilEmpty ?? 'N/A' }}
days
{{ $sensor->battery_level ?? 'N/A' }}%
@if($daysUntilEmpty) Based on current usage patterns, this cylinder will need a refill in approximately {{ $daysUntilEmpty }} days. @if($daysUntilEmpty < 7) Consider scheduling a refill soon. @elseif($daysUntilEmpty < 14) Plan for a refill in the coming weeks. @else No immediate refill needed. @endif @else Not enough data to predict refill timing. Continue monitoring for more accurate predictions. @endif
@if($consumptionRate > 0) This cylinder is being consumed at a rate of {{ number_format($consumptionRate, 2) }}% per day. @if($consumptionRate > 5) This is higher than average consumption. @elseif($consumptionRate > 2) This is average consumption. @else This is lower than average consumption. @endif @else Not enough data to analyze consumption patterns. Continue monitoring for more insights. @endif