Initial Ladill Mini app — trader payment QRs without styling.
Lean control center at mini.ladill.com: payment QR CRUD, Paystack checkout with 5% fee settlement via Billing API, payments feed, and payouts. QR codes use a fixed black-and-white preset only. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -0,0 +1,67 @@
|
||||
@php
|
||||
$content = $qrCode->content();
|
||||
$businessName = $content['business_name'] ?? $qrCode->label;
|
||||
$currency = $content['currency'] ?? 'GHS';
|
||||
@endphp
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<title>Pay {{ $businessName }}</title>
|
||||
@vite(['resources/css/app.css'])
|
||||
</head>
|
||||
<body class="min-h-screen bg-gradient-to-b from-slate-50 to-white text-slate-900">
|
||||
<main class="mx-auto flex min-h-screen max-w-md flex-col justify-center px-4 py-10">
|
||||
<div class="rounded-3xl border border-slate-200 bg-white p-6 shadow-sm">
|
||||
<div class="text-center">
|
||||
@if(!empty($content['logo_path']))
|
||||
<img src="{{ route('qr.public.payment.logo', $qrCode->short_code) }}" alt="" class="mx-auto h-16 w-16 rounded-2xl object-cover">
|
||||
@endif
|
||||
<h1 class="mt-4 text-xl font-bold text-slate-900">{{ $businessName }}</h1>
|
||||
@if(!empty($content['branch_label']))
|
||||
<p class="mt-1 text-sm text-slate-500">{{ $content['branch_label'] }}</p>
|
||||
@endif
|
||||
<p class="mt-2 text-sm text-slate-500">Enter an amount and pay securely.</p>
|
||||
</div>
|
||||
@if(session('error'))
|
||||
<div class="mt-4 rounded-xl bg-red-50 px-4 py-3 text-sm text-red-700">{{ session('error') }}</div>
|
||||
@endif
|
||||
<form method="post" action="{{ route('qr.public.payment.pay', $qrCode->short_code) }}" class="mt-6 space-y-4">
|
||||
@csrf
|
||||
<div>
|
||||
<label class="block text-sm font-medium text-slate-700">Amount ({{ $currency }})</label>
|
||||
<input type="number" name="amount" step="0.01" min="0.01" required
|
||||
class="mt-1 w-full rounded-xl border-slate-200 text-lg font-semibold focus:border-indigo-500 focus:ring-indigo-500"
|
||||
placeholder="0.00" value="{{ old('amount') }}">
|
||||
</div>
|
||||
<div>
|
||||
<label class="block text-sm font-medium text-slate-700">Your email</label>
|
||||
<input type="email" name="payer_email" required value="{{ old('payer_email') }}"
|
||||
class="mt-1 w-full rounded-xl border-slate-200 text-sm focus:border-indigo-500 focus:ring-indigo-500">
|
||||
</div>
|
||||
<div>
|
||||
<label class="block text-sm font-medium text-slate-700">Name (optional)</label>
|
||||
<input type="text" name="payer_name" value="{{ old('payer_name') }}"
|
||||
class="mt-1 w-full rounded-xl border-slate-200 text-sm focus:border-indigo-500 focus:ring-indigo-500">
|
||||
</div>
|
||||
<div>
|
||||
<label class="block text-sm font-medium text-slate-700">Phone (optional)</label>
|
||||
<input type="tel" name="payer_phone" value="{{ old('payer_phone') }}"
|
||||
class="mt-1 w-full rounded-xl border-slate-200 text-sm focus:border-indigo-500 focus:ring-indigo-500">
|
||||
</div>
|
||||
<div>
|
||||
<label class="block text-sm font-medium text-slate-700">Note / reference (optional)</label>
|
||||
<input type="text" name="payer_note" value="{{ old('payer_note') }}" maxlength="255"
|
||||
class="mt-1 w-full rounded-xl border-slate-200 text-sm focus:border-indigo-500 focus:ring-indigo-500"
|
||||
placeholder="e.g. Invoice #123">
|
||||
</div>
|
||||
<button type="submit" class="w-full rounded-xl bg-indigo-600 py-3 text-sm font-semibold text-white hover:bg-indigo-700">
|
||||
Continue to pay
|
||||
</button>
|
||||
</form>
|
||||
<p class="mt-4 text-center text-[11px] text-slate-400">Secured by Paystack · Powered by Ladill Mini</p>
|
||||
</div>
|
||||
</main>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user