37 lines
811 B
PHP
37 lines
811 B
PHP
<?php
|
|
|
|
namespace App\Mail;
|
|
|
|
use Illuminate\Bus\Queueable;
|
|
use Illuminate\Contracts\Queue\ShouldQueue;
|
|
use Illuminate\Mail\Mailable;
|
|
use Illuminate\Queue\SerializesModels;
|
|
use App\Models\Objectives;
|
|
|
|
class AlertGoalAchieved extends Mailable
|
|
{
|
|
use Queueable, SerializesModels;
|
|
|
|
protected $objectif;
|
|
|
|
/**
|
|
* Create a new message instance.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function __construct($objectif)
|
|
{
|
|
$this->objectif = $objectif;
|
|
}
|
|
|
|
/**
|
|
* Build the message.
|
|
*
|
|
* @return $this
|
|
*/
|
|
public function build()
|
|
{
|
|
/** @var App\Models\Objectives $this->objectif */
|
|
return $this->subject("Objectif Atteint! - ". config('app.name', 'Jeusselin'))->view('front.mail.alertgoalachieved')->with('objectif', $this->objectif);
|
|
}
|
|
}
|