<commit_before><?php namespace Web812\AlexmebelTheme\Notification;

use Illuminate\Bus\Queueable;
use Illuminate\Notifications\Notification;
use Illuminate\Contracts\Queue\ShouldQueue;
use Anomaly\UsersModule\User\Contract\UserInterface;
use Anomaly\Streams\Platform\Notification\Message\MailMessage;

class RequestFromSite extends Notification implements ShouldQueue
{

    use Queueable;

    /**
     * Request request.
     *
     * @var array
     */
    public $request;

    /**
     * Create a new NewRequest instance.
     *
     * @param $request
     */
    public function __construct(array $request)
    {
        $this->request = $request;
    }

    /**
     * Get the notification's delivery channels.
     *
     * @param  UserInterface $notifiable
     * @return array
     */
    public function via(UserInterface $notifiable)
    {
        return ['mail'];
    }

    /**
     * Return the mail message.
     *
     * @param  UserInterface $notifiable
     * @return MailMessage
     */
    public function toMail(UserInterface $notifiable)
    {
        $data = $notifiable->toArray();

        return (new MailMessage())
        ->view('web812.theme.alexmebel::notifications.request')
        ->subject(trans('web812.theme.alexmebel::notification.request.subject', $data))
        ->greeting(trans('web812.theme.alexmebel::notification.request.greeting', $data))
        ->line(trans('web812.theme.alexmebel::notification.request.instructions', $data));
}<commit_msg>Fixed email tpl<commit_after><?php namespace Web812\AlexmebelTheme\Notification;

use Anomaly\Streams\Platform\Notification\Message\MailMessage;
use Anomaly\UsersModule\User\Contract\UserInterface;
use Illuminate\Bus\Queueable;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Notifications\Notification;

class RequestFromSite extends Notification implements ShouldQueue
{
    use Queueable;

    /**
     * Request request.
     *
     * @var array
     */
    public $request;

    /**
     * Create a new NewRequest instance.
     *
     * @param $request
     */
    public function __construct(array $request)
    {
        $this->request = $request;
    }

    /**
     * Get the notification's delivery channels.
     *
     * @param  UserInterface $notifiable
     * @return array
     */
    public function via(UserInterface $notifiable)
    {
        return ['mail'];
    }

    /**
     * Return the mail message.
     *
     * @param  UserInterface $notifiable
     * @return MailMessage
     */
    public function toMail(UserInterface $notifiable)
    {
        $data = $notifiable->toArray();

        return (new MailMessage())
            ->view('web812.theme.alexmebel::notifications.request', [
                'phone' => $this->request->get('phone'),
            ])
            ->subject(trans('web812.theme.alexmebel::notification.request.subject', $data))
            ->greeting(trans('web812.theme.alexmebel::notification.request.greeting', $data))
            ->line(trans('web812.theme.alexmebel::notification.request.instructions', $data));
    }
}
{'fraction_non_alphanumeric': 0.12227642276422765, 'fraction_numerical': 0.00975609756097561, 'mean_word_length': 2.7420924574209247, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 18, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3438480', 'n_tokens_mistral': 900, 'n_tokens_neox': 868, 'n_words': 166}