import React, { useState } from "react"; // DJB Bill Payment Mockup - Single-file React component // TailwindCSS classes used. Designed for quick preview and handoff. export default function DjbBillPaymentMockup() { const [consumerNo, setConsumerNo] = useState(""); const [mobile, setMobile] = useState(""); const [loading, setLoading] = useState(false); const [bill, setBill] = useState(null); const [paid, setPaid] = useState(false); const [paymentMethod, setPaymentMethod] = useState("upi"); // Dummy fetch simulating an API call const fetchBill = async () => { setLoading(true); setPaid(false); setBill(null); await new Promise((r) => setTimeout(r, 700)); // sample returned bill const sample = { name: "Smt. Priti Sabhlok", address: "A-12, Model Town, Delhi", period: "Oct 2025", amount: 2340, surchargeWaived: true, dueDate: "2026-01-31", consumerNo: consumerNo || "1234-5678", }; setBill(sample); setLoading(false); }; const payNow = async () => { if (!bill) return; setLoading(true); await new Promise((r) => setTimeout(r, 900)); setPaid(true); setLoading(false); }; return (
{/* Header */}

Delhi Jal Board

Dilli Ka Paani, Dilli Ka Vishwas

{/* Left Column - Payment Card */}

Pay Your Water Bill

Enter your consumer number to fetch the latest bill. 100% late payment surcharge waiver — pay before {bill?.dueDate ?? '31 January 2026'}.

{/* Bill Summary */}
{bill ? (
Consumer
{bill.name}
{bill.address}
Billing Period: {bill.period}
Amount Due
₹{bill.amount}
Late Payment Surcharge: Waived
Pay by: {bill.dueDate}
) : (
No bill loaded. Enter consumer number and click Fetch Bill.
)}
{/* Payment Options + CTA */}
Choose Payment Method
{/* Right column small info */}
Rebate Info
100% Late Payment Surcharge waiver if paid by {bill?.dueDate ?? '31 January 2026'}. Partial waiver schedule applies thereafter.
Know full terms
{/* Post-payment message */} {paid && (
Payment successful. Thank you for clearing your dues and supporting Dilli Ka Paani — Dilli Ka Vishwas.
)}
{/* Right Column - Outreach / Help */}
{/* Info footer */}

How the waiver works

DJB is waiving late payment surcharge for domestic consumers who settle outstanding principal by the deadline. This portal helps you check dues and pay securely. For queries, contact 1916.

); }