26 lines
712 B
PHP
26 lines
712 B
PHP
<?php
|
|
|
|
namespace App\Mail;
|
|
|
|
use App\Models\Dictionaries\DictionaryItem;
|
|
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() {
|
|
$type = DictionaryItem::byUuid($this->data['feedback-type'])->pluck('title');
|
|
$this->data['feedback-type'] = $type;
|
|
return $this->subject('Сообщение из обратной связи')->view('mail.feedback.support');
|
|
}
|
|
}
|