chess/app/Mail/ReportMail.php
Ramadhon Ikhsan Prasetya 603e31b0f4 init
2024-08-29 10:56:32 +07:00

38 lines
753 B
PHP

<?php
namespace App\Mail;
use Illuminate\Bus\Queueable;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Mail\Mailable;
use Illuminate\Queue\SerializesModels;
class ReportMail extends Mailable
{
use Queueable, SerializesModels;
/**
* Create a new message instance.
*
* @return void
*/
public function __construct($data)
{
//
$this->data = $data;
}
/**
* Build the message.
*
* @return $this
*/
public function build()
{
// return $this->view('view.name');
$param['data'] = $this->data;
// dd($param);exit();
return $this->subject('Laporan '.$this->data['ticket'])->view('content.email.balascomment', $param);
}
}