%PDF- %PDF-
Direktori : /www/loslex/test/app/Mail/ |
Current File : /www/loslex/test/app/Mail/RegistrationPaymentMail.php |
<?php namespace App\Mail; use App\Models\Registration; use Illuminate\Bus\Queueable; use Illuminate\Mail\Mailable; use Illuminate\Mail\Mailables\Content; use Illuminate\Mail\Mailables\Envelope; use Illuminate\Queue\SerializesModels; use Illuminate\Support\Facades\App; class RegistrationPaymentMail extends Mailable { use Queueable, SerializesModels; public function __construct(public Registration $registration) { } public function envelope(): Envelope { return new Envelope( replyTo: $this->registration->contest->organizerEmail ? $this->registration->contest->organizerEmail : $this->registration->contest->director->email, subject: __('Payment status for contest :name has changed', ['name' => $this->registration->contest->contestname]), ); } public function content(): Content { return new Content( markdown: 'emails.registration.payment-' . App::getLocale(), ); } public function attachments(): array { return []; } }