import React from "react";
import { TicketPercent, Plus, Users, CalendarClock, Layers, Ban, BarChart2, BadgePercent, DoorOpen } from "lucide-react";
import { GuideItem } from "@/components/shared/GuideItem";
import type { HelpContent } from "./types";
/** Help content for /dashboard/supervisor/coupons. */
export const supervisorCouponsHelpContent: HelpContent = {
title: "Coupon codes",
subtitle: "Discounts for staff, leaders, volunteers and promotions.",
tabs: [
{
key: "create",
label: "Creating codes",
icon: Plus,
content: (
A percentage off, a fixed rand amount off, or free (100%). People type the code on the registration page; it isn't case-sensitive.
Leave the events unticked for every event, or pick one or more. Once events are picked you can limit the code to certain ticket options or variants — otherwise it discounts the whole registration.
By default the better of the two prices wins: the code is worked out against the standard price, and only what beats the early-bird price comes off. Tick "Also apply on top of early-bird prices" to stack them.
Optional start and end dates, a maximum number of uses overall, a maximum per person (1 by default), and a minimum number of tickets.
Anyone with the code, people with certain roles (e.g. Staff and above), specific people, or an email domain. Restricted codes need the person to be logged in, so they can't be passed around a group chat.
),
},
{
key: "using",
label: "How discounts work",
icon: TicketPercent,
content: (
The discount is saved on the registration and shows as its own line on invoices, receipts, emails and the payment page. Turning a code off later doesn't change discounts already given.
If the items on a registration change, percentage and free codes are worked out again on the new items. Fixed-amount codes keep their amount.
Cancelling a registration frees its code so it can be used again. A free code that covers everything marks the registration paid and sends the tickets.
Manual registration, At the door and the kiosk all have a "Have a code?" field. Every code staff apply is recorded in the admin audit log.
Staff price: a ticket option can also have a staff price (set in the event's Items & pricing step) that Staff and above get automatically, with no code.
),
},
{
key: "tracking",
label: "Tracking",
icon: BarChart2,
content: (
"Uses" on each code lists who used it, on which event, and how much it took off. The Discounts report (Reports → Financial) totals uses and value given away per code and event, and the Finance report shows sales after discounts.
A code that has been used can't be renamed — turn it off and create a new one instead.
),
},
],
};