<!-- generated by php artisan docs:split-brd from brd/BRD-Morvia-Project-Guide-en.md — edit the BRD, not this file -->

#### TRN-024 | Attendance ticket for in-person courses
**Source:** A-p.1–3 (additional requirement 1) · **Actor:** enrolled trainee
- **Goal:** an electronic ticket proving the trainee holds a **confirmed enrollment** in an in-person
  course, shown when entering the venue. It is **not** a means of payment.
- **Created:** automatically when the trainee's enrollment in an in-person course becomes
  **confirmed**.
- **Access path:** My courses → the in-person course → enrolled-course details → **"View ticket"**.
  The button shows only when the course is in-person **and** the user has a confirmed enrollment; never
  for a guest or a non-enrolled user.
- **Ticket contents:** trainee photo · trainee name · ticket number / **Ticket ID** · course name ·
  course date and time · hall address.
- **Rules:**
  - One electronic ticket per confirmed in-person enrollment; tickets are for in-person courses only
    (none for external courses).
  - A ticket belongs to one trainee, one course and one enrollment; each has a **unique Ticket ID**.
  - A trainee cannot reach a ticket for a course without a confirmed enrollment.
  - The ticket shows the **latest approved** course data (date, time, hall). When the admin or the
    course owner changes the place or date through the approved process, the ticket updates.
  - The ticket is not an attendance-management system; it is only proof of a confirmed enrollment.
- **Changed by the cancellation policy (C-§23):** the ticket of a **cancelled** in-person course stays
  visible with its **original number**, marked **"Not valid for use"**.
- **Threshold-start courses:** the button appears once the in-person execution data (date + venue) is
  complete; before that the trainee sees "The entry ticket will be available once the course date and
  place are set." (A-p.6, TRN-026).
- **Impact on screens:** My courses — no substantial change; enrolled in-person course details — add
  "View ticket"; Ticket — new screen; external course — no ticket; backend — create the Ticket ID and
  link it to the enrollment; admin — Ticket ID visible in enrollment details when needed (ADM-034);
  center / trainer — nothing to create manually.

**Acceptance, rules and screen notes citing TRN-024:**

- WF-01 — Trainee enrollment and payment — Browse / search → course details → enrollment review (offer, cashback, points) → payment → success: seat counted, My courses, trainer entitlement (commission), cashback, ticket (in-person) — TRN-007, TRN-008, TRN-010, TRN-011, TRN-012, TRN-024, PLT-002
- WF-05 — Threshold-start course — Publish without date → trainees enroll (confirmed count, countdown) → minimum reached → owner notified → set date (in-person: book hall; external: session link) → enrollees notified → ticket; deadline passed or date not set in time → admin decides — TRR-015, TRN-026, ADM-032, TRN-024
- BR-CNL-07 — A cancelled in-person course keeps its ticket visible with the original number, marked "Not valid for use"; no certificate for a cancelled course; certificates of Completed courses are unaffected (C-§23). — TRN-024, TRN-025
