fix(email): use client/org name as From display, not Ladill product
Deploy Ladill POS / deploy (push) Has been cancelled

Customer-facing outbound mail should appear from the business (organizer,
clinic, company, location), not the Ladill product brand.
This commit is contained in:
isaacclad
2026-07-16 12:01:35 +00:00
parent 4546c2ab8c
commit 8e4ee71788
2 changed files with 2 additions and 3 deletions
+2 -3
View File
@@ -22,9 +22,8 @@ class DigitalReceiptMail extends Mailable
public function envelope(): Envelope
{
$location = $this->sale->location;
$fromName = $location?->receipt_header
?: $location?->name
?: (string) config('mail.from.name', 'Ladill POS');
// Receipt From is the store/location, never the Ladill POS product brand.
$fromName = trim((string) ($location?->receipt_header ?: $location?->name ?: '')) ?: 'Receipt';
return new Envelope(
from: new Address(