File: /home/imensosw/liftcincy.imenso.co/app/Notifications/LiftCincyEventTicket.php
<?php
namespace App\Notifications;
use Illuminate\Bus\Queueable;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Notifications\Messages\MailMessage;
use Illuminate\Notifications\Notification;
class LiftCincyEventTicket extends Notification
{
use Queueable;
protected $mailData;
/**
* Create a new notification instance.
*
* @return void
*/
public function __construct($mailData)
{
$this->mailData = $mailData;
}
/**
* Get the notification's delivery channels.
*
* @param mixed $notifiable
* @return array
*/
public function via($notifiable)
{
return ['mail'];
}
/**
* Get the mail representation of the notification.
*
* @param mixed $notifiable
* @return \Illuminate\Notifications\Messages\MailMessage
*/
public function toMail($notifiable)
{
return (new MailMessage)
->subject("Concerted — You're In!")
//->greeting("Congratulations ".$this->mailData['name'])
->greeting("🎟️ Sweet, sweet tickets.")
//->line($this->mailData['p1'])
->line("You're in! You have successfully claimed your ticket to ".$this->mailData['event_title'].". Your name will be on the list at will-call. Please be sure to bring your photo ID to confirm your identity. ")
//->line("Your Ticket Number is : ".$this->mailData['ticket_number'])
->line("Most important — have fun, be present, and keep being you! Thanks for showing up for your community.")
->action("My Tickets", route('dashboard.ticket-list'))
->salutation('');
}
/**
* Get the array representation of the notification.
*
* @param mixed $notifiable
* @return array
*/
public function toArray($notifiable)
{
return [
//
];
}
}