@extends('layouts.app') @section('title', 'Attendance Device Details') @section('content')
{{-- ============================================================ Page Header ============================================================ --}}

{{ $attendanceDevice->name }}

@if($attendanceDevice->is_online) Online @else Offline @endif @if($attendanceDevice->is_active) Active @else Inactive @endif

Attendance device information, connectivity and synchronization details.

All Devices @can('attendance-devices.edit') Edit Device @endcan
{{-- ============================================================ Summary Cards ============================================================ --}}
{{-- Device Type --}}

Device Type

{{ $attendanceDevice->device_type }}

{{-- IP Address --}}

IP Address

{{ $attendanceDevice->ip_address }}

{{-- Sync Interval --}}

Sync Interval

{{ number_format($attendanceDevice->sync_interval) }} min

{{-- Connection --}}

Connection

@if($attendanceDevice->is_online) Online @else Offline @endif
{{-- ============================================================ Main Information ============================================================ --}}
{{-- Device Information --}}

Device Information

General information and identification details for this attendance device.

{{-- Name --}}
Device Name
{{ $attendanceDevice->name }}
{{-- Device Type --}}
Device Type
{{ $attendanceDevice->device_type }}
{{-- Manufacturer --}}
Manufacturer
{{ $attendanceDevice->manufacturer }}
{{-- Model --}}
Model
{{ $attendanceDevice->model }}
{{-- Serial Number --}}
Serial Number
{{ $attendanceDevice->serial_number }}
{{-- Location --}}
Location
{{ $attendanceDevice->location ?: '—' }}
{{-- Status --}}
Record Status
@if($attendanceDevice->is_active) Active @else Inactive @endif
{{-- Connection --}}
Connection Status
@if($attendanceDevice->is_online) Online @else Offline @endif
{{-- Created --}}
Created At
{{ $attendanceDevice->created_at?->format('d M Y, h:i A') ?? '—' }}
{{-- Updated --}}
Last Updated
{{ $attendanceDevice->updated_at?->format('d M Y, h:i A') ?? '—' }}
{{-- ======================================================== Connection Status ======================================================== --}}

Connection Status

Current connectivity and synchronization information.

{{-- Main Status --}}

{{ $attendanceDevice->is_online ? 'Device Online' : 'Device Offline' }}

{{ $attendanceDevice->is_online ? 'The device is currently marked as connected.' : 'The device is currently marked as disconnected.' }}

{{-- Status Information --}}
{{-- Last Connected --}}
Last Connected {{ $attendanceDevice->last_connected_at ? $attendanceDevice->last_connected_at->format('d M Y, h:i A') : 'Never' }}
{{-- Last Synced --}}
Last Synced {{ $attendanceDevice->last_synced_at ? $attendanceDevice->last_synced_at->format('d M Y, h:i A') : 'Never' }}
{{-- Sync Interval --}}
Sync Interval {{ number_format($attendanceDevice->sync_interval) }} minutes
{{-- Status --}}
Device Status @if($attendanceDevice->is_active) Active @else Inactive @endif
{{-- ============================================================ Network & Authentication ============================================================ --}}
{{-- Network Configuration --}}

Network Configuration

Network information used to communicate with the attendance device.

{{-- IP Address --}}

IP Address

{{ $attendanceDevice->ip_address }}

{{-- Port --}}

Port

{{ $attendanceDevice->port }}

{{-- Endpoint --}}

Network Endpoint

{{ $attendanceDevice->ip_address }}:{{ $attendanceDevice->port }}

{{-- API URL --}}

API URL

@if($attendanceDevice->api_url)

{{ $attendanceDevice->api_url }}

@else

Not configured

@endif
{{-- Authentication --}}

Authentication

Credentials configured for communication with the device.

{{-- Username --}}

Username

{{ $attendanceDevice->username ?: 'Not configured' }}
{{-- Password --}}

Password

@if($attendanceDevice->password) •••••••• @else Not configured @endif

Device passwords are hidden for security and should never be displayed on this page.

{{-- Security Notice --}}

Device Credentials

Credentials are used by the attendance integration when communicating with this device.

{{-- ============================================================ Synchronization & Integration ============================================================ --}}
{{-- Synchronization --}}

Synchronization

Attendance data synchronization information.

{{-- Interval --}}

Sync Interval

{{ number_format($attendanceDevice->sync_interval) }} minutes

{{-- Last Sync --}}

Last Sync

{{ $attendanceDevice->last_synced_at ? $attendanceDevice->last_synced_at->format('d M Y') : 'Never' }}

@if($attendanceDevice->last_synced_at)

{{ $attendanceDevice->last_synced_at->format('h:i A') }}

@endif
{{-- Sync Information --}}

Automatic Synchronization

The configured synchronization interval determines how frequently the system should retrieve attendance punches from this device.

{{-- Device Integration --}}

Attendance Integration

How this device participates in the attendance workflow.

{{-- Punches --}}

Attendance Punches

Receives student attendance punches.

@if($attendanceDevice->is_active) Enabled @else Disabled @endif
{{-- Synchronization --}}

Data Synchronization

Retrieves attendance logs from the device.

{{ $attendanceDevice->sync_interval }} min
{{-- Connection --}}

Device Connection

Current recorded connection state.

@if($attendanceDevice->is_online) Online @else Offline @endif
{{-- ============================================================ Additional Information ============================================================ --}} @if(!empty($attendanceDevice->configuration))

Device Configuration

Additional configuration values stored for this attendance device.

@foreach($attendanceDevice->configuration as $key => $value) @endforeach
Configuration Value
{{ ucwords(str_replace('_', ' ', $key)) }} @if(is_bool($value)) {{ $value ? 'Yes' : 'No' }} @elseif(is_array($value)) {{ json_encode($value) }} @else {{ $value }} @endif
@endif {{-- ============================================================ Record Management ============================================================ --}}
{{-- Record Information --}}

Record Information

System information about this attendance device record.

Record ID
#{{ $attendanceDevice->id }}
Status
@if($attendanceDevice->is_active) Active @else Inactive @endif
Created At
{{ $attendanceDevice->created_at?->format('d M Y, h:i A') ?? '—' }}
Last Updated
{{ $attendanceDevice->updated_at?->format('d M Y, h:i A') ?? '—' }}
{{-- Record Management --}}

Record Management

Manage this attendance device record.

@can('attendance-devices.edit')

Edit Attendance Device

Update device, network and synchronization settings.

@endcan @can('attendance-devices.delete')
@csrf @method('DELETE')
@endcan
@endsection @push('scripts') @endpush