Open-source event management and ticket selling platform — perfect for concerts, conferences, and everything in between 🎟️ If you find this project helpful, please consider giving us a star ⭐️
PHP attendize-alternativedoor-managementevent-check-inevent-managementevent-registrationevent-ticketingeventbrite-alternativeeventslaravelopen-sourcephpreactself-hostedsell-ticketssell-tickets-onlineticket-sellingticketing-systemtickettailor-alternativetito-alternative
<?php
namespace HiEvents\Mail\TicketLookup;
use HiEvents\Helper\Url;
use HiEvents\Mail\BaseMail;
use Illuminate\Mail\Mailables\Content;
use Illuminate\Mail\Mailables\Envelope;
/**
* @uses /backend/resources/views/emails/ticket-lookup/ticket-lookup.blade.php
*/
class TicketLookupEmail extends BaseMail
{
public function __construct(
private readonly string $email,
private readonly string $token,
private readonly int $orderCount,
) {
parent::__construct();
}
public function envelope(): Envelope
{
return new Envelope(
subject: __('Your Tickets'),
);
}
public function content(): Content
{
return new Content(
markdown: 'emails.ticket-lookup.ticket-lookup',
with: [
'email' => $this->email,
'orderCount' => $this->orderCount,
'ticketLookupUrl' => sprintf(
Url::getFrontEndUrlFromConfig(Url::TICKET_LOOKUP),
$this->token,
),
]
);
}
}