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

38 lines
762 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
2026-10-28 13:23:49 +01:00
2019-02-27 16:11:28 +01:00
public $subject;
/**
* Create a new message instance.
*
* @return void
*/
2026-10-28 12:27:46 +01:00
public function __construct(public $couponSeuil, public $couponDiffusion)
2019-02-27 16:11:28 +01:00
{
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]);
}
}