ldc-gen-game-web/app/Mail/NotifWinAdmin.php
2020-11-19 10:05:37 +01:00

37 lines
860 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, 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;
return $this->subject($this->settings->name . " : un lot a été gagné")->view('front.basic.notif-win-admin-email', compact('participation'));
}
}