Spaces:
Configuration error
Configuration error
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>Rounds Management - Patrol Control System</title> | |
| <link rel="stylesheet" href="style.css"> | |
| <script src="https://cdn.tailwindcss.com"></script> | |
| <script src="https://unpkg.com/feather-icons"></script> | |
| <script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script> | |
| </head> | |
| <body class="bg-gray-50 min-h-screen"> | |
| <!-- Sidebar --> | |
| <custom-sidebar></custom-sidebar> | |
| <!-- Header --> | |
| <custom-header></custom-header> | |
| <!-- Main Content --> | |
| <main class="ml-64 mt-16 p-6"> | |
| <div class="flex justify-between items-center mb-6"> | |
| <div> | |
| <h1 class="text-2xl font-bold text-gray-800">Patrol Rounds Management</h1> | |
| <p class="text-gray-600">Create, schedule, and monitor patrol rounds</p> | |
| </div> | |
| <button class="bg-blue-600 hover:bg-blue-700 text-white font-medium py-2 px-4 rounded-lg flex items-center shadow-sm"> | |
| <i data-feather="plus" class="mr-2 w-4 h-4"></i> | |
| Create New Round | |
| </button> | |
| </div> | |
| <!-- Filters --> | |
| <div class="bg-white rounded-xl shadow-sm p-6 mb-6"> | |
| <div class="grid grid-cols-1 md:grid-cols-5 gap-4"> | |
| <div> | |
| <label class="block text-sm font-medium text-gray-700 mb-1">Search</label> | |
| <div class="relative"> | |
| <input type="text" placeholder="Search rounds..." class="w-full pl-9 pr-3 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-transparent"> | |
| <i data-feather="search" class="absolute left-3 top-2.5 w-4 h-4 text-gray-400"></i> | |
| </div> | |
| </div> | |
| <div> | |
| <label class="block text-sm font-medium text-gray-700 mb-1">Status</label> | |
| <select class="w-full px-3 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-transparent"> | |
| <option>All Statuses</option> | |
| <option>Active</option> | |
| <option>Completed</option> | |
| <option>Pending</option> | |
| <option>Cancelled</option> | |
| </select> | |
| </div> | |
| <div> | |
| <label class="block text-sm font-medium text-gray-700 mb-1">Guard</label> | |
| <select class="w-full px-3 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-transparent"> | |
| <option>All Guards</option> | |
| <option>John Doe</option> | |
| <option>Jane Smith</option> | |
| <option>Mike Johnson</option> | |
| </select> | |
| </div> | |
| <div> | |
| <label class="block text-sm font-medium text-gray-700 mb-1">Zone</label> | |
| <select class="w-full px-3 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-transparent"> | |
| <option>All Zones</option> | |
| <option>Zone A</option> | |
| <option>Zone B</option> | |
| <option>Zone C</option> | |
| </select> | |
| </div> | |
| <div class="flex items-end"> | |
| <button class="w-full bg-gray-100 hover:bg-gray-200 text-gray-800 font-medium py-2 px-4 rounded-lg flex items-center justify-center"> | |
| <i data-feather="refresh-ccw" class="w-4 h-4 mr-2"></i> | |
| Reset | |
| </button> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Rounds List --> | |
| <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">Round Details</th> | |
| <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Assigned To</th> | |
| <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Schedule</th> | |
| <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Progress</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-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"> | |
| <div class="text-sm font-medium text-gray-900">Night Patrol - Zone A</div> | |
| <div class="text-sm text-gray-500">18 control points</div> | |
| </td> | |
| <td class="px-6 py-4 whitespace-nowrap"> | |
| <div class="flex items-center"> | |
| <div class="bg-gray-200 border-2 border-dashed rounded-xl w-8 h-8 mr-2"></div> | |
| <div> | |
| <div class="text-sm font-medium text-gray-900">John Doe</div> | |
| <div class="text-sm text-gray-500">Security Officer</div> | |
| </div> | |
| </div> | |
| </td> | |
| <td class="px-6 py-4 whitespace-nowrap"> | |
| <div class="text-sm text-gray-900">Daily at 10:00 PM</div> | |
| <div class="text-sm text-gray-500">Starts: Today</div> | |
| </td> | |
| <td class="px-6 py-4 whitespace-nowrap"> | |
| <div class="w-full bg-gray-200 rounded-full h-2"> | |
| <div class="bg-green-600 h-2 rounded-full" style="width: 75%"></div> | |
| </div> | |
| <div class="text-sm text-gray-500 mt-1">15/20 points visited</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"> | |
| Active | |
| </span> | |
| </td> | |
| <td class="px-6 py-4 whitespace-nowrap text-sm font-medium"> | |
| <a href="#" class="text-blue-600 hover:text-blue-900">View</a> | |
| <a href="#" class="ml-3 text-indigo-600 hover:text-indigo-900">Edit</a> | |
| </td> | |
| </tr> | |
| <tr> | |
| <td class="px-6 py-4 whitespace-nowrap"> | |
| <div class="text-sm font-medium text-gray-900">Day Shift - Building B</div> | |
| <div class="text-sm text-gray-500">12 control points</div> | |
| </td> | |
| <td class="px-6 py-4 whitespace-nowrap"> | |
| <div class="flex items-center"> | |
| <div class="bg-gray-200 border-2 border-dashed rounded-xl w-8 h-8 mr-2"></div> | |
| <div> | |
| <div class="text-sm font-medium text-gray-900">Jane Smith</div> | |
| <div class="text-sm text-gray-500">Senior Officer</div> | |
| </div> | |
| </div> | |
| </td> | |
| <td class="px-6 py-4 whitespace-nowrap"> | |
| <div class="text-sm text-gray-900">Mon-Fri 9:00 AM</div> | |
| <div class="text-sm text-gray-500">Starts: Jan 15</div> | |
| </td> | |
| <td class="px-6 py-4 whitespace-nowrap"> | |
| <div class="w-full bg-gray-200 rounded-full h-2"> | |
| <div class="bg-blue-600 h-2 rounded-full" style="width: 100%"></div> | |
| </div> | |
| <div class="text-sm text-gray-500 mt-1">12/12 points visited</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-blue-100 text-blue-800"> | |
| Completed | |
| </span> | |
| </td> | |
| <td class="px-6 py-4 whitespace-nowrap text-sm font-medium"> | |
| <a href="#" class="text-blue-600 hover:text-blue-900">View</a> | |
| <a href="#" class="ml-3 text-indigo-600 hover:text-indigo-900">Edit</a> | |
| </td> | |
| </tr> | |
| <tr> | |
| <td class="px-6 py-4 whitespace-nowrap"> | |
| <div class="text-sm font-medium text-gray-900">Evening Check - Parking</div> | |
| <div class="text-sm text-gray-500">8 control points</div> | |
| </td> | |
| <td class="px-6 py-4 whitespace-nowrap"> | |
| <div class="flex items-center"> | |
| <div class="bg-gray-200 border-2 border-dashed rounded-xl w-8 h-8 mr-2"></div> | |
| <div> | |
| <div class="text-sm font-medium text-gray-900">Mike Johnson</div> | |
| <div class="text-sm text-gray-500">Junior Officer</div> | |
| </div> | |
| </div> | |
| </td> | |
| <td class="px-6 py-4 whitespace-nowrap"> | |
| <div class="text-sm text-gray-900">Daily at 6:00 PM</div> | |
| <div class="text-sm text-gray-500">Starts: Jan 20</div> | |
| </td> | |
| <td class="px-6 py-4 whitespace-nowrap"> | |
| <div class="w-full bg-gray-200 rounded-full h-2"> | |
| <div class="bg-amber-600 h-2 rounded-full" style="width: 25%"></div> | |
| </div> | |
| <div class="text-sm text-gray-500 mt-1">2/8 points visited</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-amber-100 text-amber-800"> | |
| Pending | |
| </span> | |
| </td> | |
| <td class="px-6 py-4 whitespace-nowrap text-sm font-medium"> | |
| <a href="#" class="text-blue-600 hover:text-blue-900">View</a> | |
| <a href="#" class="ml-3 text-indigo-600 hover:text-indigo-900">Edit</a> | |
| </td> | |
| </tr> | |
| <tr> | |
| <td class="px-6 py-4 whitespace-nowrap"> | |
| <div class="text-sm font-medium text-gray-900">Morning Patrol - Perimeter</div> | |
| <div class="text-sm text-gray-500">22 control points</div> | |
| </td> | |
| <td class="px-6 py-4 whitespace-nowrap"> | |
| <div class="flex items-center"> | |
| <div class="bg-gray-200 border-2 border-dashed rounded-xl w-8 h-8 mr-2"></div> | |
| <div> | |
| <div class="text-sm font-medium text-gray-900">Sarah Wilson</div> | |
| <div class="text-sm text-gray-500">Lead Officer</div> | |
| </div> | |
| </div> | |
| </td> | |
| <td class="px-6 py-4 whitespace-nowrap"> | |
| <div class="text-sm text-gray-900">Daily at 7:00 AM</div> | |
| <div class="text-sm text-gray-500">Starts: Feb 1</div> | |
| </td> | |
| <td class="px-6 py-4 whitespace-nowrap"> | |
| <div class="w-full bg-gray-200 rounded-full h-2"> | |
| <div class="bg-green-600 h-2 rounded-full" style="width: 90%"></div> | |
| </div> | |
| <div class="text-sm text-gray-500 mt-1">20/22 points visited</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"> | |
| Active | |
| </span> | |
| </td> | |
| <td class="px-6 py-4 whitespace-nowrap text-sm font-medium"> | |
| <a href="#" class="text-blue-600 hover:text-blue-900">View</a> | |
| <a href="#" class="ml-3 text-indigo-600 hover:text-indigo-900">Edit</a> | |
| </td> | |
| </tr> | |
| </tbody> | |
| </table> | |
| </div> | |
| </div> | |
| <!-- Pagination --> | |
| <div class="mt-8 flex justify-between items-center"> | |
| <div class="text-sm text-gray-600"> | |
| Showing 1 to 4 of 24 entries | |
| </div> | |
| <nav class="flex items-center space-x-2"> | |
| <a href="#" class="px-3 py-1 rounded-lg bg-gray-100 hover:bg-gray-200 text-gray-700">Previous</a> | |
| <a href="#" class="px-3 py-1 rounded-lg bg-blue-600 text-white">1</a> | |
| <a href="#" class="px-3 py-1 rounded-lg bg-gray-100 hover:bg-gray-200 text-gray-700">2</a> | |
| <a href="#" class="px-3 py-1 rounded-lg bg-gray-100 hover:bg-gray-200 text-gray-700">3</a> | |
| <span class="px-3 py-1 text-gray-500">...</span> | |
| <a href="#" class="px-3 py-1 rounded-lg bg-gray-100 hover:bg-gray-200 text-gray-700">6</a> | |
| <a href="#" class="px-3 py-1 rounded-lg bg-gray-100 hover:bg-gray-200 text-gray-700">Next</a> | |
| </nav> | |
| </div> | |
| </main> | |
| <script src="components/sidebar.js"></script> | |
| <script src="components/header.js"></script> | |
| <script src="script.js"></script> | |
| <script> | |
| feather.replace(); | |
| </script> | |
| </body> | |
| </html> | |