import React, { useState, useEffect, useRef } from 'react'; // ============================================================================ // STYLES (Embedded for a single file) // ============================================================================ const StyleInjector = () => ( ); // ============================================================================ // PROFESSIONAL SVG ICONS // ============================================================================ function LogoIcon() { return ( ); } function MenuIcon() { return ( ); } function SearchIcon() { return ( ); } function WishlistIcon() { return ( ); } function BagIcon() { return ( ); } function ChatIcon() { return ( ); } function CloseIcon() { return ( ); } function PlusIcon() { return ( ); } function MinusIcon() { return ( ); } function SendIcon() { return ( ); } function SmallCartIcon() { return ( ); } // ============================================================================ // ADMIN ICONS (Re-added) // ============================================================================ function DashboardIcon() { return } function UsersIcon() { return } function AdminShoppingBagIcon() { return } function BoxIcon() { return } function TagIcon() { return } function FileTextIcon() { return } function MessageSquareIcon() { return } function EditIcon() { return } function TicketIcon() { return } function DollarSignIcon() { return } function AwardIcon() { return } function SettingsIcon() { return } // --- NEW: More Admin Icons --- function HeatmapIcon() { return ; } function SendNotificationIcon() { return ; } function EmailIcon() { return ; } function UploadIcon() { return ; } function DownloadIcon() { return ; } function ViewIcon() { return ; } function DeleteIcon() { return ; } function SeoIcon() { return ; } function CalendarIcon() { return ; } function ProductIcon() { return ; } function LinkIcon() { return ; } function ChevronLeftIcon() { return ; } function ChevronRightIcon() { return ; } function ColorSwatchIcon() { return ; } function RulerIcon() { return ; } // ============================================================================ // NEW: Loader Components // ============================================================================ /** * A full-page loading indicator. */ function PageLoader() { return (
Talha Mona Management
| Order ID | Customer | Total | Status |
|---|---|---|---|
| {order.id} | {order.customer} | PKR {order.total.toLocaleString()} | {order.status} |
[List of recent orders for this customer would appear here]
| Customer | Segment | Total Spent | Actions |
|---|---|---|---|
|
{c.name}
{c.email}
|
{c.segment} | PKR {c.totalSpent.toLocaleString()} |
Placed on {selectedOrder.date}
| Product | Qty | Total |
|---|---|---|
|
Embroidered Lawn Kurta
SKU: TM-LW-001
|
1 | PKR 4,990 |
|
Silk Tunic - Ruby Red
SKU: TM-SLK-045
|
2 | PKR 14,900 |
| Order ID | Customer | Total | Status | Date | Actions |
|---|---|---|---|---|---|
| {order.isNew && } {order.id} | {order.customer} | PKR {order.total.toLocaleString()} | {order.status} | {order.date} |
List view not yet implemented in this mock.
Upload documents to train the AI. AI will access all documents below.
| Document | Size | Status | Actions |
|---|---|---|---|
| {doc.name} | {doc.size} | {doc.status} |
Incorporate products or links directly into your post.
| Title | Status | Views | SEO | Actions |
|---|---|---|---|---|
| {post.title} | {post.status} | {post.views.toLocaleString()} | 90 ? 'var(--tm-green)' : 'var(--tm-yellow)' }}>{post.seoScore} |
Notify customers about this promo code.
| Code | Type | Discount | Uses | Status | Actions |
|---|---|---|---|---|---|
| {p.code} | {p.type} | {p.discount}% | {p.uses} | {p.status} |
| Order ID | Date | Customer | Amount | Status |
|---|---|---|---|---|
| {t.id} | {t.date} | {t.customer} | PKR {t.amount.toLocaleString()} | {t.status} |
Earn points on every purchase and get exclusive rewards. New users get 500 points just for signing up!
Create an account and instantly receive 500 bonus points.
Get 1 point for every 1 PKR spent. Earn bonus points for referrals and reviews.
Use your points at checkout for discounts on future orders.
Share your unique referral link. When your friend makes their first purchase, you BOTH get 1000 bonus points!
You can exchange your referral points for currency, while invited users can use their points for store discounts.
Premium Pakistani Cultural Heritage with Islamic Values