curaflow/staff.html

133 lines
5.6 KiB
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Curio Staff | Personnel & Payroll</title>
<link rel="stylesheet" href="globals.css">
<link rel="stylesheet" href="index.css">
<link rel="stylesheet" href="dashboard.css">
<link rel="stylesheet" href="staff.css">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Outfit:wght@500;600;700&display=swap" rel="stylesheet">
<script src="globals.js"></script>
<script src="tenantLoader.js"></script>
<script>requireLogin(['OWNER', 'SUPER_ADMIN']);</script>
</head>
<body class="dashboard-body">
<aside class="sidebar">
<div class="logo">
<div class="logo-icon">C</div>
<span class="logo-text">Curio</span>
</div>
<nav class="side-nav">
<a href="dashboard.html"><span>🏠</span> Overview</a>
<a href="dashboard.html"><span>👥</span> Queue</a>
<a href="dashboard.html"><span>📂</span> Patients</a>
<a href="pharmacy.html"><span>💊</span> Pharmacy</a>
<a href="lab.html"><span>🔬</span> Lab</a>
<a href="billing.html"><span>💳</span> Billing & Accounts</a>
<a href="staff.html" class="active"><span>👔</span> Staff & Payroll</a>
<a href="settings.html"><span>⚙️</span> Settings</a>
</nav>
<div class="user-profile">
<div class="avatar">SA</div>
<div class="info">
<strong>Staff Admin</strong>
<span>Staff</span>
<a href="login.html" class="logout-btn"><span>🚪</span> Logout</a>
</div>
</div>
</aside>
<main class="dashboard-main">
<header class="dash-header">
<div class="header-title">
<h1>Staff Management</h1>
<p>Track attendance, roles, and monthly payroll incentives.</p>
</div>
<div class="header-actions">
<button class="btn btn-primary" onclick="handleComingSoon('+ Add New Staff')">+ Add New Staff</button>
</div>
</header>
<section class="stats-row">
<div class="stat-card">
<span>Total Staff</span>
<h3>18 Members</h3>
<small>4 Departments</small>
</div>
<div class="stat-card">
<span>On Duty Today</span>
<h3>15 Present</h3>
<small class="text-accent">3 on Leave</small>
</div>
<div class="stat-card">
<span>Monthly Payroll</span>
<h3>₹4.85 Lakhs</h3>
<small>Incl. Incentives</small>
</div>
</section>
<section class="queue-section">
<div class="section-card">
<div class="card-header">
<h2>Staff Directory</h2>
</div>
<table class="queue-table">
<thead>
<tr>
<th>ID</th>
<th>Staff Name</th>
<th>Role</th>
<th>Status</th>
<th>Monthly Pay</th>
<th>Actions</th>
</tr>
</thead>
<tbody>
<tr>
<td>#S001</td>
<td><strong>Rahul Verma</strong></td>
<td>Nurse</td>
<td><span class="badge badge-success">Active</span></td>
<td>₹45,000</td>
<td><button class="btn btn-sm btn-primary" onclick="handleComingSoon('Payroll')">Payroll</button></td>
</tr>
<tr>
<td>#S002</td>
<td><strong>Anjali Singh</strong></td>
<td>Receptionist</td>
<td><span class="badge badge-warning">On Leave</span></td>
<td>₹36,200</td>
<td><button class="btn btn-sm btn-primary" onclick="handleComingSoon('Payroll')">Payroll</button></td>
</tr>
<tr>
<td>#S003</td>
<td><strong>Dr. Anita Sharma</strong></td>
<td>Surgeon</td>
<td><span class="badge muted">Off Duty</span></td>
<td>₹1,25,000</td>
<td><button class="btn btn-sm btn-secondary" onclick="handleComingSoon('History')">History</button></td>
</tr>
</tbody>
</table>
</div>
<div class="side-panel">
<div class="section-card payroll-card">
<h3>💡 Incentive Logic</h3>
<p>Current rule: <strong>5%</strong> of Pharmacy sales shared with staff pool.</p>
<div class="incentive-item">
<span>Staff Pool Today</span>
<h4>₹2,450</h4>
<small>Calculated on ₹49k revenue</small>
</div>
</div>
</div>
</section>
</main>
</body>
</html>