@extends('layouts.app') @section('title', 'Attendance Devices') @section('page-title', 'Attendance Devices') @section('page-description') Manage biometric, RFID and other attendance devices connected to the attendance system. @endsection @section('content') {{-- ============================================================ Toolbar ============================================================ --}}
{{-- ======================================================== Search & Filters ======================================================== --}}
{{-- Search --}}
{{-- Status --}}
{{-- Connection --}}
{{-- Filter --}} {{-- Reset --}} @if (request()->hasAny(['search', 'status', 'online'])) Reset @endif
{{-- ======================================================== Actions ======================================================== --}}
{{-- @can('attendance-devices.create') --}} New Attendance Device {{-- @endcan --}}
{{-- ============================================================ Attendance Devices Table ============================================================ --}}
{{-- Table Header --}}

Attendance Device List

{{ $attendanceDevices->total() }} {{ Str::plural('attendance device', $attendanceDevices->total()) }} found

{{-- Desktop / Tablet Table --}}
@forelse($attendanceDevices as $attendanceDevice) {{-- Device --}} {{-- Device Details --}} {{-- Network --}} {{-- Location --}} {{-- Connection --}} {{-- Last Sync --}} {{-- Status --}} {{-- Actions --}} @empty @endforelse
Device Device Details Network Location Connection Last Sync Status Actions

{{ $attendanceDevice->name }}

{{ $attendanceDevice->serial_number }}

{{ $attendanceDevice->manufacturer }}

{{ $attendanceDevice->model }}

{{ ucfirst(str_replace('_', ' ', $attendanceDevice->device_type)) }}

{{ $attendanceDevice->ip_address }}

Port {{ $attendanceDevice->port }}

@if ($attendanceDevice->location)
{{ $attendanceDevice->location }}
@else @endif
@if ($attendanceDevice->is_online) Online @else Offline @endif @if ($attendanceDevice->last_synced_at)

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

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

@else Never synced @endif
@if ($attendanceDevice->is_active) Active @else Inactive @endif
{{-- View --}} {{-- Edit --}} {{-- Delete --}}
@csrf @method('DELETE')

No attendance devices found

@if (request()->hasAny(['search', 'status', 'online'])) No devices match your current search or filters. @else Register your first attendance device to begin receiving attendance records. @endif

@if (request()->hasAny(['search', 'status', 'online'])) Clear Filters @else New Attendance Device @endif
{{-- Pagination --}} @if ($attendanceDevices->hasPages())

Showing {{ $attendanceDevices->firstItem() }} to {{ $attendanceDevices->lastItem() }} of {{ $attendanceDevices->total() }} results

{{ $attendanceDevices->withQueryString()->links() }}
@endif
@endsection @push('scripts') @endpush