Skip to content

Commit

Permalink
Added organiser logo support to confirmation emails
Browse files Browse the repository at this point in the history
Receiving emails with the Attendize logo can be confusing for attendees.
  • Loading branch information
egaudrain committed Oct 26, 2022
1 parent 3ecb33b commit 0ed06df
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 0ed06df

Please sign in to comment.