{{ $title }}
Laporan Keamanan dan Monitoring System
Periode: {{ $startDate }} - {{ $endDate }}
@if(count($reports) > 0) @foreach($reports as $index => $report) @endforeach @else @endif
No Tanggal Perubahan Status Keamanan Status Perangkat
{{ $index + 1 }} {{ date('d/m/Y H:i', strtotime($report['timestamp'])) }} @php $changes = []; // Detect changes based on your logic // This is a simplified example if(isset($report['security']['motion'])) { $changes[] = ['type' => 'Motion', 'badge' => 'badge-motion']; } if(isset($report['security']['status'])) { $changes[] = ['type' => 'Status', 'badge' => 'badge-status']; } if(isset($report['security']['fan'])) { $changes[] = ['type' => 'Fan', 'badge' => 'badge-fan']; } if(isset($report['smartcab']['servo_status'])) { $changes[] = ['type' => 'Servo', 'badge' => 'badge-servo-status']; } // Add more change types as needed @endphp @foreach($changes as $change) {{ $change['type'] }} @endforeach @if(isset($report['security']))
Gerakan: {{ ucfirst($report['security']['motion'] ?? 'N/A') }}
Status: {{ ucfirst($report['security']['status'] ?? 'N/A') }}
Fan: {{ $report['security']['fan'] ?? 'N/A' }}
@else N/A @endif
@if(isset($report['smartcab']))
Servo: {{ $report['smartcab']['servo_status'] ?? 'N/A' }}
Last Access: {{ $report['smartcab']['last_access'] ?? 'N/A' }}
@endif @if(isset($report['dht11']))
Suhu: {{ $report['dht11']['temperature'] ?? 'N/A' }}°C
Kelembaban: {{ $report['dht11']['humidity'] ?? 'N/A' }}%
@endif
Tidak ada data laporan untuk periode yang dipilih