<?php

namespace App\Mail;

use Illuminate\Bus\Queueable;
use Illuminate\Mail\Mailable;
use Illuminate\Queue\SerializesModels;

class WithdrawCompleteMail extends Mailable
{
    use Queueable, SerializesModels;

    public $user_name;
    public $user_primemail;
    public $user_quitday;

    public function __construct($user_name, $user_primemail, $user_quitday)
    {
        $this->user_name = $user_name;
        $this->user_primemail = $user_primemail;
        $this->user_quitday = $user_quitday;
    }

    public function build()
    {
        return $this->subject('退会完了のお知らせ')
            ->view('emails.withdraw_complete')
            ->with([
                'user_name' => $this->user_name,
                'user_primemail' => $this->user_primemail,
                'user_quitday' => $this->user_quitday,
            ]);
    }
}
