mirror of
https://github.com/VueFileManager/vuefilemanager.git
synced 2026-04-21 01:12:14 +00:00
- email template
This commit is contained in:
@@ -6,6 +6,7 @@ use Illuminate\Bus\Queueable;
|
||||
use Illuminate\Contracts\Queue\ShouldQueue;
|
||||
use Illuminate\Notifications\Messages\MailMessage;
|
||||
use Illuminate\Notifications\Notification;
|
||||
use Laravel\Cashier\Cashier;
|
||||
|
||||
class PaymentRequiredNotification extends Notification
|
||||
{
|
||||
@@ -15,16 +16,18 @@ class PaymentRequiredNotification extends Notification
|
||||
* Create a new notification instance.
|
||||
*
|
||||
* @param $order
|
||||
* @param $plan
|
||||
*/
|
||||
public function __construct($order)
|
||||
public function __construct($order, $plan)
|
||||
{
|
||||
$this->order = $order;
|
||||
$this->plan = $plan;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the notification's delivery channels.
|
||||
*
|
||||
* @param mixed $notifiable
|
||||
* @param mixed $notifiable
|
||||
* @return array
|
||||
*/
|
||||
public function via($notifiable)
|
||||
@@ -35,24 +38,29 @@ class PaymentRequiredNotification extends Notification
|
||||
/**
|
||||
* Get the mail representation of the notification.
|
||||
*
|
||||
* @param mixed $notifiable
|
||||
* @param mixed $notifiable
|
||||
* @return \Illuminate\Notifications\Messages\MailMessage
|
||||
*/
|
||||
public function toMail($notifiable)
|
||||
{
|
||||
$url = url("/platba/{$this->order['id']}");
|
||||
|
||||
$price = Cashier::formatAmount($this->plan['plan']['amount']);
|
||||
$storage = format_gigabytes($this->plan['product']['metadata']['capacity']);
|
||||
|
||||
return (new MailMessage)
|
||||
->subject('🏝 Platobne instrukcie pre zakupenie balicka a aktivaciu Vasho konta')
|
||||
->line('🏝 Platobne instrukcie pre zakupenie balicka a aktivaciu Vasho konta')
|
||||
->action('Prejst na platbu', $url)
|
||||
->line('Dakujeme za zaujem o nase sluzby!');
|
||||
->subject('🏝 Potvrzeni Objednavky - OasisDrive')
|
||||
->greeting('Dobry den')
|
||||
->line('🏝 dekujeme za Vasi objednavku. Potvrzenim objednavky se Vas ucet automaticky zaktivuje a vytvori se Vam digitalni prostor pro Vase dulezite dokumenty.')
|
||||
->line("Datovy tarif: Standard: $storage - $price")
|
||||
->action('Prejst na platbu', $url)
|
||||
->line('Dekujeme, Vas tym OasisDrive');
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the array representation of the notification.
|
||||
*
|
||||
* @param mixed $notifiable
|
||||
* @param mixed $notifiable
|
||||
* @return array
|
||||
*/
|
||||
public function toArray($notifiable)
|
||||
|
||||
Reference in New Issue
Block a user