ldc-gen-game-web/app/Mail/WinningProof.php
2020-11-04 11:49:43 +01:00

39 lines
969 B
PHP

<?php
namespace App\Mail;
use Illuminate\Bus\Queueable;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Mail\Mailable;
use Illuminate\Queue\SerializesModels;
class WinningProof extends Mailable implements ShouldQueue
{
use Queueable, SerializesModels;
private $sticker, $ticket, $barcode, $participation;
/**
* Create a new message instance.
*
* @return void
*/
public function __construct($sticker, $ticket, $barcode, $participation)
{
$this->sticker = $sticker;
$this->ticket = $ticket;
$this->barcode = $barcode;
$this->participation = $participation;
}
/**
* Build the message.
*
* @return $this
*/
public function build()
{
$participation = $this->participation;
return $this->view('front.basic.winning-proof-email', compact('participation'))->attach($this->sticker)->attach($this->ticket)->attach($this->barcode);
}
}