File size: 5,043 Bytes
6bdd29e
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
```html
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Orders | LunchBox Commander</title>
  <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css">
  <script src="https://cdn.tailwindcss.com"></script>
  <link rel="stylesheet" href="../style.css">
</head>
<body>
  <admin-navbar></admin-navbar>
  <div class="container mx-auto p-4">
    <div class="flex justify-between items-center mb-6">
      <h1 class="text-2xl font-bold">Order Management</h1>
      <a href="add-order.html" class="bg-indigo-600 text-white px-4 py-2 rounded hover:bg-indigo-700 transition">
        <i class="fas fa-plus mr-2"></i>Add New Order
      </a>
    </div>

    <div class="bg-white rounded-lg shadow overflow-hidden mb-6">
      <div class="p-4 border-b flex flex-wrap items-center gap-4">
        <div class="relative flex-grow max-w-md">
          <input type="text" placeholder="Search orders..." class="w-full pl-10 pr-4 py-2 border rounded-lg">
          <i class="fas fa-search absolute left-3 top-3 text-gray-400"></i>
        </div>
        <select class="border rounded-lg px-4 py-2">
          <option>All Status</option>
          <option>New</option>
          <option>Pending</option>
          <option>In Progress</option>
          <option>Delivered</option>
          <option>Paid</option>
        </select>
        <input type="date" class="border rounded-lg px-4 py-2">
        <button class="bg-indigo-600 text-white px-4 py-2 rounded hover:bg-indigo-700 transition">
          Filter
        </button>
      </div>

      <div class="overflow-x-auto">
        <table class="min-w-full divide-y divide-gray-200">
          <thead class="bg-gray-50">
            <tr>
              <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Order ID</th>
              <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Customer</th>
              <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Items</th>
              <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Total</th>
              <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Status</th>
              <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Date</th>
              <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Actions</th>
            </tr>
          </thead>
          <tbody class="bg-white divide-y divide-gray-200">
            <tr>
              <td class="px-6 py-4 whitespace-nowrap">#142</td>
              <td class="px-6 py-4 whitespace-nowrap">Rahul Sharma</td>
              <td class="px-6 py-4">2x Veg Thali, 1x Chicken Biryani</td>
              <td class="px-6 py-4 whitespace-nowrap">₹450</td>
              <td class="px-6 py-4 whitespace-nowrap">
                <span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-purple-100 text-purple-800">
                  In Progress
                </span>
              </td>
              <td class="px-6 py-4 whitespace-nowrap">Today, 12:45 PM</td>
              <td class="px-6 py-4 whitespace-nowrap">
                <button class="text-indigo-600 hover:text-indigo-900 mr-2">
                  <i class="fas fa-edit"></i>
                </button>
                <button class="text-green-600 hover:text-green-900">
                  <i class="fas fa-print"></i>
                </button>
              </td>
            </tr>
            <tr>
              <td class="px-6 py-4 whitespace-nowrap">#141</td>
              <td class="px-6 py-4 whitespace-nowrap">Priya Patel</td>
              <td class="px-6 py-4">3x Jain Thali</td>
              <td class="px-6 py-4 whitespace-nowrap">₹600</td>
              <td class="px-6 py-4 whitespace-nowrap">
                <span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-green-100 text-green-800">
                  Delivered
                </span>
              </td>
              <td class="px-6 py-4 whitespace-nowrap">Today, 12:30 PM</td>
              <td class="px-6 py-4 whitespace-nowrap">
                <button class="text-indigo-600 hover:text-indigo-900 mr-2">
                  <i class="fas fa-edit"></i>
                </button>
                <button class="text-green-600 hover:text-green-900">
                  <i class="fas fa-print"></i>
                </button>
              </td>
            </tr>
          </tbody>
        </table>
      </div>

      <div class="bg-gray-50 px-6 py-4 flex items-center justify-between border-t border-gray-200">
        <div class="text-sm text-gray-500">
          Showing <span class="font-medium">1</span> to <span class="font-medium">10</span> of <span class="font-medium">142</span>