@extends('layouts.app') @section('title', 'Employee Enrollment') @section('content')
Back to Device

Employee Enrollment - {{ $biometricDevice->device_name }}

@csrf
Total Employees
{{ $employees->count() }}
Enrolled
{{ collect($enrollmentStatus)->where('enrolled', true)->count() }}
Not Enrolled
{{ collect($enrollmentStatus)->where('enrolled', false)->count() }}
Device Status
{{ ucfirst($biometricDevice->status) }}

Employees

@csrf
@foreach($employees as $employee) @php $status = $enrollmentStatus[$employee->id] ?? ['enrolled' => false, 'status' => 'unknown']; @endphp @endforeach
Employee Department Employee ID Enrollment Status Actions
{{ substr($employee->first_name, 0, 1) }}
{{ $employee->full_name }}
{{ $employee->email }}
{{ $employee->department->name ?? 'N/A' }} {{ $employee->employee_id_number }} @if($status['enrolled']) Enrolled @else Not Enrolled @endif @if($status['enrolled'])
@csrf
@else
@csrf
@endif
@endsection