app/maguttiCms/Notifications/NewsletterSubscribeUserNotification.php
/**
     * Get the mail representation of the notification.
     *
     * @param mixed $notifiable
     * @return \Illuminate\Notifications\Messages\MailMessage
     */
Get the mail representation of the notification.
@param mixed $notifiable
@return \Illuminate\Notifications\Messages\MailMessage
Get the mail representation of the notification . @param mixed $notifiable @return \ Illuminate \ Notifications \ Messages \ MailMessage
public function toMail($notifiable): MailMessage
    {
        $subject = __('website.mail_message.subscribe_newsletter_subject') . ' - ' . config('maguttiCms.website.option.app.name');
        return (new MailMessage)
            ->subject($subject)
            ->greeting(__('website.mail_message.greeting'))
            ->line(__('website.mail_message.subscribe_newsletter_feedback'))
            ->when($this->data->coupon_code, function (MailMessage $mail) {
                return $mail
                       ->line(new HtmlString('<h2 style="text-align: center">'
                           . __('website.mail_message.subscribe_newsletter_coupon_message')
                           . '</h2>')
                       )
                       ->action($this->data->coupon_code,$this->data->coupon_url);
            })
            ->line('')
            ->salutation(trans('website.mail_message.firm'));
    }
public function toMail ( $ notifiable ) : MailMessage { $ subject = __ ( 'website.mail_message.subscribe_newsletter_subject' ) . ' - ' . config ( 'maguttiCms.website.option.app.name' ) ; return ( new MailMessage ) -> subject ( $ subject ) -> greeting ( __ ( 'website.mail_message.greeting' ) ) -> line ( __ ( 'website.mail_message.subscribe_newsletter_feedback' ) ) -> when ( $ this -> data -> coupon_code , function ( MailMessage $ mail ) { return $ mail -> line ( new HtmlString ( '<h2 style="text-align: center">' . __ ( 'website.mail_message.subscribe_newsletter_coupon_message' ) . '</h2>' ) ) -> action ( $ this -> data -> coupon_code , $ this -> data -> coupon_url ) ; } ) -> line ( '' ) -> salutation ( trans ( 'website.mail_message.firm' ) ) ; }
Get the mail representation of the notification.
Get the mail representation of the notification .