46 lines
1.1 KiB
PHP
46 lines
1.1 KiB
PHP
<?php
|
|
|
|
namespace App\Mail;
|
|
|
|
use Illuminate\Bus\Queueable;
|
|
use Illuminate\Mail\Mailable;
|
|
use Illuminate\Queue\SerializesModels;
|
|
use Illuminate\Contracts\Queue\ShouldQueue;
|
|
|
|
class NeblogisticRejection extends Mailable
|
|
{
|
|
use Queueable, SerializesModels;
|
|
public $data;
|
|
/**
|
|
* Create a new message instance.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function __construct($data)
|
|
{
|
|
$this->data = $data;
|
|
}
|
|
|
|
/**
|
|
* Build the message.
|
|
*
|
|
* @return $this
|
|
*/
|
|
public function build()
|
|
{
|
|
$address = 'support.rapport@stratawiz.com';
|
|
$subject = 'Service Request Number #'.$this->data['id'].' for '.$this->data['doctor_name'].' ; Status : '.$this->data['status'];
|
|
$view = 'email.neblogistic_rejection';
|
|
|
|
$name = 'GNP Support Team';
|
|
|
|
return $this->view($view)
|
|
->from($address, $name)
|
|
//->cc($address, $name)
|
|
//->bcc($address, $name)
|
|
->replyTo($address, $name)
|
|
->subject($subject)
|
|
->with('data', $this->data);
|
|
}
|
|
}
|