Suppliers Page
Route: /suppliers
File: app/suppliers/page.tsx
Page Ka Maqsad
Suppliers page par aap apne vendors aur wholesalers ka record rakhte hain — jinse products khareedte hain. Contact details, address, aur company info save hoti hai.
Page Layout
┌─────────────────────────────────────────────────────┐
│ Supplier Management [Add Supplier]│
├─────────────────────────────────────────────────────┤
│ Suppliers Table │
│ Name | Contact | Email | Phone | Address | Actions │
└─────────────────────────────────────────────────────┘
Kya Kar Sakte Hain?
| Action | Kaise |
|---|---|
| Naya supplier add | Add Supplier → form fill → Create |
| Supplier edit | Table row ✏️ Edit icon |
| Supplier delete | Table row 🗑️ Delete icon (confirm) |
| Saare suppliers dekhna | Table list (newest first) |
Add/Edit Supplier Form Fields
| Field | Required | Description |
|---|---|---|
| Supplier Name | ✅ Yes | Company ya shop ka naam |
| Contact Person | No | Representative ka naam |
| No | Business email | |
| Phone | No | Contact number |
| Address | No | Office/warehouse address |
Example Supplier Entry
Supplier Name: Tech Distributors Pvt Ltd
Contact Person: Ahmed Khan
Email: ahmed@techdist.com
Phone: +92 300 1234567
Address: Hall Road, Lahore
Database
Table: suppliers
id, name, contact_person, email, phone, address, created_at, updated_at
Products link: products table mein supplier_id foreign key hai — future mein product ko supplier se link kiya ja sakta hai. Abhi Inventory form mein supplier dropdown UI mein nahi hai, lekin database ready hai.
Empty State
Agar koi supplier nahi:
- Users icon + "No suppliers found"
- Add Your First Supplier button
Tips for Shop Owners
- Regular suppliers add karein — jisse stock aata hai
- Phone number zaroor save karein — reorder ke liye quick contact
- Multiple distributors alag entries mein rakhein
Future Enhancement (Database Ready)
- Product form mein supplier select
- Supplier-wise purchase reports
- Supplier contact quick-call link
Related Pages
- Inventory — products jo suppliers se aate hain
- Dashboard — overall shop management