@extends('layouts.app') @section('title', 'Import Session History') @section('content') @include('partials.flash')
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.
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.
Required fields
email — the attendee’s sign-in emailtraining — the training/session nameOptional fields
training_code — a stable code to group sessionssession_date — date attended (e.g. 2025-05-10); defaults to todayformat — in_person or online (default in-person)trainer_email — only if a matching trainer exists in the new LMSNo 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.