2import { useState } from "react";
3import { Icon } from '@/contexts/IconContext';
5export default function PrepayPage() {
6 const [activeTab, setActiveTab] = useState<"giftcards" | "vouchers" | "accounts">("giftcards");
9 <div className="min-h-screen bg-surface-2">
10 <div className="max-w-7xl mx-auto p-6">
11 <div className="mb-8">
12 <h1 className="text-3xl font-bold text-text mb-2">Prepay & Gift Cards</h1>
13 <p className="text-muted">Manage gift cards, vouchers, and prepaid accounts</p>
17 <div className="bg-surface rounded-lg shadow-sm border border-border mb-6">
18 <div className="border-b border-border">
19 <nav className="flex -mb-px">
21 onClick={() => setActiveTab("giftcards")}
22 className={`px-6 py-4 text-sm font-medium border-b-2 transition-colors ${
23 activeTab === "giftcards"
24 ? "border-brand text-brand"
25 : "border-transparent text-muted hover:text-text hover:border-border"
28 <Icon name="card_giftcard" size={20} className="inline mr-2" />Gift Cards
31 onClick={() => setActiveTab("vouchers")}
32 className={`px-6 py-4 text-sm font-medium border-b-2 transition-colors ${
33 activeTab === "vouchers"
34 ? "border-brand text-brand"
35 : "border-transparent text-muted hover:text-text hover:border-border"
38 <Icon name="confirmation_number" size={20} className="inline mr-2" />Vouchers
41 onClick={() => setActiveTab("accounts")}
42 className={`px-6 py-4 text-sm font-medium border-b-2 transition-colors ${
43 activeTab === "accounts"
44 ? "border-brand text-brand"
45 : "border-transparent text-muted hover:text-text hover:border-border"
48 <Icon name="account_balance_wallet" size={20} className="inline mr-2" />Prepaid Accounts
54 {activeTab === "giftcards" && (
56 <div className="grid grid-cols-1 md:grid-cols-2 gap-6 mb-6">
57 <div className="bg-surface border border-border rounded-lg p-6">
58 <h3 className="text-lg font-bold text-text mb-2">Issue New Gift Card</h3>
59 <p className="text-muted text-sm mb-4">Create and activate a new gift card</p>
60 <button className="px-4 py-2 bg-brand text-white rounded hover:bg-brand/90 transition">
65 <div className="bg-surface border border-border rounded-lg p-6">
66 <h3 className="text-lg font-bold text-text mb-2">Check Balance</h3>
67 <p className="text-muted text-sm mb-4">Look up gift card balance and history</p>
68 <button className="px-4 py-2 bg-success text-white rounded hover:bg-success/80 transition">
74 <div className="bg-surface border border-border rounded-lg p-6">
75 <h3 className="font-semibold text-text mb-4">Recent Gift Card Activity</h3>
76 <div className="text-center text-muted py-8">
77 No recent gift card transactions
83 {activeTab === "vouchers" && (
85 <div className="grid grid-cols-1 md:grid-cols-2 gap-6 mb-6">
86 <div className="bg-surface border border-border rounded-lg p-6">
87 <h3 className="text-lg font-bold text-text mb-2">Create Voucher</h3>
88 <p className="text-muted text-sm mb-4">Generate discount or value vouchers</p>
89 <button className="px-4 py-2 bg-info text-white rounded hover:bg-info/80 transition">
94 <div className="bg-surface border border-border rounded-lg p-6">
95 <h3 className="text-lg font-bold text-text mb-2">Redeem Voucher</h3>
96 <p className="text-muted text-sm mb-4">Process voucher redemption</p>
97 <button className="px-4 py-2 bg-accent text-white rounded hover:bg-accent/80 transition">
103 <div className="bg-surface border border-border rounded-lg p-6">
104 <h3 className="font-semibold text-text mb-4">Active Vouchers</h3>
105 <div className="text-center text-muted py-8">
112 {activeTab === "accounts" && (
114 <div className="grid grid-cols-1 md:grid-cols-3 gap-4 mb-6">
115 <div className="bg-surface border border-border rounded-lg p-4">
116 <div className="text-sm text-muted mb-1">Total Accounts</div>
117 <div className="text-2xl font-bold text-text">0</div>
119 <div className="bg-surface border border-border rounded-lg p-4">
120 <div className="text-sm text-muted mb-1">Total Balance</div>
121 <div className="text-2xl font-bold text-text">$0.00</div>
123 <div className="bg-surface border border-border rounded-lg p-4">
124 <div className="text-sm text-muted mb-1">Active This Month</div>
125 <div className="text-2xl font-bold text-text">0</div>
129 <div className="bg-surface border border-border rounded-lg p-6">
130 <h3 className="font-semibold text-text mb-4">Prepaid Account List</h3>
131 <div className="text-center text-muted py-8">
132 No prepaid accounts found
141 <div className="bg-surface border border-border rounded-lg p-6">
142 <div className="flex items-start">
143 <div className="text-2xl mr-3"><Icon name="construction" size={28} /></div>
145 <h3 className="font-semibold text-text mb-2">Prepay System Under Development</h3>
146 <p className="text-muted text-sm">
147 The full prepay and gift card management system is being developed. This will include:
149 <ul className="list-disc list-inside text-muted text-sm mt-2 space-y-1 ml-2">
150 <li>Physical and digital gift card issuance</li>
151 <li>Balance checking and top-up functionality</li>
152 <li>Voucher creation with custom rules and expiry</li>
153 <li>Prepaid account management with transaction history</li>
154 <li>Integration with POS for redemption</li>
155 <li>Reporting and analytics for prepay programs</li>