51 lines
1.2 KiB
PHP
51 lines
1.2 KiB
PHP
<?php
|
|
|
|
namespace App\Mail;
|
|
|
|
use App\Models\Sant;
|
|
use Illuminate\Bus\Queueable;
|
|
use Illuminate\Mail\Mailable;
|
|
use Illuminate\Queue\SerializesModels;
|
|
|
|
class WrongChaturmasEmail extends Mailable
|
|
{
|
|
use Queueable, SerializesModels;
|
|
|
|
protected $user;
|
|
protected $santID;
|
|
protected $chaturmasID;
|
|
protected $description;
|
|
// protected $sant;
|
|
|
|
/**
|
|
* UserConfirmEmail constructor.
|
|
* @param $user
|
|
*/
|
|
public function __construct($user, $santID, $chaturmasID, $description)
|
|
{
|
|
$this->user = $user;
|
|
$this->santID = $santID;
|
|
$this->chaturmasID = $chaturmasID;
|
|
$this->description = $description;
|
|
// $this->$sant = $sant;
|
|
$this->subject = trans('email.email_subject_label.wrong_chaturmas');
|
|
}
|
|
|
|
/**
|
|
* @return WrongChaturmasEmail
|
|
*/
|
|
public function build()
|
|
{
|
|
$sant = Sant::where('id', $this->santID)->first();
|
|
|
|
return $this->view('frontend.mail.wrong-chaturmas')
|
|
->with([
|
|
'user' => $this->user,
|
|
'santID' => $this->santID,
|
|
'chaturmasID' => $this->chaturmasID,
|
|
'description' => $this->description,
|
|
'sant' => $sant
|
|
]);
|
|
}
|
|
}
|