ifnex/04_Laravel/app/Services
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
..
CustomerCreditService.php feat(finance): implement multi-currency credit tracking and dashboard widgets 2026-10-04 01:01:20 +03:30
ExchangeRateService.php refactor(currency): enforce IRR-only across all UIs and storage 2026-10-29 22:31:26 +03:30
KavenegarSmsService.php feat(core): integrate Kavenegar SMS notifications and audit logging 2026-09-10 00:52:18 +03:30
ManualInvoiceService.php feat(invoices): thousand-separator formatting + fix total calc + integrate invoices into customer portal 2026-10-29 23:59:19 +03:30
MockZarinpalService.php feat(wallet): complete online payment with Zarinpal + mock gateway 2026-08-08 00:46:54 +03:30
OrderPaymentService.php feat(security): implement secure file storage and shipment access control 2026-10-01 03:34:28 +03:30
PdfService.php refactor(pdf): switch AWB template to landscape orientation 2026-10-03 20:33:15 +03:30
PriceCalculatorService.php refactor(currency): enforce IRR-only across all UIs and storage 2026-10-29 22:31:26 +03:30
RateImportService.php refactor(currency): enforce IRR-only across all UIs and storage 2026-10-29 22:31:26 +03:30
ShipmentReviewService.php feat(notifications): customer notifications on approve/request-changes + WP tab + badge + timezone Iran 2026-10-02 19:08:41 +03:30
TrackingService.php feat(core): implement configuration-driven logic via SystemSetting 2026-09-10 02:25:21 +03:30
WalletService.php feat(wallet): complete wallet system with admin adjust, freeze/unfreeze, activity logs 2026-08-07 22:51:42 +03:30
ZarinpalService.php feat(wallet): complete online payment with Zarinpal + mock gateway 2026-08-08 00:46:54 +03:30