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\Account;
use HiEvents\Helper\Url;
use HiEvents\Mail\BaseMail;
use Illuminate\Mail\Mailables\Content;
use Illuminate\Mail\Mailables\Envelope;
/**
* @uses /backend/resources/views/emails/account/admin-access-granted.blade.php
*/
class AdminAccessGrantedMail extends BaseMail
{
private ?bool $isInvitation = null;
public function __construct(
private readonly string $newAdminEmail,
private readonly ?string $grantedByEmail = null,
?bool $isInvitation = null,
) {
parent::__construct();
$this->isInvitation = $isInvitation;
}
public function envelope(): Envelope
{
return new Envelope(
subject: __('A new admin was added to your account'),
);
}
public function content(): Content
{
return new Content(
markdown: 'emails.account.admin-access-granted',
with: [
'newAdminEmail' => $this->newAdminEmail,
'grantedByEmail' => $this->grantedByEmail,
'isInvitation' => $this->isInvitation === true,
'teamUrl' => Url::getFrontEndUrlFromConfig(Url::ACCOUNT_USERS),
]
);
}
}