40 lines
936 B
PHP
40 lines
936 B
PHP
<?php
|
|
|
|
namespace App\Mail;
|
|
|
|
use Illuminate\Bus\Queueable;
|
|
use Illuminate\Contracts\Queue\ShouldQueue;
|
|
use Illuminate\Mail\Mailable;
|
|
use Illuminate\Queue\SerializesModels;
|
|
|
|
class NotifWinAdmin extends Mailable implements ShouldQueue
|
|
{
|
|
use Queueable;
|
|
use SerializesModels;
|
|
|
|
private $settings, $participation;
|
|
|
|
/**
|
|
* Create a new message instance.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function __construct($settings, $participation)
|
|
{
|
|
$this->settings = $settings;
|
|
$this->participation = $participation;
|
|
}
|
|
|
|
/**
|
|
* Build the message.
|
|
*
|
|
* @return $this
|
|
*/
|
|
public function build()
|
|
{
|
|
$participation = $this->participation;
|
|
$settings = $this->settings;
|
|
return $this->subject($this->settings->name . " : un lot a été gagné")
|
|
->view('front.basic.notif-win-admin-email', compact('participation', 'settings'));
|
|
}
|
|
}
|