Add Merchant-style hero to My Payment QR index page.
Deploy Ladill Mini / deploy (push) Successful in 39s

Surface wallet balance, QR count, and active stats in a gradient hero with balance-gated create CTA.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
isaacclad
2026-07-04 20:34:29 +00:00
co-authored by Cursor
parent e792916a1a
commit ff6e5aee51
2 changed files with 93 additions and 31 deletions
@@ -4,6 +4,7 @@ namespace App\Http\Controllers\Mini;
use App\Http\Controllers\Controller;
use App\Models\QrCode;
use App\Models\QrWallet;
use App\Services\Qr\QrCodeManagerService;
use App\Services\Qr\QrImageGeneratorService;
use App\Services\Qr\QrPdfExporter;
@@ -36,9 +37,15 @@ class PaymentQrController extends Controller
return [$qr->id => $this->imageGenerator->previewDataUri($qr)];
});
$wallet = $this->manager->walletFor($account);
return view('mini.payment-qrs.index', [
'qrCodes' => $qrCodes,
'previewDataUris' => $previewDataUris,
'wallet' => $wallet,
'activeCount' => $qrCodes->where('is_active', true)->count(),
'pricePerQr' => QrWallet::pricePerQr(),
'topupUrl' => 'https://'.config('app.account_domain').'/wallet',
]);
}