<?php

namespace App\Mail;

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

class FeedbackSender extends Mailable implements ShouldQueue {
    use Queueable, SerializesModels;

    public array $data;

    public function __construct(array $data) {
        $this->data = $data;
    }

    public function build() {
        return $this->subject('Сообщение из обратной связи')->view('mail.feedback.support');
    }
}
