Total Users

{{ $stats['users_count'] ?? 0 }}

Active Sensors

{{ $stats['active_sensors_count'] ?? 0 }}

Pending Refills

{{ $stats['pending_refills_count'] ?? 0 }}

Active Alerts

{{ $stats['active_alerts_count'] ?? 0 }}

Gas Types

{{ $stats['gas_types_count'] ?? 0 }}

Gas Level Overview

@if(isset($gasLevelStats) && count($gasLevelStats) > 0) @foreach($gasLevelStats as $stat)
{{ $stat['label'] }} {{ $stat['percentage'] }}% ({{ $stat['count'] }} sensors)
@endforeach @else

No gas level data available

@endif

Recent Refill Requests

View All
@if(isset($recentRefills) && $recentRefills->count() > 0)
@foreach($recentRefills as $refill)

Refill Request #{{ $refill->id }}

{{ ucfirst($refill->status) }}

{{ $refill->delivery_address }}

User: {{ $refill->user->name }} Gas Level: {{ $refill->gas_level_at_request }}%
View Details
@endforeach
@else

No recent refill requests

@endif

Recent Alerts

View All
@if(isset($recentAlerts) && $recentAlerts->count() > 0)
@foreach($recentAlerts as $alert)

{{ $alert->type === 'leak' ? 'Gas Leak Detected' : 'Low Gas Level' }}

{{ $alert->created_at->diffForHumans() }}

{{ $alert->description }}

Sensor ID: {{ $alert->sensor->device_uuid }} User: {{ $alert->user->name }}
@if(!$alert->is_resolved)
@csrf @method('PATCH')
@else Resolved {{ $alert->resolved_at->diffForHumans() }} @endif
@endforeach
@else

No recent alerts

@endif

New Users

View All
@if(isset($newUsers) && $newUsers->count() > 0)
@foreach($newUsers as $user)

{{ $user->name }}

{{ $user->email }}

End User
Joined {{ $user->created_at->diffForHumans() }} View Profile
@endforeach
@else

No new users

@endif

Gas Types Management

Add New Gas Type View All
@if(isset($recentGasTypes) && $recentGasTypes->count() > 0)
@foreach($recentGasTypes as $gasType)
@if($gasType->image_path) {{ $gasType->name }} @else
@endif
@if($gasType->is_available) Available @else Unavailable @endif

{{ $gasType->name }}

${{ number_format($gasType->price, 2) }} {{ $gasType->weight }} kg
Stock: {{ $gasType->stock_quantity }} @if($gasType->cylinder_size) Size: {{ $gasType->cylinder_size }} @endif
@endforeach
@else

No gas types found

Add Your First Gas Type
@endif