@extends('layouts.master') @section('title', $title) @section('content')
{{ $title }}

Upload an attendance export from the fingerprint device (Excel or CSV, with No. and Date/Time columns) to backfill missing check-in/check-out records.

@if (!empty($import_error))
Import failed and was rolled back: {{ $import_error }}
@endif
@csrf
@if (isset($dry_run))
{{ $dry_run ? 'Preview' : 'Import result' }} ({{ count($punches ?? $summary['results'] ?? []) }} punches)
@if ($dry_run) No changes were saved @else Saved to attendance records @endif
@php $rows = $dry_run ? ($punches ?? []) : ($summary['results'] ?? []); @endphp @if (empty($rows))

No punches were found in the selected file.

@else
@if (!$dry_run) @endif @foreach ($rows as $row) @if (!$dry_run) @endif @endforeach
Date/Time Employee IDResult
{{ $dry_run ? $row['punch_time'] : $row['time'] }} {{ $row['employee_id'] }}{{ $row['message'] }}
@endif @php $skippedRows = $dry_run ? ($skipped ?? []) : ($summary['skipped'] ?? []); @endphp @if (!empty($skippedRows))

Skipped rows:

    @foreach ($skippedRows as $line)
  • {{ $line }}
  • @endforeach
@endif
@endif
@endsection