This commit is contained in:
Thibault Richy 2019-02-27 15:52:13 +01:00
parent 3e2f85ef31
commit 83bb8a4855
2 changed files with 4 additions and 4 deletions

View file

@ -14,7 +14,7 @@ class AlertBr extends Mailable
public $couponSeuil;
public $couponDiffusion;
public $sitename;
public $subject;
/**
@ -26,7 +26,7 @@ class AlertBr extends Mailable
{
$this->couponSeuil = $couponSeuil;
$this->couponDiffusion = $couponDiffusion;
$this->sitename = $sitename;
$this->subject = 'Notification mes BR : '.$sitename;
}
/**
@ -36,6 +36,6 @@ class AlertBr extends Mailable
*/
public function build()
{
return $this->view('mail.alert')->subject('Notification mes BR : '.$this->sitename)->with(['couponSeuil' => $this->couponSeuil, 'couponDiffusion' => $this->couponDiffusion]);
return $this->subject($this->subject)->view('mail.alert')->with(['couponSeuil' => $this->couponSeuil, 'couponDiffusion' => $this->couponDiffusion]);
}
}

View file

@ -30,7 +30,7 @@
@endif
{{-- Alerte de max date diffusion --}}
@if (!empty($couponDiffusion))
<p style='font-family: arial; font-size:15px; color: #393939; font-weight: bold;'>Coupons en fin de diffusion d'ici 7 jours :<p><br/>
<p style='font-family: arial; font-size:15px; color: #393939; font-weight: bold;'>Coupons en fin de diffusion d'ici 30 jours :<p><br/>
<table align='center' cellpadding='0' cellspacing='0'style='font-family:arial; color: #3F3F3F; font-size:13px;' >
<tr>