Add Ladill Link URL shortener on ladl.link.
Management UI at link.ladill.com with GHS 0.05 per link wallet billing, click analytics, and legacy fallback to ladill.com/q for QR ecosystem codes. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Controllers\Link;
|
||||
|
||||
use App\Http\Controllers\Controller;
|
||||
use App\Models\ShortLink;
|
||||
use Illuminate\View\View;
|
||||
|
||||
class OverviewController extends Controller
|
||||
{
|
||||
public function index(): View
|
||||
{
|
||||
$account = ladill_account();
|
||||
$wallet = $account->getOrCreateLinkWallet();
|
||||
|
||||
$recentLinks = ShortLink::query()
|
||||
->where('user_id', $account->id)
|
||||
->latest()
|
||||
->limit(5)
|
||||
->get();
|
||||
|
||||
return view('links.dashboard', [
|
||||
'wallet' => $wallet,
|
||||
'recentLinks' => $recentLinks,
|
||||
'pricePerLink' => \App\Models\LinkWallet::pricePerLink(),
|
||||
]);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user