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

Sensor Logs: {{ $sensor->device_uuid }}

Showing {{ $logs->total() }} log entries

Back to Sensor
@if(request()->hasAny(['date_from', 'date_to'])) Clear @endif
@forelse($logs as $log) @empty @endforelse
Timestamp Gas Level Battery Level Status Location
{{ $log->created_at->format('M j, Y H:i:s') }}
{{ $log->created_at->diffForHumans() }}
{{ $log->gas_level }}%
{{ $log->battery_level }}%
@if($log->is_leak_detected) Gas Leak @else Normal @endif @if($log->latitude && $log->longitude) View on Map @else No location data @endif
No log entries found for this sensor.
@if($logs->hasPages())
{{ $logs->withQueryString()->links() }}
@endif
Export to CSV
@endsection