Updates to 03-2025
This commit is contained in:
parent
6167273a48
commit
9b54eb0512
348 changed files with 34535 additions and 5774 deletions
|
|
@ -12,14 +12,14 @@ class MailVerifyAccount extends Mailable
|
|||
use Queueable, SerializesModels;
|
||||
|
||||
protected $confirmation_code;
|
||||
protected $user;
|
||||
protected $userObj;
|
||||
public $subject;
|
||||
|
||||
|
||||
public function __construct($confirmation_code, User $user)
|
||||
public function __construct($confirmation_code, $userObj)
|
||||
{
|
||||
$this->confirmation_code = $confirmation_code;
|
||||
$this->user = $user;
|
||||
$this->userObj = $userObj;
|
||||
$this->subject = __('email.email_verify');
|
||||
}
|
||||
|
||||
|
|
@ -27,11 +27,11 @@ class MailVerifyAccount extends Mailable
|
|||
public function build()
|
||||
{
|
||||
$salutation = __('email.salutation').",";
|
||||
if($this->user->account){
|
||||
if($this->user->account->salutation === "mr"){
|
||||
$salutation = __('email.dear_sir')." ".$this->user->account->first_name.",";
|
||||
if($this->userObj){
|
||||
if($this->userObj->salutation === "mr"){
|
||||
$salutation = __('email.dear_sir')." ".$this->userObj->first_name.",";
|
||||
}else{
|
||||
$salutation = __('email.dear_mrs')." ".$this->user->account->first_name.",";
|
||||
$salutation = __('email.dear_mrs')." ".$this->userObj->first_name.",";
|
||||
}
|
||||
}
|
||||
return $this->view('emails.auth')->with([
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue