I'll create a comprehensive billing software application with dashboard, invoice management, client management, and more. Let me start by exploring the project structure.
Good, I have the project setup with lucide-react and cn utility already available. Let me build a comprehensive billing software with dashboard, invoice management, client management, and more. I'll create multiple files for a clean architecture.
First, let me update the HTML title:
Now let me create the TypeScript types:
Now let me create the mock data:
Now let me create the Sidebar navigation component:!
Now let me create the Dashboard component:!
Now let me create the Invoice List component:
Now let me create the Invoice Form component:
Now let me create the Invoice Preview component:
Now let me create the Client List component:!
Let me fix the unused imports in the ClientList component:!
Now let me create the Settings component:!
Now let me create the main App component that ties everything together:
Now let me update the CSS with smooth scrolling and print styles:
Now let me build the project to verify everything works:
The build succeeded but there are CSS warnings about the print styles. Tailwind CSS already has built-in print: variants, so I don't need to manually define them. Let me fix the CSS:
The build is successful with no warnings! 🎉 Here's a summary of the InvoiceFlow — Smart Billing Software I created:
Features Built
📊 Dashboard
- 4 stat cards — Total Revenue, Pending Amount, Paid Invoices, Overdue Amount
- Revenue bar chart — Visual monthly revenue with CSS bars
- Quick stats panel — Total clients, invoices, draft count, avg value, collection rate
- Recent invoices table — Click to preview any invoice
📄 Invoice Management
- Invoice list with search and status filters (All/Draft/Sent/Paid/Overdue)
- Inline status change — Change invoice status directly from dropdown
- Create new invoice — Full form with client selection, line items, tax rate, notes
- Invoice preview — Professional print-ready document with company branding
- Actions — Print, PDF download, Send email, Mark as Paid
👥 Client Management
- Client cards with avatar, contact info, and billing stats
- Add new client modal with form validation
- Per-client stats — Total paid and pending amounts
- Recent invoices listed per client
⚙️ Settings
- Business info — Company name, email, phone, address, tax ID
- Invoice preferences — Prefix, default tax rate, default notes
- Live preview of invoice header
🎨 Design & UX
- Collapsible sidebar navigation with smooth transitions
- Mobile responsive — Hamburger menu with slide-out sidebar
- 8 pre-loaded invoices and 5 clients with realistic data
- Dark sidebar with blue accent colors
- Professional invoice document with print support!
Files built: index.html, src/types.ts, src/data.ts, src/components/Sidebar.tsx, src/components/Dashboard.tsx, src/components/InvoiceList.tsx, src/components/InvoiceForm.tsx, src/components/InvoicePreview.tsx, src/components/ClientList.tsx, src/components/Settings.tsx, src/App.tsx, src/index.css