Current File : /home/tradevaly/www/app/Notifications/admin/query/QueryMassege.php
<?php

namespace App\Notifications\admin\query;

use Illuminate\Bus\Queueable;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Notifications\Messages\MailMessage;
use Illuminate\Notifications\Notification;

class QueryMassege extends Notification
{
    use Queueable;
    public $data;

    /**
     * Create a new notification instance.
     */
    public function __construct($request)
    {
        $this->data = $request;
    }

    /**
     * Get the notification's delivery channels.
     *
     * @return array<int, string>
     */
    public function via(object $notifiable): array
    {
        return ['mail'];
    }

    /**
     * Get the mail representation of the notification.
     */
    public function toMail($notifiable)
    {
        return (new MailMessage)
                    ->subject('Reply to Your Inquiry')
                    ->greeting('Hello!')
                    ->line('Thank you for your inquiry.')
                    ->line('Please check Your Inbox , You will contact with you as soon as possiable')
                    ->line('If you have any further questions, feel free to contact us.')
                    ->line('Thank you for reaching out!');
    }

    /**
     * Get the array representation of the notification.
     *
     * @return array<string, mixed>
     */
    public function toArray(object $notifiable): array
    {
        return [
            //
        ];
    }
}