<?php require_once __DIR__ . '/../includes/auth.php'; requireLogin(['customer']); $user=currentUser(); $priceLabel = (($user['account_type'] ?? '') === 'wholesale') ? 'Wholesale Price' : 'Retail Price'; ?>
<!doctype html><html><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1"><title>Current Prices</title><link rel="stylesheet" href="../assets/style.css"></head><body>
<div class="layout"><aside class="sidebar"><div class="brand">SHAHANA VEGitables<small>Price List</small></div><nav class="nav"><a href="dashboard.php">Dashboard</a><a class="active" href="prices.php">Current Prices</a><a href="invoices.php">Invoices</a><a href="installments.php">Installments</a></nav></aside>
<main class="main"><div class="topbar"><h1>Current Prices</h1><span class="badge badge-green"><?php echo htmlspecialchars($priceLabel); ?></span></div>
<div class="grid grid-2"><div class="card"><h3>Vegetables</h3><div class="table-wrap"><table><tr><th>Item</th><th>Unit</th><th><?php echo htmlspecialchars($priceLabel); ?></th></tr><tr><td>Tomato</td><td>Kg</td><td>₹ 45</td></tr><tr><td>Potato</td><td>Kg</td><td>₹ 32</td></tr></table></div></div>
<div class="card"><h3>Other Items</h3><div class="table-wrap"><table><tr><th>Item</th><th>Unit</th><th><?php echo htmlspecialchars($priceLabel); ?></th></tr><tr><td>Ginger Garlic Paste</td><td>Qty</td><td>₹ 65</td></tr><tr><td>Curry Leaves</td><td>Qty</td><td>₹ 12</td></tr></table></div></div></div>
</main></div></body></html>
