File: /home/imensosw/liftcincy.imenso.co/app/Notifications/OpportunitySignedUp.php
<?php
namespace App\Notifications;
use Illuminate\Bus\Queueable;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Notifications\Messages\MailMessage;
use Illuminate\Notifications\Notification;
class OpportunitySignedUp 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 — Service Confirmation")
//->greeting("Thank you ".$this->mailData['volunteer_name'])
->greeting("You've Signed Up!")
->line("You've signed up for the ".$this->mailData['opportunity_title']." opportunity — thank you for giving back to your community! All that's left to do now is show up.")
->line("Don't worry, we've even got you covered on remembering when to be there. Keep an eye out for a reminder email with all the details, it'll show up a few days before the service event.")
->line("Remember, there's no limit to how many volunteer opportunities you can sign up for at a time!")
->action("Volunteer Opportunities", route('dashboard.opportunities'))
->salutation('');
}
/**
* Get the array representation of the notification.
*
* @param mixed $notifiable
* @return array
*/
public function toArray($notifiable)
{
return [
//
];
}
}