|
|
@@ -7,24 +7,21 @@ use Illuminate\Notifications\Notification;
|
|
|
use Illuminate\Contracts\Queue\ShouldQueue;
|
|
|
use Illuminate\Notifications\Messages\MailMessage;
|
|
|
|
|
|
-class TicketNotification extends Notification
|
|
|
+class ProposalStatusNotification extends Notification
|
|
|
{
|
|
|
use Queueable;
|
|
|
- protected $ticket,$action_type, $addedBy;
|
|
|
+ protected $proposal,$action_type, $addedBy;
|
|
|
|
|
|
/**
|
|
|
* Create a new notification instance.
|
|
|
*
|
|
|
* @return void
|
|
|
*/
|
|
|
- public function __construct($ticket,$action_type, $addedBy, $comment=NULL)
|
|
|
+ public function __construct($proposal,$action_type, $addedBy)
|
|
|
{
|
|
|
- $this->ticket = $ticket;
|
|
|
+ $this->proposal = $proposal;
|
|
|
$this->action_type = $action_type;
|
|
|
- $this->addedBy = $addedBy;
|
|
|
- $this->comment = $comment;
|
|
|
-
|
|
|
- //$this->assign_person = $assign_person;
|
|
|
+ $this->addedBy = $addedBy;
|
|
|
|
|
|
}
|
|
|
|
|
|
@@ -48,10 +45,9 @@ class TicketNotification extends Notification
|
|
|
public function toDatabase($notifiable)
|
|
|
{
|
|
|
return [
|
|
|
- 'ticket' => $this->ticket,// ticket information
|
|
|
+ 'proposal' => $this->proposal,// ticket information
|
|
|
'action_type' => $this->action_type, // creator
|
|
|
- 'addedBy' => $this->addedBy, // creator
|
|
|
- 'comment' => $this->comment, // creator
|
|
|
+ 'addedBy' => $this->addedBy, // creator
|
|
|
'user' => $notifiable // send
|
|
|
];
|
|
|
}
|