feat(store): complete partner store overhaul with mapping, household search, financial analytics, and resident notification system

This commit is contained in:
Developer
2026-07-02 12:47:50 +08:00
parent 647af45b99
commit c4cbdb42c7
20 changed files with 692 additions and 227 deletions

View File

@@ -347,7 +347,7 @@ class AdminPartnerStoreController extends ApiController
// For now, we'll return the data needed to render a printable QR.
return $this->ok([
'serial' => $qrCode->serial,
'qr_data' => route('qr.verify', ['serial' => $qrCode->serial]),
'qr_data' => route('api.v1.admin.qr-codes.show', ['serial' => $qrCode->serial]),
]);
}
@@ -365,6 +365,7 @@ class AdminPartnerStoreController extends ApiController
'total_commission_pesos' => number_format($totalCommission / 100, 2),
'total_settled_pesos' => number_format($totalSettled / 100, 2),
'balance_due_pesos' => number_format($balanceDue / 100, 2),
'gross_profit_pesos' => number_format(($totalRetailRevenue - $totalWholesaleCost) / 100, 2),
'total_issued_codes' => (int) $store->purchases()->sum('quantity'),
'total_sold_codes' => (int) $store->sales()->sum('quantity'),
]);