File size: 2,306 Bytes
6ca7c5f
 
 
 
 
 
1381f54
6ca7c5f
1381f54
6ca7c5f
 
1381f54
 
 
 
 
 
6ca7c5f
1381f54
 
 
 
 
 
 
 
 
 
6ca7c5f
1381f54
 
 
6ca7c5f
 
 
1381f54
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
6ca7c5f
 
 
1381f54
6ca7c5f
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Ticket Management System</title>
    <link rel="stylesheet" href="{{ url_for('static', filename='style.css') }}">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css">
    <link href="https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap" rel="stylesheet">
</head>
<body>
    <div class="container">
        <header>
            <h1><i class="fas fa-ticket-alt"></i> Ticket Management System</h1>
            <div class="actions">
                <button id="refreshBtn" class="btn"><i class="fas fa-sync-alt"></i> Refresh</button>
                <button id="downloadBtn" class="btn btn-primary"><i class="fas fa-download"></i> Download CSV</button>
            </div>
        </header>

        <div class="stats-container">
            <div class="stat-card">
                <div class="stat-value" id="total-tickets">0</div>
                <div class="stat-label">Total Tickets</div>
            </div>
            <div class="stat-card">
                <div class="stat-value" id="total-count">0</div>
                <div class="stat-label">Total Tickets Sold</div>
            </div>
            <div class="stat-card">
                <div class="stat-value" id="unique-countries">0</div>
                <div class="stat-label">Countries</div>
            </div>
        </div>

        <div class="table-container">
            <table id="ticketsTable">
                <thead>
                    <tr>
                        <th>Ticket #</th>
                        <th>Name</th>
                        <th>Email</th>
                        <th>Phone</th>
                        <th>Quantity</th>
                        <th>Country</th>
                        <th>Region</th>
                        <th>Date</th>
                    </tr>
                </thead>
                <tbody id="ticketsBody">
                    <!-- Data will be inserted here by JavaScript -->
                </tbody>
            </table>
        </div>
    </div>

    <script src="{{ url_for('static', filename='script.js') }}"></script>
</body>
</html>