I'll create a high-fidelity Arabic RTL invoices management page for "Grand Egypt". Let me start by exploring the project structure and setting up the necessary files.
Now let me install the Lucide React icon library for the icons, and then I'll set up all the files.
Let me update the HTML file first with Arabic language settings and the Google Fonts import.
Now update the CSS with custom theme variables and font:
Now let me create the Sidebar component:
Now create the TopBar component:
Now create the Summary Cards component:
Now create the Filters component:
Now create the InvoicesTable component with all the data and the actions dropdown:
Now let me create the main App.tsx that brings everything together:
Now let me build the project to check for any errors:
The project builds successfully. Let me review the output to make sure everything looks right, and let me also check if I need to close the action menu when clicking outside:
Let me add a click-outside handler and also add a "confirmed" status row and a "full_return" row to make the data more complete. Let me also refine a couple of things:
Now update the InvoicesTable component to add click-outside and additional data rows:
Now let me add the ref to the wrapper div:
Now let me also add a couple more invoice rows to include the "confirmed" and "full_return" statuses. Let me read the existing invoice data to add after the last one:
Let me build again to verify everything works:
The project builds successfully. Let me do a final review of all files to make sure everything is polished:
Everything looks great. The project builds successfully. Here's a summary of what was created:
Grand Egypt - Invoices Management Page (الفواتير)
Architecture
index.html — Updated with Arabic RTL direction, IBM Plex Sans Arabic font from Google Fonts, and the proper page title.
src/index.css — Custom Tailwind v4 theme with all brand colors (emerald, mint, gold, status colors), custom scrollbar, hover effects, and dropdown animations.
src/App.tsx — Main layout with RTL sidebar + content area, page header with title/subtitle, and the "إنشاء فاتورة جديدة" CTA button.
Components
-
Sidebar.tsx — Deep emerald (#126B5B) right-side sidebar with:
- Gold "GE" logo badge
- 12 navigation items with icons
- Expanded sub-menu under "الفواتير" with gold accent border
- User profile section at the bottom
-
TopBar.tsx — Sticky white top bar with breadcrumb, date display, search, messages (with badge), and notifications.
-
SummaryCards.tsx — 5 KPI cards in a grid:
- مبيعات اليوم (Today's Sales) — emerald accent
- مبيعات الشهر (Monthly Sales) — blue accent
- الفواتير غير المدفوعة (Unpaid Invoices) — orange accent
- الفواتير المتأخرة (Overdue Invoices) — red accent
- المبالغ المستحقة (Outstanding Amounts) — gold accent
-
Filters.tsx — 8-filter panel in a 4-column grid: invoice number search, customer, invoice type, representative, warehouse, payment status, due status, and date range.
-
InvoicesTable.tsx — Full-featured data table with:
- 12 columns matching all requirements
- 12 realistic rows with diverse statuses (all 9 statuses represented)
- Realistic invoice numbers (GE-INV-2026-xxxx, GE-COMP-2026-xxxx)
- Two invoice types with emoji badges (💊 pharmacy/doctor, 🏢 company/warehouse)
- Color-coded status badges with dots
- Action dropdown menu (7 contextual items) with click-outside dismiss
- Export/Print toolbar
- Pagination with RTL arrows
Files built: index.html, src/index.css, src/components/Sidebar.tsx, src/components/TopBar.tsx, src/components/SummaryCards.tsx, src/components/Filters.tsx, src/components/InvoicesTable.tsx, src/App.tsx