@extends('layouts.app') @section('title', 'Import Session History') @section('content') @include('partials.flash')
arrow_back Users

Import session history

Migrate instructor-led training attendance from a previous LMS. Each row records that a learner attended a training on a date and auto-issues their session certificate.

@include('admin.imports._tabs')
{{-- Upload --}}
upload_file

Upload JSON

download Download sample JSON
@csrf @error('file')

{{ $message }}

@enderror

JSON array of attendance records · up to 5000 per import.

bolt

Runs in the background (queue). A past-dated session is created (shared across learners with the same training and date), each learner is marked attended, and a session certificate is issued. A queue worker (php artisan queue:work) must be running — check Background Jobs.

{{-- Format reference --}}
description

File format

Required fields

Optional fields

info

No trainer needed. Leave trainer_email out — historical sessions import with no trainer assigned, which is expected since the old trainers aren’t in the new system.

Example row

{ "email": "worker@site.com", "training": "Manual Handling", "training_code": "MH-01", "session_date": "2025-05-10" }

Rows sharing a training (code or name) + date are merged into one session. Unknown emails are skipped — reasons appear in the completion notification. Re-running is safe.

@endsection