Email digital receipts, add promo settings, and apply tips at charge.
Deploy Ladill POS / deploy (push) Successful in 31s

Send real receipt emails from the customer display and sale page, store
branch promo content for the idle screen, and fold selected tips into totals.
This commit is contained in:
isaacclad
2026-07-15 16:10:20 +00:00
parent 468346b183
commit 600aedb59d
20 changed files with 675 additions and 19 deletions
+42
View File
@@ -79,6 +79,48 @@
<span class="mt-0.5 block text-xs text-slate-500">Opens the receipt print dialog when you record a cash payment.</span>
</span>
</label>
<div class="border-t border-slate-100 pt-4">
<p class="text-sm font-semibold text-slate-900">Customer screen promo</p>
<p class="mt-1 text-xs text-slate-400">Shown on the dual-screen customer display when the cart is idle. Leave blank to use the branch name and a default thank-you message.</p>
</div>
<div>
<label for="customer_promo_headline" class="text-sm font-medium text-slate-700">Promo headline</label>
<input type="text" id="customer_promo_headline" name="customer_promo_headline" maxlength="160"
value="{{ old('customer_promo_headline', $location->customer_promo_headline) }}"
placeholder="{{ $location->name }}"
class="mt-1.5 block w-full rounded-xl border-slate-300 text-sm shadow-sm focus:border-indigo-500 focus:ring-indigo-500">
</div>
<div>
<label for="customer_promo_body" class="text-sm font-medium text-slate-700">Promo message</label>
<textarea id="customer_promo_body" name="customer_promo_body" rows="2" maxlength="500"
placeholder="Thank you for shopping with us."
class="mt-1.5 block w-full rounded-xl border-slate-300 text-sm shadow-sm focus:border-indigo-500 focus:ring-indigo-500">{{ old('customer_promo_body', $location->customer_promo_body) }}</textarea>
</div>
<div>
<label class="text-sm font-medium text-slate-700">Promo image</label>
<p class="mt-0.5 text-xs text-slate-400">Optional. Falls back to the receipt logo when empty.</p>
<div class="mt-3 flex items-center gap-4">
@if ($location->customer_promo_image_path || $location->receipt_logo_path)
<img src="{{ $location->customerPromoImageUrl() }}?v={{ $location->updated_at?->timestamp }}"
alt="Promo preview"
class="h-16 w-16 rounded-xl border border-slate-200 bg-white object-contain p-1">
@else
<div class="flex h-16 w-16 items-center justify-center rounded-xl border border-dashed border-slate-300 text-[10px] text-slate-400">No image</div>
@endif
<div class="min-w-0 flex-1 space-y-2">
<input type="file" name="customer_promo_image" accept="image/png,image/jpeg,image/gif,image/webp"
class="block w-full text-sm text-slate-600 file:mr-3 file:rounded-lg file:border-0 file:bg-indigo-50 file:px-3 file:py-1.5 file:text-sm file:font-medium file:text-indigo-700 hover:file:bg-indigo-100">
@if ($location->customer_promo_image_path)
<label class="inline-flex items-center gap-2 text-xs text-slate-500">
<input type="checkbox" name="remove_customer_promo_image" value="1" class="rounded border-slate-300 text-indigo-600">
Remove promo image
</label>
@endif
</div>
</div>
</div>
<div class="border-t border-slate-100 pt-4">
<p class="text-sm font-semibold text-slate-900">Payment gateway</p>
<p class="mt-1 text-xs text-slate-400">Connect Paystack, Flutterwave, or Hubtel. Online checkouts go 100% to you 0% Ladill fee.</p>