<?php

namespace App\Mail;

use App\Models\Inquiry;
use Illuminate\Bus\Queueable;
use Illuminate\Mail\Mailable;
use Illuminate\Mail\Mailables\Content;
use Illuminate\Mail\Mailables\Envelope;
use Illuminate\Queue\SerializesModels;

class ContactEnquiry extends Mailable
{
    use Queueable, SerializesModels;

    public function __construct(public Inquiry $contact)
    {
    }

    public function envelope(): Envelope
    {
        return new Envelope(
            subject: 'New Enquiry — ' . $this->contact->first_name . ' ' . $this->contact->last_name,
        );
    }

    public function content(): Content
    {
        return new Content(
            view: 'emails.contact-enquiry',
        );
    }

    public function attachments(): array
    {
        return [];
    }
}
