/home/kueuepay/public_html/app/Notifications/Admin/AddMoneyEmailNotification.php
<?php

namespace App\Notifications\Admin;

use Carbon\Carbon;
use Illuminate\Bus\Queueable;
use Illuminate\Notifications\Notification;
use Illuminate\Notifications\Messages\MailMessage;

class AddMoneyEmailNotification extends Notification
{
    use Queueable;
    public $data;
    /**
     * Create a new notification instance.
     *
     * @return void
     */
    public function __construct($data)
    {
        $this->data = $data;
    }

    /**
     * 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)
    {
        $transaction        = $this->data;
        $date               = Carbon::now();
        $dateTime           = $date->format('Y-m-d h:i:s A');
   
        return (new MailMessage)
            ->greeting("Hello ". auth()->user()->fullname." !")
            ->subject("Add Money using " . $transaction->payment_gateway->name)
            ->line("Request Amount: " . get_amount($transaction->request_amount,$transaction->request_currency,2))
            ->line("Payable Amount: " . get_amount($transaction->total_payable,$transaction->payment_currency,2))
            ->line("Status: " .$transaction->stringStatus->value)
            ->line("Date And Time: " .$dateTime)
            ->line('Thank you for using our application!');
    }

    /**
     * Get the array representation of the notification.
     *
     * @param  mixed  $notifiable
     * @return array
     */
    public function toArray($notifiable)
    {
        return [
            //
        ];
    }
}
Security

Support

If you encounter any issues or need assistance, please reach out to our dedicated developer support team Contact Us

Thank you for choosing Kueue Pay Payment Gateway Solutions! We look forward to seeing your integration thrive and provide a seamless payment experience for your valued customers.