Add hero section to My Links index with wallet stats and balance gate.
Deploy Ladill Link / deploy (push) Successful in 41s
Deploy Ladill Link / deploy (push) Successful in 41s
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -32,10 +32,15 @@ class LinkController extends Controller
|
||||
->latest()
|
||||
->paginate(20);
|
||||
|
||||
$wallet = $account->getOrCreateLinkWallet();
|
||||
|
||||
return view('links.index', [
|
||||
'links' => $links,
|
||||
'wallet' => $wallet,
|
||||
'balance' => $this->billing->balanceCedis($account),
|
||||
'canCreate' => $this->billing->canCreate($account),
|
||||
'pricePerLink' => \App\Models\LinkWallet::pricePerLink(),
|
||||
'topupUrl' => ladill_account_url('wallet'),
|
||||
]);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user