@extends('layouts.app') @section('title', 'User: ' . $user->name) @section('content')
Personal details and account information
Sensors registered to this user
Sensor ID | Location | Status | Last Seen | Actions |
---|---|---|---|---|
{{ $sensor->device_uuid }}
{{ $sensor->qr_code }}
|
{{ $registration->location_name }}
{{ $registration->address }}
|
{{ ucfirst($sensor->status) }}
@if($sensor->last_gas_level !== null)
@php
$gasLevel = (int)$sensor->last_gas_level;
$gasColor = $gasLevel < 20 ? 'bg-red-600' : ($gasLevel < 50 ? 'bg-yellow-500' : 'bg-green-600');
@endphp
{{ $gasLevel }}% full
|
@if($sensor->last_ping) {{ $sensor->last_ping->diffForHumans() }} @else Never @endif | View |
User's recent actions and events
Activity log will be implemented here