@extends('layouts.app') @section('title', 'Sensor Analytics - ' . $sensor->device_uuid) @section('content')

Sensor Analytics

{{ $sensor->device_uuid }}

Sensor Information

Current Gas Level

{{ $sensor->last_gas_level ?? 'N/A' }}%

Daily Consumption Rate

{{ number_format($consumptionRate, 2) }}%

per day

Estimated Days Until Empty

{{ $daysUntilEmpty ?? 'N/A' }}

days

Battery Level

{{ $sensor->battery_level ?? 'N/A' }}%

Gas Level History (30 Days)

Battery Level History (30 Days)

Usage Patterns (By Hour)

Predictive Analysis

Refill Prediction

@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

Usage Insights

@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

@push('scripts') @endpush @endsection