File: /home/imensosw/liftcincy.imenso.co/app/Notifications/NonprofitNotificationMail.php
<?php
namespace App\Notifications;
use Illuminate\Bus\Queueable;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Notifications\Messages\MailMessage;
use Illuminate\Notifications\Notification;
class NonprofitNotificationMail extends Notification
{
use Queueable;
protected $mailData;
/**
* Create a new notification instance.
*
* @return void
*/
public function __construct()
{
$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 — Volunteer Roster")
//->greeting("Congratulations ".$this->mailData['partner'])
->greeting("You've Got Volunteers!")
->line("It looks like you have ".$this->mailData['total_volunteer']." volunteers signed up for ".$this->mailData['opportunity_title'].". Please be sure to take roll call at your event and confirm/deny the attendance of volunteers on your dashboard. Without your confirmation, volunteers won't be able to bank and use hours on their favorite events!")
//->line("New Volunteer ".$this->mailData['volunteer_name']." signed up for the ".$this->mailData['opportunity_title']." opportunity!")
->line("Thanks for all that you do for our community. It doesn't go unnoticed.")
->action("Nonprofit Dashboard", route('admin.opportunities.show',$this->mailData['opportunity_id']))
//->action("Nonprofit Dashboard", route('admin.home'))
->salutation('');
}
/**
* Get the array representation of the notification.
*
* @param mixed $notifiable
* @return array
*/
public function toArray($notifiable)
{
return [
//
];
}
}