Files
laravel-manager-packagist/src/Mail/LeadConfirmation.php
T
2026-12-04 15:50:10 +00:00

25 lines
712 B
PHP

<?php
namespace IriksIT\Manager\Mail;
use Illuminate\Mail\Mailable;
use Illuminate\Mail\Mailables\Content;
use Illuminate\Mail\Mailables\Envelope;
use IriksIT\Manager\Models\Lead;
/** A short confirmation to the visitor with what was sent (`manager.leads.confirm`, off by default). View: `manager::mail.lead-confirmation`. */
class LeadConfirmation extends Mailable
{
public function __construct(public Lead $lead) {}
public function envelope(): Envelope
{
return new Envelope(subject: (string) __('We received your message'));
}
public function content(): Content
{
return new Content(view: 'manager::mail.lead-confirmation', with: ['lead' => $this->lead]);
}
}