ifnex/04_Laravel/app/Http/Controllers
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
..
Admin feat(commitment-forms): implement end-to-end management and secure file access 2026-10-03 05:58:59 +03:30
Api feat(invoices): thousand-separator formatting + fix total calc + integrate invoices into customer portal 2026-10-29 23:59:19 +03:30
Controller.php fix(bridge): resolve corrupted PDF downloads and improve token handling 2026-10-03 18:15:46 +03:30
OrderController.php feat(order): implement order creation flow and pricing API 2026-08-04 07:59:23 +03:30
PricingPageController.php feat(pricing): centralize exchange rate management via ExchangeRateService 2026-10-03 07:20:32 +03:30
ShipmentPdfController.php feat(security): implement secure file storage and shipment access control 2026-10-01 03:34:28 +03:30