@extends('layouts.app') @section('title', 'QR Code: ' . $sensor->device_uuid) @section('content')

Sensor QR Code

{{ $sensor->device_uuid }}
{{ $sensor->gasCompany ? $sensor->gasCompany->name : 'No Company' }}

Sensor QR Code

Scan this QR code to quickly access this sensor's information

{!! QrCode::size(300)->generate($qrContent) !!}

Sensor Information

Device UUID
{{ $sensor->device_uuid }}
QR Code
{{ $sensor->qr_code }}
Gas Company
{{ $sensor->gasCompany ? $sensor->gasCompany->name : 'N/A' }}
Status
@php $status = $sensor->status ?? 'offline'; $statusClasses = [ 'online' => 'bg-green-100 text-green-800', 'offline' => 'bg-gray-100 text-gray-800', 'battery_low' => 'bg-yellow-100 text-yellow-800', ][$status] ?? 'bg-gray-100 text-gray-800'; @endphp {{ ucfirst($status) }}
Registered
{{ $sensor->created_at->format('M j, Y g:i A') }}

QR Code Data

{{ $qrContent }}
@push('scripts') @endpush @endsection