<?php

namespace App\Mail\website;

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

class VendorCreate extends Mailable
{
    use Queueable, SerializesModels;
    public $username;
    public $websiteName;

    public $email;

    /**
     * Create a new message instance.
     */
    public function __construct($username,$websiteName,$email)
    {
        $this->username = $username;
        $this->websiteName = $websiteName;
        $this->email = $email;

    }

    /**
     * Get the message envelope.
     */
    public function envelope(): Envelope
    {
        return new Envelope(
            subject: 'Vendor Create',
        );
    }

    /**
     * Get the message content definition.
     */
    public function build()
    {
        return $this->from(config('mail.from.address'), config('mail.from.name'))
            // ->subject('Test Email')
            ->priority(1)
            ->view('mails.website.VendorCreate');  // Set priority to high
    }

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