Removed files from promoting 847d985
Browse filesRemoved files that don't exist in commit 847d9855a97fd49a0ba1f9c6d4be58e058f01669:
- currencies.html
- customers.html
- invoices.html
- reports.html
Files changed (4)
- currencies.htmlDeleted-322
- customers.htmlDeleted-305
- invoices.htmlDeleted-322
- reports.htmlDeleted-266
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322<!DOCTYPE html><html lang="en" class="h-full bg-gray-50"><head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Currencies | SkyERP</title> <script src="https://cdn.tailwindcss.com"></script> <script src="https://unpkg.com/feather-icons"></script></head><body class="h-full"> <div class="min-h-full flex"> <!-- Sidebar --> <div class="hidden md:flex md:flex-shrink-0"> <div class="flex flex-col w-64 border-r border-gray-200 bg-white"> <div class="h-0 flex-1 flex flex-col pt-5 pb-4 overflow-y-auto"> <div class="flex items-center flex-shrink-0 px-4"> <div class="flex items-center"> <i data-feather="cloud" class="h-8 w-auto text-primary-600"></i> <span class="ml-3 text-xl font-bold text-gray-900">SkyERP</span> </div> </div> <nav class="mt-5 flex-1 px-2 space-y-1"> <a href="index.html" class="sidebar-link group flex items-center px-2 py-2 text-sm font-medium rounded-md text-gray-600 hover:text-gray-900 hover:bg-gray-50"> <i data-feather="home" class="sidebar-icon mr-3 flex-shrink-0 h-5 w-5 text-gray-500 group-hover:text-gray-500"></i> Dashboard </a> <a href="sales.html" class="sidebar-link group flex items-center px-2 py-2 text-sm font-medium rounded-md text-gray-600 hover:text-gray-900 hover:bg-gray-50"> <i data-feather="shopping-cart" class="sidebar-icon mr-3 flex-shrink-0 h-5 w-5 text-gray-500 group-hover:text-gray-500"></i> Sales </a> <a href="inventory.html" class="sidebar-link group flex items-center px-2 py-2 text-sm font-medium rounded-md text-gray-600 hover:text-gray-900 hover:bg-gray-50"> <i data-feather="package" class="sidebar-icon mr-3 flex-shrink-0 h-5 w-5 text-gray-500 group-hover:text-gray-500"></i> Inventory </a> <a href="accounting.html" class="sidebar-link group flex items-center px-2 py-2 text-sm font-medium rounded-md text-gray-600 hover:text-gray-900 hover:bg-gray-50"> <i data-feather="dollar-sign" class="sidebar-icon mr-3 flex-shrink-0 h-5 w-5 text-gray-500 group-hover:text-gray-500"></i> Accounting </a> <a href="hr.html" class="sidebar-link group flex items-center px-2 py-2 text-sm font-medium rounded-md text-gray-600 hover:text-gray-900 hover:bg-gray-50"> <i data-feather="users" class="sidebar-icon mr-3 flex-shrink-0 h-5 w-5 text-gray-500 group-hover:text-gray-500"></i> HR </a> <a href="reports.html" class="sidebar-link group flex items-center px-2 py-2 text-sm font-medium rounded-md text-gray-600 hover:text-gray-900 hover:bg-gray-50"> <i data-feather="bar-chart-2" class="sidebar-icon mr-3 flex-shrink-0 h-5 w-5 text-gray-500 group-hover:text-gray-500"></i> Reports </a> <a href="customers.html" class="sidebar-link group flex items-center px-2 py-2 text-sm font-medium rounded-md text-gray-600 hover:text-gray-900 hover:bg-gray-50"> <i data-feather="user-check" class="sidebar-icon mr-3 flex-shrink-0 h-5 w-5 text-gray-500 group-hover:text-gray-500"></i> Customers </a> <a href="invoices.html" class="sidebar-link group flex items-center px-2 py-2 text-sm font-medium rounded-md text-gray-600 hover:text-gray-900 hover:bg-gray-50"> <i data-feather="file-text" class="sidebar-icon mr-3 flex-shrink-0 h-5 w-5 text-gray-500 group-hover:text-gray-500"></i> Invoices </a> <a href="currencies.html" class="sidebar-link group flex items-center px-2 py-2 text-sm font-medium rounded-md text-primary-700 bg-primary-50"> <i data-feather="dollar-sign" class="sidebar-icon mr-3 flex-shrink-0 h-5 w-5 text-primary-600"></i> Currencies </a> <a href="settings.html" class="sidebar-link group flex items-center px-2 py-2 text-sm font-medium rounded-md text-gray-600 hover:text-gray-900 hover:bg-gray-50"> <i data-feather="settings" class="sidebar-icon mr-3 flex-shrink-0 h-5 w-5 text-gray-500 group-hover:text-gray-500"></i> Settings </a> </nav> </div> <div class="flex-shrink-0 flex border-t border-gray-200 p-4"> <div class="flex items-center"> <div> <img class="inline-block h-9 w-9 rounded-full" src="http://static.photos/people/200x200/1" alt=""> </div> <div class="ml-3"> <p class="text-sm font-medium text-gray-700 group-hover:text-gray-900">Admin User</p> <p class="text-xs font-medium text-gray-500 group-hover:text-gray-700">View profile</p> </div> </div> </div> </div> </div>
<!-- Main content --> <div class="flex-1 flex flex-col overflow-hidden"> <!-- Header --> <div class="hidden md:block bg-white shadow"> <div class="px-4 py-3 flex justify-between items-center"> <div class="flex items-center"> <a href="index.html" class="text-primary-600 hover:text-primary-800"> <i data-feather="arrow-left" class="mr-2"></i> <h1 class="text-xl font-bold text-gray-900">Currencies</h1> </div> <div class="flex items-center space-x-4"> <div class="relative"> <div class="absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none"> <i data-feather="search" class="h-5 w-5 text-gray-400"></i> </div> <input type="text" class="block w-full pl-10 pr-3 py-2 border border-gray-300 rounded-md leading-5 bg-white placeholder-gray-500 focus:outline-none focus:placeholder-gray-400 focus:ring-1 focus:ring-primary-500 focus:border-primary-500 sm:text-sm" placeholder="Search..."> </div> <div class="ml-4 flex items-center md:ml-6"> <button type="button" class="p-1 rounded-full text-gray-400 hover:text-gray-500 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-primary-500"> <i data-feather="bell" class="h-6 w-6"></i> </button> </div> </div> </div> </div>
<!-- Content area --> <div class="flex-1 overflow-auto focus:outline-none bg-gray-50"> <div class="px-4 py-6 sm:px-6 lg:px-8"> <!-- Currency rates --> <div class="mb-6 grid grid-cols-1 gap-5 sm:grid-cols-2 lg:grid-cols-4"> <div class="bg-white shadow rounded-lg p-6"> <div class="flex items-center"> <div class="flex-shrink-0 bg-green-500 rounded-md p-3"> <i data-feather="dollar-sign" class="h-6 w-6 text-white"></i> </div> <div class="ml-5 w-0 flex-1"> <dl> <dt class="text-sm font-medium text-gray-500 truncate">USD</dt> <dd class="flex items-baseline"> <div class="text-2xl font-semibold text-gray-900">1.00</div> </dd> </dl> </div> </div> </div> <div class="bg-white shadow rounded-lg p-6"> <div class="flex items-center"> <div class="flex-shrink-0 bg-blue-500 rounded-md p-3"> <i data-feather="euro" class="h-6 w-6 text-white"></i> </div> <div class="ml-5 w-0 flex-1"> <dl> <dt class="text-sm font-medium text-gray-500 truncate">EUR</dt> <dd class="flex items-baseline"> <div class="text-2xl font-semibold text-gray-900">0.85</div> </dd> </dl> </div> </div> </div> <div class="bg-white shadow rounded-lg p-6"> <div class="flex items-center"> <div class="flex-shrink-0 bg-red-500 rounded-md p-3"> <i data-feather="pound-sign" class="h-6 w-6 text-white"></i> </div> <div class="ml-5 w-0 flex-1"> <dl> <dt class="text-sm font-medium text-gray-500 truncate">GBP</dt> <dd class="flex items-baseline"> <div class="text-2xl font-semibold text-gray-900">0.73</div> </dd> </dl> </div> </div> </div> <div class="bg-white shadow rounded-lg p-6"> <div class="flex items-center"> <div class="flex-shrink-0 bg-yellow-500 rounded-md p-3"> <i data-feather="yen" class="h-6 w-6 text-white"></i> </div> <div class="ml-5 w-0 flex-1"> <dl> <dt class="text-sm font-medium text-gray-500 truncate">JPY</dt> <dd class="flex items-baseline"> <div class="text-2xl font-semibold text-gray-900">110.45</div> </dd> </dl> </div> </div> </div> </div>
<!-- Currency management --> <div class="bg-white shadow rounded-lg overflow-hidden"> <div class="px-4 py-5 sm:px-6 border-b border-gray-200 flex justify-between items-center"> <h3 class="text-lg leading-6 font-medium text-gray-900">Currency Exchange Rates</h3> <div class="flex space-x-3"> <div class="relative"> <div class="absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none"> <i data-feather="search" class="h-5 w-5 text-gray-400"></i> </div> <input type="text" class="block w-full pl-10 pr-3 py-2 border border-gray-300 rounded-md leading-5 bg-white placeholder-gray-500 focus:outline-none focus:placeholder-gray-400 focus:ring-1 focus:ring-primary-500 focus:border-primary-500 sm:text-sm" placeholder="Search currencies..."> </div> <button onclick="openAddCurrencyModal()" class="inline-flex items-center px-4 py-2 border border-transparent rounded-md shadow-sm text-sm font-medium text-white bg-primary-600 hover:bg-primary-700"> <i data-feather="plus" class="mr-2"></i> Add Currency </button> </div> </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">Currency</th> <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Code</th> <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Symbol</th> <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Exchange Rate</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">Last Updated</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" id="currenciesTable"> <!-- Currency rows will be populated here --> </tbody> </table> </div> </div> </div> </div> </div> </div>
<!-- Add Currency Modal --> <div id="addCurrencyModal" class="fixed inset-0 overflow-y-auto" style="display: none;"> <div class="flex items-end justify-center min-h-screen pt-4 px-4 pb-20 text-center sm:block sm:p-0"> <div class="fixed inset-0 bg-gray-500 bg-opacity-75 transition-opacity"></div> <div class="transform transition-all sm:max-w-lg sm:w-full m-auto p-6"> <div class="bg-white rounded-lg shadow-xl p-6"> <h3 class="text-lg font-medium text-gray-900 mb-4">Add New Currency</h3> <form id="currencyForm" class="space-y-4"> <div> <label for="currencyName" class="block text-sm font-medium text-gray-700">Currency Name</label> <input type="text" id="currencyName" name="currencyName" class="mt-1 block w-full border border-gray-300 rounded-md shadow-sm py-2 px-3 focus:outline-none focus:ring-primary-500 focus:border-primary-500 block w-full sm:text-sm border-gray-300 rounded-md" required> </div> <div> <label for="currencyCode" class="block text-sm font-medium text-gray-700">Currency Code</label> <input type="text" id="currencyCode" name="currencyCode" class="mt-1 block w-full border border-gray-300 rounded-md shadow-sm py-2 px-3 focus:outline-none focus:ring-primary-500 focus:border-primary-500 block w-full sm:text-sm border-gray-300 rounded-md" required> </div> <div> <label for="currencySymbol" class="block text-sm font-medium text-gray-700">Currency Symbol</label> <input type="text" id="currencySymbol" name="currencySymbol" class="mt-1 block w-full border border-gray-300 rounded-md shadow-sm py-2 px-3 focus:outline-none focus:ring-primary-500 focus:border-primary-500 block w-full sm:text-sm border-gray-300 rounded-md" required> </div> <div> <label for="exchangeRate" class="block text-sm font-medium text-gray-700">Exchange Rate (to USD)</label> <input type="number" id="exchangeRate" name="exchangeRate" step="0.0001" class="mt-1 block w-full border border-gray-300 rounded-md shadow-sm py-2 px-3 focus:outline-none focus:ring-primary-500 focus:border-primary-500 block w-full sm:text-sm border-gray-300 rounded-md" required> </div> <div class="flex justify-end space-x-3"> <button type="button" onclick="closeAddCurrencyModal()" class="px-4 py-2 text-sm font-medium text-gray-700 hover:text-gray-900" type="button"> Cancel </button> <button type="submit" class="inline-flex justify-center px-4 py-2 text-sm font-medium rounded-md text-white bg-primary-600 hover:bg-primary-700"> Add Currency </button> </div> </form> </div> </div> </div>
<script> // Initialize Feather Icons feather.replace();
let currencies = JSON.parse(localStorage.getItem('currencies')) || [ { name: 'US Dollar', code: 'USD', symbol: '$', rate: 1.0000, status: 'Active' }, { name: 'Euro', code: 'EUR', symbol: '€', rate: 0.8500, status: 'Active' }, { name: 'British Pound', code: 'GBP', symbol: '£', rate: 0.7300, status: 'Active' }, { name: 'Japanese Yen', code: 'JPY', symbol: '¥', rate: 110.4500, status: 'Active' } ];
function openAddCurrencyModal() { document.getElementById('addCurrencyModal').style.display = 'block'; }
function closeAddCurrencyModal() { document.getElementById('addCurrencyModal').style.display = 'none'; document.getElementById('currencyForm').reset(); }
function renderCurrencies() { const tableBody = document.getElementById('currenciesTable'); tableBody.innerHTML = '';
currencies.forEach((currency, index) => { const row = document.createElement('tr'); row.innerHTML = ` <td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">${currency.name}</td> <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">${currency.code}</td> <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">${currency.symbol}</td> <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">${currency.rate}</td> <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">${currency.code}</td> <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">${currency.symbol}</td> <td class="px-6 py-4 whitespace-nowrap"> <span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full ${currency.status === 'Active' ? 'bg-green-100 text-green-800' : 'bg-red-100 text-red-800'}">${currency.status}</span> </td> <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">${new Date().toLocaleDateString()}</td> <td class="px-6 py-4 whitespace-nowrap text-sm font-medium"> <a href="#" class="text-primary-600 hover:text-primary-900 mr-3">Edit</a> <a href="#" onclick="deleteCurrency(${index})" class="text-red-600 hover:text-red-900">Delete</a> </td> `; tableBody.appendChild(row); } }
function deleteCurrency(index) { currencies.splice(index, 1); localStorage.setItem('currencies', JSON.stringify(currencies)); renderCurrencies(); }
document.getElementById('currencyForm').addEventListener('submit', function(e) { e.preventDefault(); const currency = { name: document.getElementById('currencyName').value, code: document.getElementById('currencyCode').value, symbol: document.getElementById('currencySymbol').value, rate: parseFloat(document.getElementById('exchangeRate').value), status: 'Active' };
currencies.push(currency); localStorage.setItem('currencies', JSON.stringify(currencies)); renderCurrencies(); closeAddCurrencyModal(); }
// Initial render renderCurrencies(); </script></body></html>123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305<!DOCTYPE html><html lang="en" class="h-full bg-gray-50"><head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Customers | SkyERP</title> <script src="https://cdn.tailwindcss.com"></script> <script src="https://unpkg.com/feather-icons"></script></head><body class="h-full"> <div class="min-h-full flex"> <!-- Sidebar --> <div class="hidden md:flex md:flex-shrink-0"> <div class="flex flex-col w-64 border-r border-gray-200 bg-white"> <div class="h-0 flex-1 flex flex-col pt-5 pb-4 overflow-y-auto"> <div class="flex items-center flex-shrink-0 px-4"> <div class="flex items-center"> <i data-feather="cloud" class="h-8 w-auto text-primary-600"></i> <span class="ml-3 text-xl font-bold text-gray-900">SkyERP</span> </div> </div> <nav class="mt-5 flex-1 px-2 space-y-1"> <a href="index.html" class="sidebar-link group flex items-center px-2 py-2 text-sm font-medium rounded-md text-gray-600 hover:text-gray-900 hover:bg-gray-50"> <i data-feather="home" class="sidebar-icon mr-3 flex-shrink-0 h-5 w-5 text-gray-500 group-hover:text-gray-500"></i> Dashboard </a> <a href="sales.html" class="sidebar-link group flex items-center px-2 py-2 text-sm font-medium rounded-md text-gray-600 hover:text-gray-900 hover:bg-gray-50"> <i data-feather="shopping-cart" class="sidebar-icon mr-3 flex-shrink-0 h-5 w-5 text-gray-500 group-hover:text-gray-500"></i> Sales </a> <a href="inventory.html" class="sidebar-link group flex items-center px-2 py-2 text-sm font-medium rounded-md text-gray-600 hover:text-gray-900 hover:bg-gray-50"> <i data-feather="package" class="sidebar-icon mr-3 flex-shrink-0 h-5 w-5 text-gray-500 group-hover:text-gray-500"></i> Inventory </a> <a href="accounting.html" class="sidebar-link group flex items-center px-2 py-2 text-sm font-medium rounded-md text-gray-600 hover:text-gray-900 hover:bg-gray-50"> <i data-feather="dollar-sign" class="sidebar-icon mr-3 flex-shrink-0 h-5 w-5 text-gray-500 group-hover:text-gray-500"></i> Accounting </a> <a href="hr.html" class="sidebar-link group flex items-center px-2 py-2 text-sm font-medium rounded-md text-gray-600 hover:text-gray-900 hover:bg-gray-50"> <i data-feather="users" class="sidebar-icon mr-3 flex-shrink-0 h-5 w-5 text-gray-500 group-hover:text-gray-500"></i> HR </a> <a href="reports.html" class="sidebar-link group flex items-center px-2 py-2 text-sm font-medium rounded-md text-gray-600 hover:text-gray-900 hover:bg-gray-50"> <i data-feather="bar-chart-2" class="sidebar-icon mr-3 flex-shrink-0 h-5 w-5 text-gray-500 group-hover:text-gray-500"></i> Reports </a> <a href="customers.html" class="sidebar-link group flex items-center px-2 py-2 text-sm font-medium rounded-md text-primary-700 bg-primary-50"> <i data-feather="user-check" class="sidebar-icon mr-3 flex-shrink-0 h-5 w-5 text-primary-600"></i> Customers </a> <a href="invoices.html" class="sidebar-link group flex items-center px-2 py-2 text-sm font-medium rounded-md text-gray-600 hover:text-gray-900 hover:bg-gray-50"> <i data-feather="file-text" class="sidebar-icon mr-3 flex-shrink-0 h-5 w-5 text-gray-500 group-hover:text-gray-500"></i> Invoices </a> <a href="currencies.html" class="sidebar-link group flex items-center px-2 py-2 text-sm font-medium rounded-md text-gray-600 hover:text-gray-900 hover:bg-gray-50"> <i data-feather="dollar-sign" class="sidebar-icon mr-3 flex-shrink-0 h-5 w-5 text-gray-500 group-hover:text-gray-500"></i> Currencies </a> <a href="settings.html" class="sidebar-link group flex items-center px-2 py-2 text-sm font-medium rounded-md text-gray-600 hover:text-gray-900 hover:bg-gray-50"> <i data-feather="settings" class="sidebar-icon mr-3 flex-shrink-0 h-5 w-5 text-gray-500 group-hover:text-gray-500"></i> Settings </a> </nav> </div> <div class="flex-shrink-0 flex border-t border-gray-200 p-4"> <div class="flex items-center"> <div> <img class="inline-block h-9 w-9 rounded-full" src="http://static.photos/people/200x200/1" alt=""> </div> <div class="ml-3"> <p class="text-sm font-medium text-gray-700 group-hover:text-gray-900">Admin User</p> <p class="text-xs font-medium text-gray-500 group-hover:text-gray-700">View profile</p> </div> </div> </div> </div> </div>
<!-- Main content --> <div class="flex-1 flex flex-col overflow-hidden"> <!-- Header --> <div class="hidden md:block bg-white shadow"> <div class="px-4 py-3 flex justify-between items-center"> <div class="flex items-center"> <a href="index.html" class="text-primary-600 hover:text-primary-800"> <i data-feather="arrow-left" class="mr-2"></i> <h1 class="text-xl font-bold text-gray-900">Customers</h1> </div> <div class="flex items-center space-x-4"> <div class="relative"> <div class="absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none"> <i data-feather="search" class="h-5 w-5 text-gray-400"></i> </div> <input type="text" class="block w-full pl-10 pr-3 py-2 border border-gray-300 rounded-md leading-5 bg-white placeholder-gray-500 focus:outline-none focus:placeholder-gray-400 focus:ring-1 focus:ring-primary-500 focus:border-primary-500 sm:text-sm" placeholder="Search..."> </div> <div class="ml-4 flex items-center md:ml-6"> <button type="button" class="p-1 rounded-full text-gray-400 hover:text-gray-500 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-primary-500"> <i data-feather="bell" class="h-6 w-6"></i> </button> </div> </div> </div> </div>
<!-- Content area --> <div class="flex-1 overflow-auto focus:outline-none bg-gray-50"> <div class="px-4 py-6 sm:px-6 lg:px-8"> <!-- Customer stats --> <div class="mb-6 grid grid-cols-1 gap-5 sm:grid-cols-3"> <div class="bg-white shadow rounded-lg p-6"> <div class="flex items-center"> <div class="flex-shrink-0 bg-blue-500 rounded-md p-3"> <i data-feather="users" class="h-6 w-6 text-white"></i> </div> <div class="ml-5 w-0 flex-1"> <dl> <dt class="text-sm font-medium text-gray-500 truncate">Total Customers</dt> <dd class="flex items-baseline"> <div class="text-2xl font-semibold text-gray-900">356</div> </dd> </dl> </div> </div> </div> <div class="bg-white shadow rounded-lg p-6"> <div class="flex items-center"> <div class="flex-shrink-0 bg-green-500 rounded-md p-3"> <i data-feather="user-check" class="h-6 w-6 text-white"></i> </div> <div class="ml-5 w-0 flex-1"> <dl> <dt class="text-sm font-medium text-gray-500 truncate">Active</dt> <dd class="flex items-baseline"> <div class="text-2xl font-semibold text-gray-900">298</div> </dd> </dl> </div> </div> </div> <div class="bg-white shadow rounded-lg p-6"> <div class="flex items-center"> <div class="flex-shrink-0 bg-yellow-500 rounded-md p-3"> <i data-feather="user-x" class="h-6 w-6 text-white"></i> </div> <div class="ml-5 w-0 flex-1"> <dl> <dt class="text-sm font-medium text-gray-500 truncate">Inactive</dt> <dd class="flex items-baseline"> <div class="text-2xl font-semibold text-gray-900">58</div> </dd> </dl> </div> </div> </div> </div>
<!-- Customer list --> <div class="bg-white shadow rounded-lg overflow-hidden"> <div class="px-4 py-5 sm:px-6 border-b border-gray-200 flex justify-between items-center"> <h3 class="text-lg leading-6 font-medium text-gray-900">Customer Directory</h3> <div class="flex space-x-3"> <div class="relative"> <div class="absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none"> <i data-feather="search" class="h-5 w-5 text-gray-400"></i> </div> <input type="text" class="block w-full pl-10 pr-3 py-2 border border-gray-300 rounded-md leading-5 bg-white placeholder-gray-500 focus:outline-none focus:placeholder-gray-400 focus:ring-1 focus:ring-primary-500 focus:border-primary-500 sm:text-sm" placeholder="Search customers..."> </div> <button onclick="openAddCustomerModal()" class="inline-flex items-center px-4 py-2 border border-transparent rounded-md shadow-sm text-sm font-medium text-white bg-primary-600 hover:bg-primary-700"> <i data-feather="plus" class="mr-2"></i> Add Customer </button> </div> </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">Customer</th> <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Email</th> <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Phone</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">Actions</th> </tr> </thead> <tbody class="bg-white divide-y divide-gray-200" id="customersTable"> <!-- Customer rows will be populated here --> </tbody> </table> </div> </div> </div> </div> </div> </div>
<!-- Add Customer Modal --> <div id="addCustomerModal" class="fixed inset-0 overflow-y-auto" style="display: none;"> <div class="flex items-end justify-center min-h-screen pt-4 px-4 pb-20 text-center sm:block sm:p-0"> <div class="fixed inset-0 bg-gray-500 bg-opacity-75 transition-opacity"></div> <div class="transform transition-all sm:max-w-lg sm:w-full m-auto p-6"> <div class="bg-white rounded-lg shadow-xl p-6"> <h3 class="text-lg font-medium text-gray-900 mb-4">Add New Customer</h3> <form id="customerForm" class="space-y-4"> <div> <label for="customerName" class="block text-sm font-medium text-gray-700">Full Name</label> <input type="text" id="customerName" name="customerName" class="mt-1 block w-full border border-gray-300 rounded-md shadow-sm py-2 px-3 focus:outline-none focus:ring-primary-500 focus:border-primary-500 block w-full sm:text-sm border-gray-300 rounded-md" required> </div> <div> <label for="customerEmail" class="block text-sm font-medium text-gray-700">Email</label> <input type="email" id="customerEmail" name="customerEmail" class="mt-1 block w-full border border-gray-300 rounded-md shadow-sm py-2 px-3 focus:outline-none focus:ring-primary-500 focus:border-primary-500 block w-full sm:text-sm border-gray-300 rounded-md" required> </div> <div> <label for="customerPhone" class="block text-sm font-medium text-gray-700">Phone</label> <input type="tel" id="customerPhone" name="customerPhone" class="mt-1 block w-full border border-gray-300 rounded-md shadow-sm py-2 px-3 focus:outline-none focus:ring-primary-500 focus:border-primary-500 block w-full sm:text-sm border-gray-300 rounded-md"> </div> <div> <label for="customerAddress" class="block text-sm font-medium text-gray-700">Address</label> <textarea id="customerAddress" name="customerAddress" rows="3" class="mt-1 block w-full border border-gray-300 rounded-md shadow-sm py-2 px-3 focus:outline-none focus:ring-primary-500 focus:border-primary-500 block w-full sm:text-sm border-gray-300 rounded-md"></textarea> </div> <div class="flex justify-end space-x-3"> <button type="button" onclick="closeAddCustomerModal()" class="px-4 py-2 text-sm font-medium text-gray-700 hover:text-gray-900" type="button"> Cancel </button> <button type="submit" class="inline-flex justify-center px-4 py-2 text-sm font-medium rounded-md text-white bg-primary-600 hover:bg-primary-700"> Add Customer </button> </div> </form> </div> </div> </div>
<script> // Initialize Feather Icons feather.replace();
let customers = JSON.parse(localStorage.getItem('customers')) || [];
function openAddCustomerModal() { document.getElementById('addCustomerModal').style.display = 'block'; }
function closeAddCustomerModal() { document.getElementById('addCustomerModal').style.display = 'none'; document.getElementById('customerForm').reset(); }
function renderCustomers() { const tableBody = document.getElementById('customersTable'); tableBody.innerHTML = '';
customers.forEach((customer, index) => { const row = document.createElement('tr'); row.innerHTML = ` <td class="px-6 py-4 whitespace-nowrap"> <div class="flex items-center"> <div class="flex-shrink-0 h-10 w-10"> <img class="h-10 w-10 rounded-full" src="http://static.photos/people/200x200/${index + 7}" alt=""> </div> <div class="ml-4"> <div class="text-sm font-medium text-gray-900">${customer.name}</div> </div> </div> </td> <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">${customer.email}</td> <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">${customer.phone}</td> <td class="px-6 py-4 whitespace-nowrap"> <span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full ${customer.status === 'Active' ? 'bg-green-100 text-green-800' : 'bg-yellow-100 text-yellow-800'}">${customer.status}</span> </td> <td class="px-6 py-4 whitespace-nowrap text-sm font-medium"> <a href="#" class="text-primary-600 hover:text-primary-900 mr-3">Edit</a> <a href="#" onclick="deleteCustomer(${index})" class="text-red-600 hover:text-red-900">Delete</a> </td> `; tableBody.appendChild(row); } }
function deleteCustomer(index) { customers.splice(index, 1); localStorage.setItem('customers', JSON.stringify(customers)); renderCustomers(); }
document.getElementById('customerForm').addEventListener('submit', function(e) { e.preventDefault(); const customer = { name: document.getElementById('customerName').value, email: document.getElementById('customerEmail').value, phone: document.getElementById('customerPhone').value, address: document.getElementById('customerAddress').value, status: 'Active' };
customers.push(customer); localStorage.setItem('customers', JSON.stringify(customers)); renderCustomers(); closeAddCustomerModal(); }
// Initial render renderCustomers(); </script></body></html>123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322<!DOCTYPE html><html lang="en" class="h-full bg-gray-50"><head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Invoices | SkyERP</title> <script src="https://cdn.tailwindcss.com"></script> <script src="https://unpkg.com/feather-icons"></script></head><body class="h-full"> <div class="min-h-full flex"> <!-- Sidebar --> <div class="hidden md:flex md:flex-shrink-0"> <div class="flex flex-col w-64 border-r border-gray-200 bg-white"> <div class="h-0 flex-1 flex flex-col pt-5 pb-4 overflow-y-auto"> <div class="flex items-center flex-shrink-0 px-4"> <div class="flex items-center"> <i data-feather="cloud" class="h-8 w-auto text-primary-600"></i> <span class="ml-3 text-xl font-bold text-gray-900">SkyERP</span> </div> </div> <nav class="mt-5 flex-1 px-2 space-y-1"> <a href="index.html" class="sidebar-link group flex items-center px-2 py-2 text-sm font-medium rounded-md text-gray-600 hover:text-gray-900 hover:bg-gray-50"> <i data-feather="home" class="sidebar-icon mr-3 flex-shrink-0 h-5 w-5 text-gray-500 group-hover:text-gray-500"></i> Dashboard </a> <a href="sales.html" class="sidebar-link group flex items-center px-2 py-2 text-sm font-medium rounded-md text-gray-600 hover:text-gray-900 hover:bg-gray-50"> <i data-feather="shopping-cart" class="sidebar-icon mr-3 flex-shrink-0 h-5 w-5 text-gray-500 group-hover:text-gray-500"></i> Sales </a> <a href="inventory.html" class="sidebar-link group flex items-center px-2 py-2 text-sm font-medium rounded-md text-gray-600 hover:text-gray-900 hover:bg-gray-50"> <i data-feather="package" class="sidebar-icon mr-3 flex-shrink-0 h-5 w-5 text-gray-500 group-hover:text-gray-500"></i> Inventory </a> <a href="accounting.html" class="sidebar-link group flex items-center px-2 py-2 text-sm font-medium rounded-md text-gray-600 hover:text-gray-900 hover:bg-gray-50"> <i data-feather="dollar-sign" class="sidebar-icon mr-3 flex-shrink-0 h-5 w-5 text-gray-500 group-hover:text-gray-500"></i> Accounting </a> <a href="hr.html" class="sidebar-link group flex items-center px-2 py-2 text-sm font-medium rounded-md text-gray-600 hover:text-gray-900 hover:bg-gray-50"> <i data-feather="users" class="sidebar-icon mr-3 flex-shrink-0 h-5 w-5 text-gray-500 group-hover:text-gray-500"></i> HR </a> <a href="reports.html" class="sidebar-link group flex items-center px-2 py-2 text-sm font-medium rounded-md text-gray-600 hover:text-gray-900 hover:bg-gray-50"> <i data-feather="bar-chart-2" class="sidebar-icon mr-3 flex-shrink-0 h-5 w-5 text-gray-500 group-hover:text-gray-500"></i> Reports </a> <a href="customers.html" class="sidebar-link group flex items-center px-2 py-2 text-sm font-medium rounded-md text-gray-600 hover:text-gray-900 hover:bg-gray-50"> <i data-feather="user-check" class="sidebar-icon mr-3 flex-shrink-0 h-5 w-5 text-gray-500 group-hover:text-gray-500"></i> Customers </a> <a href="invoices.html" class="sidebar-link group flex items-center px-2 py-2 text-sm font-medium rounded-md text-primary-700 bg-primary-50"> <i data-feather="file-text" class="sidebar-icon mr-3 flex-shrink-0 h-5 w-5 text-primary-600"></i> Invoices </a> <a href="currencies.html" class="sidebar-link group flex items-center px-2 py-2 text-sm font-medium rounded-md text-gray-600 hover:text-gray-900 hover:bg-gray-50"> <i data-feather="dollar-sign" class="sidebar-icon mr-3 flex-shrink-0 h-5 w-5 text-gray-500 group-hover:text-gray-500"></i> Currencies </a> <a href="settings.html" class="sidebar-link group flex items-center px-2 py-2 text-sm font-medium rounded-md text-gray-600 hover:text-gray-900 hover:bg-gray-50"> <i data-feather="settings" class="sidebar-icon mr-3 flex-shrink-0 h-5 w-5 text-gray-500 group-hover:text-gray-500"></i> Settings </a> </nav> </div> <div class="flex-shrink-0 flex border-t border-gray-200 p-4"> <div class="flex items-center"> <div> <img class="inline-block h-9 w-9 rounded-full" src="http://static.photos/people/200x200/1" alt=""> </div> <div class="ml-3"> <p class="text-sm font-medium text-gray-700 group-hover:text-gray-900">Admin User</p> <p class="text-xs font-medium text-gray-500 group-hover:text-gray-700">View profile</p> </div> </div> </div> </div> </div>
<!-- Main content --> <div class="flex-1 flex flex-col overflow-hidden"> <!-- Header --> <div class="hidden md:block bg-white shadow"> <div class="px-4 py-3 flex justify-between items-center"> <div class="flex items-center"> <a href="index.html" class="text-primary-600 hover:text-primary-800"> <i data-feather="arrow-left" class="mr-2"></i> <h1 class="text-xl font-bold text-gray-900">Invoices</h1> </div> <div class="flex items-center space-x-4"> <div class="relative"> <div class="absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none"> <i data-feather="search" class="h-5 w-5 text-gray-400"></i> </div> <input type="text" class="block w-full pl-10 pr-3 py-2 border border-gray-300 rounded-md leading-5 bg-white placeholder-gray-500 focus:outline-none focus:placeholder-gray-400 focus:ring-1 focus:ring-primary-500 focus:border-primary-500 sm:text-sm" placeholder="Search..."> </div> <div class="ml-4 flex items-center md:ml-6"> <button type="button" class="p-1 rounded-full text-gray-400 hover:text-gray-500 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-primary-500"> <i data-feather="bell" class="h-6 w-6"></i> </button> </div> </div> </div> </div>
<!-- Content area --> <div class="flex-1 overflow-auto focus:outline-none bg-gray-50"> <div class="px-4 py-6 sm:px-6 lg:px-8"> <!-- Invoice stats --> <div class="mb-6 grid grid-cols-1 gap-5 sm:grid-cols-3"> <div class="bg-white shadow rounded-lg p-6"> <div class="flex items-center"> <div class="flex-shrink-0 bg-blue-500 rounded-md p-3"> <i data-feather="file-text" class="h-6 w-6 text-white"></i> </div> <div class="ml-5 w-0 flex-1"> <dl> <dt class="text-sm font-medium text-gray-500 truncate">Total Invoices</dt> <dd class="flex items-baseline"> <div class="text-2xl font-semibold text-gray-900">142</div> </dd> </dl> </div> </div> </div> <div class="bg-white shadow rounded-lg p-6"> <div class="flex items-center"> <div class="flex-shrink-0 bg-green-500 rounded-md p-3"> <i data-feather="check-circle" class="h-6 w-6 text-white"></i> </div> <div class="ml-5 w-0 flex-1"> <dl> <dt class="text-sm font-medium text-gray-500 truncate">Paid</dt> <dd class="flex items-baseline"> <div class="text-2xl font-semibold text-gray-900">98</div> </dd> </dl> </div> </div> </div> <div class="bg-white shadow rounded-lg p-6"> <div class="flex items-center"> <div class="flex-shrink-0 bg-yellow-500 rounded-md p-3"> <i data-feather="clock" class="h-6 w-6 text-white"></i> </div> <div class="ml-5 w-0 flex-1"> <dl> <dt class="text-sm font-medium text-gray-500 truncate">Pending</dt> <dd class="flex items-baseline"> <div class="text-2xl font-semibold text-gray-900">44</div> </dd> </dl> </div> </div> </div> </div>
<!-- Invoice list --> <div class="bg-white shadow rounded-lg overflow-hidden"> <div class="px-4 py-5 sm:px-6 border-b border-gray-200 flex justify-between items-center"> <h3 class="text-lg leading-6 font-medium text-gray-900">Invoices</h3> <div class="flex space-x-3"> <div class="relative"> <div class="absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none"> <i data-feather="search" class="h-5 w-5 text-gray-400"></i> </div> <input type="text" class="block w-full pl-10 pr-3 py-2 border border-gray-300 rounded-md leading-5 bg-white placeholder-gray-500 focus:outline-none focus:placeholder-gray-400 focus:ring-1 focus:ring-primary-500 focus:border-primary-500 sm:text-sm" placeholder="Search invoices..."> </div> <button onclick="openAddInvoiceModal()" class="inline-flex items-center px-4 py-2 border border-transparent rounded-md shadow-sm text-sm font-medium text-white bg-primary-600 hover:bg-primary-700"> <i data-feather="plus" class="mr-2"></i> Create Invoice </button> </div> </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">Invoice #</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">Date</th> <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Amount</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">Due 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" id="invoicesTable"> <!-- Invoice rows will be populated here --> </tbody> </table> </div> </div> </div> </div> </div> </div>
<!-- Add Invoice Modal --> <div id="addInvoiceModal" class="fixed inset-0 overflow-y-auto" style="display: none;"> <div class="flex items-end justify-center min-h-screen pt-4 px-4 pb-20 text-center sm:block sm:p-0"> <div class="fixed inset-0 bg-gray-500 bg-opacity-75 transition-opacity"></div> <div class="transform transition-all sm:max-w-2xl sm:w-full m-auto p-6"> <div class="bg-white rounded-lg shadow-xl p-6"> <h3 class="text-lg font-medium text-gray-900 mb-4">Create New Invoice</h3> <form id="invoiceForm" class="space-y-4"> <div class="grid grid-cols-2 gap-4"> <div> <label for="invoiceNumber" class="block text-sm font-medium text-gray-700">Invoice Number</label> <input type="text" id="invoiceNumber" name="invoiceNumber" class="mt-1 block w-full border border-gray-300 rounded-md shadow-sm py-2 px-3 focus:outline-none focus:ring-primary-500 focus:border-primary-500 block w-full sm:text-sm border-gray-300 rounded-md" required> </div> <div> <label for="customerSelect" class="block text-sm font-medium text-gray-700">Customer</label> <select id="customerSelect" name="customerSelect" class="mt-1 block w-full border border-gray-300 rounded-md shadow-sm py-2 px-3 focus:outline-none focus:ring-primary-500 focus:border-primary-500 block w-full sm:text-sm border-gray-300 rounded-md" required> <option value="">Select a customer</option> </select> </div> <div> <label for="invoiceDate" class="block text-sm font-medium text-gray-700">Invoice Date</label> <input type="date" id="invoiceDate" name="invoiceDate" class="mt-1 block w-full border border-gray-300 rounded-md shadow-sm py-2 px-3 focus:outline-none focus:ring-primary-500 focus:border-primary-500 block w-full sm:text-sm border-gray-300 rounded-md" required> </div> <div> <label for="dueDate" class="block text-sm font-medium text-gray-700">Due Date</label> <input type="date" id="dueDate" name="dueDate" class="mt-1 block w-full border border-gray-300 rounded-md shadow-sm py-2 px-3 focus:outline-none focus:ring-primary-500 focus:border-primary-500 block w-full sm:text-sm border-gray-300 rounded-md" required> </div> </div> <div> <label for="invoiceAmount" class="block text-sm font-medium text-gray-700">Amount</label> <input type="number" id="invoiceAmount" name="invoiceAmount" step="0.01" class="mt-1 block w-full border border-gray-300 rounded-md shadow-sm py-2 px-3 focus:outline-none focus:ring-primary-500 focus:border-primary-500 block w-full sm:text-sm border-gray-300 rounded-md" required> </div> <div class="flex justify-end space-x-3"> <button type="button" onclick="closeAddInvoiceModal()" class="px-4 py-2 text-sm font-medium text-gray-700 hover:text-gray-900" type="button"> Cancel </button> <button type="submit" class="inline-flex justify-center px-4 py-2 text-sm font-medium rounded-md text-white bg-primary-600 hover:bg-primary-700"> Create Invoice </button> </div> </form> </div> </div> </div>
<script> // Initialize Feather Icons feather.replace();
let invoices = JSON.parse(localStorage.getItem('invoices')) || []; let customers = JSON.parse(localStorage.getItem('customers')) || [];
function openAddInvoiceModal() { const customerSelect = document.getElementById('customerSelect'); customerSelect.innerHTML = '<option value="">Select a customer</option>'; customers.forEach((customer, index) => { const option = document.createElement('option'); option.value = index; option.textContent = customer.name; customerSelect.appendChild(option); } document.getElementById('addInvoiceModal').style.display = 'block'; }
function closeAddInvoiceModal() { document.getElementById('addInvoiceModal').style.display = 'none'; document.getElementById('invoiceForm').reset(); }
function renderInvoices() { const tableBody = document.getElementById('invoicesTable'); tableBody.innerHTML = '';
invoices.forEach((invoice, index) => { const customer = customers[invoice.customerIndex] || { name: 'Unknown Customer' }; const row = document.createElement('tr'); row.innerHTML = ` <td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">INV-${invoice.number}</td> <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">${customer.name}</td> <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">${invoice.date}</td> <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">$${invoice.amount.toFixed(2)}</td> <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">${invoice.dueDate}</td> <td class="px-6 py-4 whitespace-nowrap"> <span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full ${invoice.status === 'Paid' ? 'bg-green-100 text-green-800' : 'bg-yellow-100 text-yellow-800'}">${invoice.status}</span> </td> <td class="px-6 py-4 whitespace-nowrap text-sm font-medium"> <a href="#" class="text-primary-600 hover:text-primary-900 mr-3">Edit</a> <a href="#" onclick="deleteInvoice(${index})" class="text-red-600 hover:text-red-900">Delete</a> </td> `; tableBody.appendChild(row); } }
function deleteInvoice(index) { invoices.splice(index, 1); localStorage.setItem('invoices', JSON.stringify(invoices)); renderInvoices(); }
document.getElementById('invoiceForm').addEventListener('submit', function(e) { e.preventDefault(); const invoice = { number: document.getElementById('invoiceNumber').value, customerIndex: parseInt(document.getElementById('customerSelect').value), date: document.getElementById('invoiceDate').value, dueDate: document.getElementById('dueDate').value, amount: parseFloat(document.getElementById('invoiceAmount').value), status: 'Pending' };
invoices.push(invoice); localStorage.setItem('invoices', JSON.stringify(invoices)); renderInvoices(); closeAddInvoiceModal(); }
// Initial render renderInvoices(); </script></body></html>123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266<!DOCTYPE html><html lang="en" class="h-full bg-gray-50"><head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Reports | SkyERP</title> <script src="https://cdn.tailwindcss.com"></script> <script src="https://unpkg.com/feather-icons"></script> <script src="https://cdn.jsdelivr.net/npm/chart.js"></script></head><body class="h-full"> <div class="min-h-full flex"> <!-- Sidebar --> <div class="hidden md:flex md:flex-shrink-0"> <div class="flex flex-col w-64 border-r border-gray-200 bg-white"> <div class="h-0 flex-1 flex flex-col pt-5 pb-4 overflow-y-auto"> <div class="flex items-center flex-shrink-0 px-4"> <div class="flex items-center"> <i data-feather="cloud" class="h-8 w-auto text-primary-600"></i> <span class="ml-3 text-xl font-bold text-gray-900">SkyERP</span> </div> </div> <nav class="mt-5 flex-1 px-2 space-y-1"> <a href="index.html" class="sidebar-link group flex items-center px-2 py-2 text-sm font-medium rounded-md text-gray-600 hover:text-gray-900 hover:bg-gray-50"> <i data-feather="home" class="sidebar-icon mr-3 flex-shrink-0 h-5 w-5 text-gray-500 group-hover:text-gray-500"></i> Dashboard </a> <a href="sales.html" class="sidebar-link group flex items-center px-2 py-2 text-sm font-medium rounded-md text-gray-600 hover:text-gray-900 hover:bg-gray-50"> <i data-feather="shopping-cart" class="sidebar-icon mr-3 flex-shrink-0 h-5 w-5 text-gray-500 group-hover:text-gray-500"></i> Sales </a> <a href="inventory.html" class="sidebar-link group flex items-center px-2 py-2 text-sm font-medium rounded-md text-gray-600 hover:text-gray-900 hover:bg-gray-50"> <i data-feather="package" class="sidebar-icon mr-3 flex-shrink-0 h-5 w-5 text-gray-500 group-hover:text-gray-500"></i> Inventory </a> <a href="accounting.html" class="sidebar-link group flex items-center px-2 py-2 text-sm font-medium rounded-md text-gray-600 hover:text-gray-900 hover:bg-gray-50"> <i data-feather="dollar-sign" class="sidebar-icon mr-3 flex-shrink-0 h-5 w-5 text-gray-500 group-hover:text-gray-500"></i> Accounting </a> <a href="hr.html" class="sidebar-link group flex items-center px-2 py-2 text-sm font-medium rounded-md text-gray-600 hover:text-gray-900 hover:bg-gray-50"> <i data-feather="users" class="sidebar-icon mr-3 flex-shrink-0 h-5 w-5 text-gray-500 group-hover:text-gray-500"></i> HR </a> <a href="reports.html" class="sidebar-link group flex items-center px-2 py-2 text-sm font-medium rounded-md text-primary-700 bg-primary-50"> <i data-feather="bar-chart-2" class="sidebar-icon mr-3 flex-shrink-0 h-5 w-5 text-primary-600"></i> Reports </a> <a href="settings.html" class="sidebar-link group flex items-center px-2 py-2 text-sm font-medium rounded-md text-gray-600 hover:text-gray-900 hover:bg-gray-50"> <i data-feather="settings" class="sidebar-icon mr-3 flex-shrink-0 h-5 w-5 text-gray-500 group-hover:text-gray-500"></i> Settings </a> </nav> </div> <div class="flex-shrink-0 flex border-t border-gray-200 p-4"> <div class="flex items-center"> <div> <img class="inline-block h-9 w-9 rounded-full" src="http://static.photos/people/200x200/1" alt=""> </div> <div class="ml-3"> <p class="text-sm font-medium text-gray-700 group-hover:text-gray-900">Admin User</p> <p class="text-xs font-medium text-gray-500 group-hover:text-gray-700">View profile</p> </div> </div> </div> </div> </div>
<!-- Main content --> <div class="flex-1 flex flex-col overflow-hidden"> <!-- Header --> <div class="hidden md:block bg-white shadow"> <div class="px-4 py-3 flex justify-between items-center"> <div class="flex items-center"> <a href="index.html" class="text-primary-600 hover:text-primary-800"> <i data-feather="arrow-left" class="mr-2"></i> <h1 class="text-xl font-bold text-gray-900">Reports</h1> </div><div class="flex items-center space-x-4"> <div class="relative"> <div class="absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none"> <i data-feather="search" class="h-5 w-5 text-gray-400"></i> </div> <input type="text" class="block w-full pl-10 pr-3 py-2 border border-gray-300 rounded-md leading-5 bg-white placeholder-gray-500 focus:outline-none focus:placeholder-gray-400 focus:ring-1 focus:ring-primary-500 focus:border-primary-500 sm:text-sm" placeholder="Search..."> </div> <div class="ml-4 flex items-center md:ml-6"> <button type="button" class="p-1 rounded-full text-gray-400 hover:text-gray-500 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-primary-500"> <i data-feather="bell" class="h-6 w-6"></i> </button> </div> </div> </div> </div><!-- Content area --> <div class="flex-1 overflow-auto focus:outline-none bg-gray-50"> <div class="px-4 py-6 sm:px-6 lg:px-8"> <!-- Report cards --> <div class="grid grid-cols-1 gap-5 sm:grid-cols-2 lg:grid-cols-3 mb-6"> <div class="bg-white shadow rounded-lg overflow-hidden"> <div class="px-4 py-5 sm:p-6"> <h3 class="text-lg font-medium text-gray-900 mb-4">Sales Report</h3> <div class="h-48"> <canvas id="salesReportChart"></canvas> </div> <div class="mt-4"> <a href="#" class="text-sm text-primary-600 hover:text-primary-800">View full report →</a> </div> </div> </div> <div class="bg-white shadow rounded-lg overflow-hidden"> <div class="px-4 py-5 sm:p-6"> <h3 class="text-lg font-medium text-gray-900 mb-4">Inventory Report</h3> <div class="h-48"> <canvas id="inventoryReportChart"></canvas> </div> <div class="mt-4"> <a href="#" class="text-sm text-primary-600 hover:text-primary-800">View full report →</a> </div> </div> </div> <div class="bg-white shadow rounded-lg overflow-hidden"> <div class="px-4 py-5 sm:p-6"> <h3 class="text-lg font-medium text-gray-900 mb-4">HR Report</h3> <div class="h-48"> <canvas id="hrReportChart"></canvas> </div> <div class="mt-4"> <a href="#" class="text-sm text-primary-600 hover:text-primary-800">View full report →</a> </div> </div> </div> </div>
<!-- Report list --> <div class="bg-white shadow rounded-lg overflow-hidden"> <div class="px-4 py-5 sm:px-6 border-b border-gray-200"> <h3 class="text-lg leading-6 font-medium text-gray-900">All Reports</h3> </div> <div class="p-6 grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-4"> <a href="#" class="group flex flex-col items-center p-4 bg-gray-50 rounded-lg hover:bg-gray-100"> <div class="p-3 bg-blue-100 rounded-full text-blue-600 group-hover:bg-blue-200"> <i data-feather="dollar-sign"></i> </div> <p class="mt-2 text-sm font-medium text-gray-900">Financial</p> <p class="text-xs text-gray-500">Profit & Loss, Balance Sheet</p> </a> <a href="#" class="group flex flex-col items-center p-4 bg-gray-50 rounded-lg hover:bg-gray-100"> <div class="p-3 bg-green-100 rounded-full text-green-600 group-hover:bg-green-200"> <i data-feather="shopping-cart"></i> </div> <p class="mt-2 text-sm font-medium text-gray-900">Sales</p> <p class="text-xs text-gray-500">Orders, Customers, Revenue</p> </a> <a href="#" class="group flex flex-col items-center p-4 bg-gray-50 rounded-lg hover:bg-gray-100"> <div class="p-3 bg-purple-100 rounded-full text-purple-600 group-hover:bg-purple-200"> <i data-feather="package"></i> </div> <p class="mt-2 text-sm font-medium text-gray-900">Inventory</p> <p class="text-xs text-gray-500">Stock levels, Movements</p> </a> <a href="#" class="group flex flex-col items-center p-4 bg-gray-50 rounded-lg hover:bg-gray-100"> <div class="p-3 bg-yellow-100 rounded-full text-yellow-600 group-hover:bg-yellow-200"> <i data-feather="users"></i> </div> <p class="mt-2 text-sm font-medium text-gray-900">HR</p> <p class="text-xs text-gray-500">Employees, Attendance</p> </a> </div> </div> </div> </div> </div> </div>
<script> // Initialize Feather Icons feather.replace();
// Initialize Charts const salesReportCtx = document.getElementById('salesReportChart').getContext('2d'); const salesReportChart = new Chart(salesReportCtx, { type: 'line', data: { labels: ['Jan', 'Feb', 'Mar', 'Apr', 'May'], datasets: [{ label: 'Sales', data: [12000, 19000, 15000, 18000, 22000], backgroundColor: 'rgba(14, 165, 233, 0.1)', borderColor: 'rgba(14, 165, 233, 1)', borderWidth: 2, tension: 0.3, fill: true }] }, options: { responsive: true, plugins: { legend: { display: false } } } });
const inventoryReportCtx = document.getElementById('inventoryReportChart').getContext('2d'); const inventoryReportChart = new Chart(inventoryReportCtx, { type: 'bar', data: { labels: ['In Stock', 'Low Stock', 'Out of Stock'], datasets: [{ label: 'Items', data: [987, 58, 12], backgroundColor: [ 'rgba(16, 185, 129, 0.8)', 'rgba(245, 158, 11, 0.8)', 'rgba(239, 68, 68, 0.8)' ], borderColor: [ 'rgba(16, 185, 129, 1)', 'rgba(245, 158, 11, 1)', 'rgba(239, 68, 68, 1)' ], borderWidth: 1 }] }, options: { responsive: true, plugins: { legend: { display: false } } } });
const hrReportCtx = document.getElementById('hrReportChart').getContext('2d'); const hrReportChart = new Chart(hrReportCtx, { type: 'doughnut', data: { labels: ['Full-time', 'Part-time', 'Contract'], datasets: [{ data: [32, 5, 5], backgroundColor: [ 'rgba(99, 102, 241, 0.8)', 'rgba(167, 139, 250, 0.8)', 'rgba(217, 70, 239, 0.8)' ], borderColor: [ 'rgba(99, 102, 241, 1)', 'rgba(167, 139, 250, 1)', 'rgba(217, 70, 239, 1)' ], borderWidth: 1 }] }, options: { responsive: true, plugins: { legend: { position: 'right' } } } }); </script></body></html>currencies.htmlDeleted-322
customers.htmlDeleted-305
invoices.htmlDeleted-322
reports.htmlDeleted-266