api code global jain
This commit is contained in:
50
app/Mail/WrongChaturmasEmail.php
Normal file
50
app/Mail/WrongChaturmasEmail.php
Normal file
@@ -0,0 +1,50 @@
|
||||
<?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
|
||||
]);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user