Skip to content

Commit

Permalink
Merge pull request #1063 from egaudrain/mail_logo
Browse files Browse the repository at this point in the history
Add organiser logo to confirmation emails
  • Loading branch information
johannac authored Jan 12, 2023
2 parents bff3bd5 + 7197be1 commit 68bd391
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/Mail/SendAttendeeInviteMail.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ class SendAttendeeInviteMail extends Mailable
use Queueable, SerializesModels;

public $attendee;
public $email_logo;

/**
* Create a new message instance.
Expand All @@ -23,6 +24,7 @@ class SendAttendeeInviteMail extends Mailable
public function __construct(Attendee $attendee)
{
$this->attendee = $attendee;
$this->email_logo = $attendee->event->organiser->full_logo_path;
}

/**
Expand Down
2 changes: 2 additions & 0 deletions app/Mail/SendMessageToAttendeesMail.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ class SendMessageToAttendeesMail extends Mailable
public $content;
public $event;
public $attendee;
public $email_logo;

/**
* Create a new message instance.
Expand All @@ -29,6 +30,7 @@ public function __construct($subject, $content, Event $event, Attendee $attendee
$this->content = $content;
$this->event = $event;
$this->attendee = $attendee;
$this->email_logo = $event->organiser->full_logo_path;
}

/**
Expand Down
2 changes: 2 additions & 0 deletions app/Mail/SendOrderAttendeeTicketMail.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ class SendOrderAttendeeTicketMail extends Mailable
* @var Attendee
*/
public $attendee;
public $email_logo;

/**
* Create a new message instance.
Expand All @@ -27,6 +28,7 @@ class SendOrderAttendeeTicketMail extends Mailable
public function __construct(Attendee $attendee)
{
$this->attendee = $attendee;
$this->email_logo = $attendee->event->organiser->full_logo_path;
}

/**
Expand Down
3 changes: 3 additions & 0 deletions app/Mail/SendOrderConfirmationMail.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,16 @@ class SendOrderConfirmationMail extends Mailable
*/
public $orderService;

public $email_logo;

/**
* Create a new message instance.
*
* @return void
*/
public function __construct(Order $order, OrderService $orderService)
{
$this->email_logo = $order->event->organiser->full_logo_path;
$this->order = $order;
$this->orderService = $orderService;
}
Expand Down
3 changes: 3 additions & 0 deletions app/Mail/SendOrderNotificationMail.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ class SendOrderNotificationMail extends Mailable
*/
public $orderService;

public $email_logo;

/**
* Create a new message instance.
*
Expand All @@ -36,6 +38,7 @@ public function __construct(Order $order, OrderService $orderService)
{
$this->order = $order;
$this->orderService = $orderService;
$this->email_logo = $order->event->organiser->full_logo_path;
}

/**
Expand Down

0 comments on commit 68bd391

Please sign in to comment.