ldc-mesbr-app/app/Mail/AlertBrAdmin.php

43 lines
901 B
PHP
Raw Permalink Normal View History

2019-02-27 16:11:28 +01:00
<?php
namespace App\Mail;
use Illuminate\Bus\Queueable;
use Illuminate\Mail\Mailable;
use Illuminate\Queue\SerializesModels;
class AlertBrAdmin extends Mailable
{
2021-04-27 17:29:47 +02:00
use Queueable;
use SerializesModels;
2019-02-27 16:11:28 +01:00
public $couponSeuil;
2021-04-27 17:29:47 +02:00
2019-02-27 16:11:28 +01:00
public $couponDiffusion;
2021-04-27 17:29:47 +02:00
2019-02-27 16:11:28 +01:00
public $subject;
/**
* Create a new message instance.
*
* @return void
*/
public function __construct($couponSeuil, $couponDiffusion)
{
2025-04-03 09:30:16 +02:00
$this->couponSeuil = $couponSeuil;
2019-02-27 16:11:28 +01:00
$this->couponDiffusion = $couponDiffusion;
2025-04-03 09:30:16 +02:00
$this->subject = 'Notification mes BR : Récapitulatif global';
2019-02-27 16:11:28 +01:00
}
/**
* Build the message.
*
* @return $this
*/
public function build()
{
return $this->subject($this->subject)->view('mail.alertadmin')->with(['couponSeuil' => $this->couponSeuil, 'couponDiffusion' => $this->couponDiffusion]);
}
}