ifnex/04_Laravel/app
Kazem Alghasi 7fe368bc46 feat(invoices): thousand-separator formatting + fix total calc + integrate invoices into customer portal
Polish the manual invoice feature with 4 improvements:

1. Admin invoice form: numeric fields (unit_price, discount_amount) now
   display values with thousand-separators (e.g. 1,000,000 instead of
   1000000) via formatStateUsing/dehydrateStateUsing for easier reading
   of large Rial amounts. The placeholder/subtotal/total calculations
   also strip commas before arithmetic.

2. Fix 'total amount payable = 0' bug in the form. The placeholder
   had a typo: 'foreach ( as )' overwrote the loop variable
   and made the inner calculation use the array instead of each item,
   so the sum was always 0. Now correctly iterates with .

3. Customer dashboard widget: add an 'Invoices pending payment' card
   showing the count, with a link to /my-account/?tab=invoices if > 0.
   Relabel the existing 'Pending payment' card to 'Pending payment
   (orders)' to clarify it's for orders, not invoices.

4. Customer profile financial status: include manual invoices in the
   accounting_balance and pending_payments_total. Show a breakdown
   list (orders vs invoices) under the balance card, plus two new stat
   cards (pending invoices count/total, paid invoices count/total)
   with a link to the invoices tab.
2026-10-29 23:59:19 +03:30
..
Console/Commands refactor(currency): simplify exchange rate logic to use Rial as base 2026-10-29 03:54:02 +03:30
Enums feat(invoices): thousand-separator formatting + fix total calc + integrate invoices into customer portal 2026-10-29 23:59:19 +03:30
Exports feat(shipment): implement status history tracking and rate import improvements 2026-08-24 03:40:13 +03:30
Filament feat(invoices): thousand-separator formatting + fix total calc + integrate invoices into customer portal 2026-10-29 23:59:19 +03:30
Helpers feat(ui): redesign admin dashboard with layered grid and custom branding 2026-10-03 11:08:50 +03:30
Http feat(invoices): thousand-separator formatting + fix total calc + integrate invoices into customer portal 2026-10-29 23:59:19 +03:30
Imports feat(ui): add invoice download action to shipment view 2026-08-23 23:35:12 +03:30
Models feat(invoices): thousand-separator formatting + fix total calc + integrate invoices into customer portal 2026-10-29 23:59:19 +03:30
Notifications feat(invoices): thousand-separator formatting + fix total calc + integrate invoices into customer portal 2026-10-29 23:59:19 +03:30
Observers feat(core): implement configuration-driven logic via SystemSetting 2026-09-10 02:25:21 +03:30
Policies feat(security): implement secure file storage and shipment access control 2026-10-01 03:34:28 +03:30
Providers fix(view): place rate-import blade in standard view path 2026-10-29 16:15:38 +03:30
Services feat(invoices): thousand-separator formatting + fix total calc + integrate invoices into customer portal 2026-10-29 23:59:19 +03:30
Traits feat(core): implement order approval flow, credit system, and import invoicing 2026-09-03 06:04:20 +03:30