<?php require_once __DIR__ . '/../includes/auth.php'; requireLogin(['customer']); ?>
<!doctype html><html><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1"><title>Installments</title><link rel="stylesheet" href="../assets/style.css"></head><body>
<div class="layout"><aside class="sidebar"><div class="brand">SHAHANA VEGitables<small>Installments</small></div><nav class="nav"><a href="dashboard.php">Dashboard</a><a href="prices.php">Current Prices</a><a href="invoices.php">Invoices</a><a class="active" href="installments.php">Installments</a></nav></aside>
<main class="main"><div class="topbar"><h1>Installment Ledger</h1></div><div class="grid grid-2"><div class="card"><h3>Current Balance</h3><p>Admin-added installments and purchases should update this running balance automatically.</p><p><strong>Outstanding:</strong> ₹ 8,450</p></div><div class="card"><h3>Ledger</h3><div class="table-wrap"><table><tr><th>Date</th><th>Type</th><th>Amount</th><th>Note</th></tr><tr><td>23-05-2026</td><td>Payment</td><td>₹ 1,000</td><td>Installment received</td></tr><tr><td>24-05-2026</td><td>Purchase</td><td>₹ 2,350</td><td>Invoice INV-1024</td></tr></table></div></div></div></main></div></body></html>
