2021-03-30 17:07:16 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
namespace App\Mail;
|
|
|
|
|
|
|
|
|
|
use Illuminate\Bus\Queueable;
|
|
|
|
|
use Illuminate\Mail\Mailable;
|
|
|
|
|
use Illuminate\Queue\SerializesModels;
|
|
|
|
|
|
|
|
|
|
class AlertGoalAchieved extends Mailable
|
|
|
|
|
{
|
2023-08-21 15:24:32 +02:00
|
|
|
use Queueable;
|
|
|
|
|
use SerializesModels;
|
2021-03-30 17:07:16 +02:00
|
|
|
|
|
|
|
|
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 */
|
2026-03-19 11:21:49 +01:00
|
|
|
return $this->subject("Objectif Atteint! - " . config('app.name', 'Jeusselin'))
|
|
|
|
|
->view('fo.mail.alertgoalachieved')
|
|
|
|
|
->with('objectif', $this->objectif);
|
2021-03-30 17:07:16 +02:00
|
|
|
}
|
|
|
|
|
}
|