<?php

namespace App\Mail;

use Illuminate\Bus\Queueable;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Mail\Mailable;
use Illuminate\Mail\Mailables\Attachment;
use Illuminate\Mail\Mailables\Content;
use Illuminate\Mail\Mailables\Envelope;
use Illuminate\Queue\SerializesModels;

class MemberWelcomeMail extends Mailable
{
    use Queueable, SerializesModels;

    public string $memberName;
    public string $email;
    public string $password;
    public string $unitName;
    public string $planName;
    public string $planType;
    public string $planAmount;



    /**
     * Create a new message instance.
     */
    public function __construct(
        string $memberName,
        string $email,
        string $password,
        string $unitName,
        string $planName,
        string $planType,
        string $planAmount
        )
        {
            $this->memberName = $memberName;   
            $this->email = $email;
            $this->password = $password;
            $this->unitName = $unitName;
            $this->planName = $planName;
            $this->planType = $planType;
            $this->planAmount = $planAmount;
        }

    

    /**
     * Get the message envelope.
     */
    public function envelope(): Envelope
    {
        return new Envelope(
            subject: 'Welcome to ECA - Your Account is Ready',
        );
    }

    /**
     * Get the message content definition.
     */
    public function content(): Content
    {
        return new Content(
            view: 'emails.member-welcome',
        );
    }

    /**
     * Get the attachments for the message.
     *
     * @return array<int, Attachment>
     */
    public function attachments(): array
    {
        return [];
    }
}
