| | <!DOCTYPE html> |
| | <html lang="en"> |
| | <head> |
| | <meta charset="UTF-8"> |
| | <meta name="viewport" content="width=device-width, initial-scale=1.0"> |
| | <title>PayGate Commander | Transactions</title> |
| | <link rel="icon" type="image/x-icon" href="/static/favicon.ico"> |
| | <script src="https://cdn.tailwindcss.com"></script> |
| | <script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script> |
| | <script src="https://unpkg.com/feather-icons"></script> |
| | <style> |
| | .sidebar { |
| | transition: all 0.3s ease; |
| | } |
| | .sidebar-collapsed { |
| | width: 80px; |
| | } |
| | .sidebar-collapsed .nav-text { |
| | display: none; |
| | } |
| | .content { |
| | transition: margin-left 0.3s ease; |
| | } |
| | </style> |
| | </head> |
| | <body class="bg-gray-100"> |
| | <div class="flex h-screen overflow-hidden"> |
| | |
| | <div class="sidebar bg-indigo-800 text-white w-64 flex-shrink-0"> |
| | |
| | |
| | </div> |
| |
|
| | |
| | <div class="content flex-1 overflow-auto"> |
| | |
| | <header class="bg-white shadow-sm"> |
| | <div class="px-6 py-4 flex items-center justify-between"> |
| | <h1 class="text-2xl font-bold text-gray-800">Transaction Management</h1> |
| | <div class="flex items-center space-x-4"> |
| | <div class="relative"> |
| | <i data-feather="search" class="absolute left-3 top-1/2 transform -translate-y-1/2 text-gray-400"></i> |
| | <input type="text" placeholder="Search transactions..." class="pl-10 pr-4 py-2 border rounded-lg focus:outline-none focus:ring-2 focus:ring-indigo-500"> |
| | </div> |
| | <button class="px-4 py-2 bg-indigo-600 text-white rounded-lg hover:bg-indigo-700 flex items-center space-x-2"> |
| | <i data-feather="plus" class="w-4 h-4"></i> |
| | <span>New Transaction</span> |
| | </button> |
| | </div> |
| | </div> |
| | </header> |
| |
|
| | |
| | <div class="px-6 py-4 bg-white shadow-sm border-b"> |
| | <div class="flex flex-wrap items-center justify-between gap-4"> |
| | <div class="flex items-center space-x-2"> |
| | <div class="relative"> |
| | <select class="appearance-none bg-white border rounded-lg pl-3 pr-8 py-2 focus:outline-none focus:ring-2 focus:ring-indigo-500"> |
| | <option>All Status</option> |
| | <option>Completed</option> |
| | <option>Processing</option> |
| | <option>Failed</option> |
| | <option>Refunded</option> |
| | </select> |
| | <i data-feather="chevron-down" class="absolute right-3 top-1/2 transform -translate-y-1/2 pointer-events-none"></i> |
| | </div> |
| | <div class="relative"> |
| | <select class="appearance-none bg-white border rounded-lg pl-3 pr-8 py-2 focus:outline-none focus:ring-2 focus:ring-indigo-500"> |
| | <option>All Gateways</option> |
| | <option>Stripe</option> |
| | <option>PayPal</option> |
| | <option>Bank Transfer</option> |
| | </select> |
| | <i data-feather="chevron-down" class="absolute right-3 top-1/2 transform -translate-y-1/2 pointer-events-none"></i> |
| | </div> |
| | </div> |
| | <div class="flex items-center space-x-4"> |
| | <div class="relative"> |
| | <i data-feather="calendar" class="absolute left-3 top-1/2 transform -translate-y-1/2 text-gray-400"></i> |
| | <input type="text" placeholder="Date Range" class="pl-10 pr-4 py-2 border rounded-lg focus:outline-none focus:ring-2 focus:ring-indigo-500"> |
| | </div> |
| | <button class="px-4 py-2 bg-white border rounded-lg hover:bg-gray-50 flex items-center space-x-2"> |
| | <i data-feather="filter" class="w-4 h-4"></i> |
| | <span>More Filters</span> |
| | </button> |
| | </div> |
| | </div> |
| | </div> |
| |
|
| | |
| | <div class="px-6 py-6"> |
| | <div class="bg-white rounded-xl shadow-sm overflow-hidden"> |
| | <div class="overflow-x-auto"> |
| | <table class="min-w-full divide-y divide-gray-200"> |
| | <thead class="bg-gray-50"> |
| | <tr> |
| | <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Transaction ID</th> |
| | <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Customer</th> |
| | <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Date</th> |
| | <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Amount</th> |
| | <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Gateway</th> |
| | <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Status</th> |
| | <th scope="col" class="px-6 py-3 text-right text-xs font-medium text-gray-500 uppercase tracking-wider">Actions</th> |
| | </tr> |
| | </thead> |
| | <tbody class="bg-white divide-y divide-gray-200"> |
| | <tr class="hover:bg-gray-50"> |
| | <td class="px-6 py-4 whitespace-nowrap"> |
| | <div class="text-sm font-medium text-indigo-600">#TXN-4872</div> |
| | </td> |
| | <td class="px-6 py-4 whitespace-nowrap"> |
| | <div class="flex items-center"> |
| | <div class="flex-shrink-0 h-10 w-10 rounded-full bg-gray-100 flex items-center justify-center"> |
| | <i data-feather="user" class="text-gray-400"></i> |
| | </div> |
| | <div class="ml-4"> |
| | <div class="text-sm font-medium text-gray-900">John Smith</div> |
| | <div class="text-sm text-gray-500">john@example.com</div> |
| | </div> |
| | </div> |
| | </td> |
| | <td class="px-6 py-4 whitespace-nowrap"> |
| | <div class="text-sm text-gray-900">May 15, 2023</div> |
| | <div class="text-sm text-gray-500">10:30 AM</div> |
| | </td> |
| | <td class="px-6 py-4 whitespace-nowrap"> |
| | <div class="text-sm text-gray-900 font-medium">$128.00</div> |
| | </td> |
| | <td class="px-6 py-4 whitespace-nowrap"> |
| | <div class="flex items-center"> |
| | <div class="h-5 w-5 rounded-full bg-blue-100 flex items-center justify-center mr-2"> |
| | <i data-feather="credit-card" class="w-3 h-3 text-blue-600"></i> |
| | </div> |
| | <span class="text-sm text-gray-900">Stripe</span> |
| | </div> |
| | </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">Completed</span> |
| | </td> |
| | <td class="px-6 py-4 whitespace-nowrap text-right text-sm font-medium"> |
| | <button class="text-indigo-600 hover:text-indigo-900 mr-3">View</button> |
| | <button class="text-gray-600 hover:text-gray-900">Refund</button> |
| | </td> |
| | </tr> |
| | |
| | </tbody> |
| | </table> |
| | </div> |
| | <div class="bg-gray-50 px-6 py-3 flex items-center justify-between border-t border-gray-200"> |
| | <div class="flex-1 flex justify-between sm:hidden"> |
| | <a href="#" class="relative inline-flex items-center px-4 py-2 border border-gray-300 text-sm font-medium rounded-md text-gray-700 bg-white hover:bg-gray-50">Previous</a> |
| | <a href="#" class="ml-3 relative inline-flex items-center px-4 py-2 border border-gray-300 text-sm font-medium rounded-md text-gray-700 bg-white hover:bg-gray-50">Next</a> |
| | </div> |
| | <div class="hidden sm:flex-1 sm:flex sm:items-center sm:justify-between"> |
| | <div> |
| | <p class="text-sm text-gray-700"> |
| | Showing <span class="font-medium">1</span> to <span class="font-medium">10</span> of <span class="font-medium">24</span> results |
| | </p> |
| | </div> |
| | <div> |
| | <nav class="relative z-0 inline-flex rounded-md shadow-sm -space-x-px" aria-label="Pagination"> |
| | <a href="#" class="relative inline-flex items-center px-2 py-2 rounded-l-md border border-gray-300 bg-white text-sm font-medium text-gray-500 hover:bg-gray-50"> |
| | <span class="sr-only">Previous</span> |
| | <i data-feather="chevron-left" class="h-5 w-5"></i> |
| | </a> |
| | <a href="#" aria-current="page" class="z-10 bg-indigo-50 border-indigo-500 text-indigo-600 relative inline-flex items-center px-4 py-2 border text-sm font-medium">1</a> |
| | <a href="#" class="bg-white border-gray-300 text-gray-500 hover:bg-gray-50 relative inline-flex items-center px-4 py-2 border text-sm font-medium">2</a> |
| | <a href="#" class="bg-white border-gray-300 text-gray-500 hover:bg-gray-50 relative inline-flex items-center px-4 py-2 border text-sm font-medium">3</a> |
| | <a href="#" class="relative inline-flex items-center px-2 py-2 rounded-r-md border border-gray-300 bg-white text-sm font-medium text-gray-500 hover:bg-gray-50"> |
| | <span class="sr-only">Next</span> |
| | <i data-feather="chevron-right" class="h-5 w-5"></i> |
| | </a> |
| | </nav> |
| | </div> |
| | </div> |
| | </div> |
| | </div> |
| | </div> |
| | </div> |
| | </div> |
| |
|
| | <script> |
| | feather.replace(); |
| | |
| | |
| | document.getElementById('toggleSidebar').addEventListener('click', function() { |
| | document.querySelector('.sidebar').classList.toggle('sidebar-collapsed'); |
| | document.querySelector('.content').classList.toggle('ml-64'); |
| | document.querySelector('.content').classList.toggle('ml-20'); |
| | |
| | const icon = this.querySelector('i'); |
| | if (icon.getAttribute('data-feather') === 'chevron-left') { |
| | icon.setAttribute('data-feather', 'chevron-right'); |
| | } else { |
| | icon.setAttribute('data-feather', 'chevron-left'); |
| | } |
| | feather.replace(); |
| | }); |
| | |
| | |
| | const dateInput = document.querySelector('input[placeholder="Date Range"]'); |
| | dateInput.addEventListener('focus', function() { |
| | |
| | |
| | this.type = 'date'; |
| | }); |
| | </script> |
| | </body> |
| | </html> |
| |
|