finish implementing mails
This commit is contained in:
@@ -24,12 +24,12 @@ class Preparation extends TemplateMailable
|
||||
|
||||
public $subject;
|
||||
|
||||
public function __construct($user, $subject = '')
|
||||
public function __construct($order)
|
||||
{
|
||||
$this->prenom = $user->first_name;
|
||||
$this->nom = $user->last_name;
|
||||
$this->societe = $user->society;
|
||||
$this->email = $user->email;
|
||||
$this->prenom = $order->customer->first_name;
|
||||
$this->nom = $order->customer->last_name;
|
||||
$this->societe = $order->customer->company;
|
||||
$this->email = $order->customer->email;
|
||||
$this->subject = $subject;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user