File: D:/HostingSpaces/Eurotools/euro-tools.nl/app/KommaApp/Shop/Notifications/CustomersVatChecked.php
<?php
namespace App\KommaApp\Shop\Notifications;
use App\KommaApp\Users\Models\User;
use Illuminate\Bus\Queueable;
use Illuminate\Notifications\Notification;
use Illuminate\Notifications\Messages\MailMessage;
use Illuminate\Support\Collection;
/**
* Class CustomersVatChecked
*
* Notification to eurotools admin telling that non vat validate users have ben validated or not
*
* @package App\KommaApp\Shop\Notifications
*/
class CustomersVatChecked extends Notification
{
use Queueable;
/** @var Collection $customer */
private $customers;
/**
* Create a new notification instance.
*
* @param Collection $customers
*/
public function __construct(Collection $customers)
{
$this->customers = $customers;
}
/**
* 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()
{
$message = (new MailMessage)
->greeting(__('shop/notifications.customer_vat_check.mail_greeting'))
->view('emails.admin.customersVatChecked', [
'customers' => $this->customers
])->subject(__('shop/notifications.customers_vat_checked.subject'));
return $message;
}
/**
* Get the array representation of the notification.
*
* @param mixed $notifiable
* @return array
*/
public function toArray($notifiable)
{
return [
//
];
}
}