@extends('layouts.app') @section('title', 'Attendance Import') @section('content') @php $stats = session('importStats'); @endphp

Biometric punch import

Upload a ZKTeco CSV/XML attendance export. Punches are matched to biometric IDs, then admission or staff numbers.
Student register Staff register
@if($stats)
{{ $stats['file_name'] }} · {{ $stats['punches_added'] }} punches added, {{ $stats['attendance_written'] }} attendance records updated, {{ $stats['duplicates'] }} duplicates, {{ $stats['unmatched'] }} unmatched, {{ $stats['skipped'] }} skipped.
@endif

Import punches

CSV and XML exports from ZKTeco F18, ZK F22 and uFace 800 devices.
@csrf
Manual and override statuses are preserved by default.

Expected columns

Headers are detected automatically.
CSV / XML fields
  • User ID — biometric ID, admission no or staff no
  • Date — Y-m-d or d/m/Y
  • Time — H:i or H:i:s
  • Verify Mode — optional
A combined Date/Time column is also accepted. First punch after the cut-off is marked late; earlier punches are present.

Supported devices

Register more under Settings → Attendance Devices.
@foreach(\App\Models\AttendanceDevice::MODELS as $model => $info)
{{ $model }}
{{ $info['label'] }}
@endforeach

Recent imports

Last 10 punch files processed by the system.
@forelse($recent as $row) @empty @endforelse
WhenFileRegisterDevicePunchesAttendance
{{ $row->created_at->format('j M Y H:i') }} {{ $row->file_name }} {{ ucfirst($row->person_type) }} {{ $row->device->name ?? 'Any device' }} {{ $row->punches_added }} {{ $row->attendance_written }}
@endsection @push('scripts') @endpush