ldc-gen-game-web/app/Mail/NotifWinAdmin.php

41 lines
936 B
PHP
Raw Permalink Normal View History

<?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
{
2021-08-18 17:08:02 +02:00
use Queueable;
use SerializesModels;
private $settings, $participation;
/**
* Create a new message instance.
*
* @return void
*/
public function __construct($settings, $participation)
{
2021-08-18 17:08:02 +02:00
$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'));
}
}