Remove vendor logo upload from Mini payment QR create and edit.
Deploy Ladill Mini / deploy (push) Successful in 28s

Vendors only need label, business name, and optional branch — no logo field in the flow.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
isaacclad
2026-06-07 20:43:33 +00:00
co-authored by Cursor
parent 69708c5e60
commit 327cf65e6c
3 changed files with 2 additions and 12 deletions
@@ -55,7 +55,6 @@ class PaymentQrController extends Controller
'label' => 'required|string|max:120',
'business_name' => 'required|string|max:120',
'branch_label' => 'nullable|string|max:80',
'payment_logo' => 'nullable|image|max:2048',
]);
$data['type'] = QrCode::TYPE_PAYMENT;
@@ -91,7 +90,6 @@ class PaymentQrController extends Controller
'business_name' => 'sometimes|string|max:120',
'branch_label' => 'nullable|string|max:80',
'is_active' => 'sometimes|boolean',
'payment_logo' => 'nullable|image|max:2048',
]);
try {
@@ -20,7 +20,7 @@
@if(session('error'))
<div class="rounded-xl border border-red-100 bg-red-50 px-4 py-3 text-sm text-red-700">{{ session('error') }}</div>
@endif
<form method="post" action="{{ route('mini.payment-qrs.store') }}" enctype="multipart/form-data" class="space-y-5 rounded-2xl border border-slate-200 bg-white p-6">
<form method="post" action="{{ route('mini.payment-qrs.store') }}" class="space-y-5 rounded-2xl border border-slate-200 bg-white p-6">
@csrf
<div>
<label class="block text-sm font-medium text-slate-700">QR label</label>
@@ -39,10 +39,6 @@
<input type="text" name="branch_label" value="{{ old('branch_label') }}" maxlength="80" placeholder="e.g. Osu branch"
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">Logo (optional)</label>
<input type="file" name="payment_logo" accept="image/*" class="mt-1 block w-full text-sm text-slate-500">
</div>
<button type="submit" class="w-full rounded-xl bg-indigo-600 py-2.5 text-sm font-semibold text-white hover:bg-indigo-700">Create payment QR</button>
</form>
</div>
@@ -40,7 +40,7 @@
<p class="mt-4 break-all text-center text-sm text-indigo-600">{{ $qrCode->publicUrl() }}</p>
</div>
<form method="post" action="{{ route('mini.payment-qrs.update', $qrCode) }}" enctype="multipart/form-data" class="space-y-4 rounded-2xl border border-slate-200 bg-white p-6">
<form method="post" action="{{ route('mini.payment-qrs.update', $qrCode) }}" class="space-y-4 rounded-2xl border border-slate-200 bg-white p-6">
@csrf
@method('PATCH')
<h2 class="font-semibold text-slate-900">Settings</h2>
@@ -56,10 +56,6 @@
<label class="block text-sm font-medium text-slate-700">Branch / till</label>
<input type="text" name="branch_label" value="{{ old('branch_label', $c['branch_label'] ?? '') }}" class="mt-1 w-full rounded-xl border-slate-200 text-sm">
</div>
<div>
<label class="block text-sm font-medium text-slate-700">Replace logo</label>
<input type="file" name="payment_logo" accept="image/*" class="mt-1 block w-full text-sm">
</div>
<label class="flex items-center gap-2 text-sm text-slate-700">
<input type="checkbox" name="is_active" value="1" @checked($qrCode->is_active) class="rounded border-slate-300 text-indigo-600">
QR is active (accepts payments)