<?php

namespace App\Mail;

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

class SupportTicketCreatedAdminMail extends Mailable
{
    use Queueable, SerializesModels;

    public function __construct(
        public readonly SupportTicket $ticket
    ) {
    }

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