<?php

namespace App\Mail;

use App\Models\SupportReply;
use App\Models\SupportTicket;
use Illuminate\Bus\Queueable;
use Illuminate\Mail\Mailable;
use Illuminate\Queue\SerializesModels;

class SupportTicketReplyMail extends Mailable
{
    use Queueable, SerializesModels;

    public function __construct(
        public readonly SupportTicket $ticket,
        public readonly SupportReply $reply
    ) {
    }

    public function build(): self
    {
        return $this
            ->subject('ViZuTrade support replied to '.$this->ticket->ticketNumber())
            ->view('emails.support.ticket-reply');
    }
}
