<?php

namespace App\Notifications;

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

class TwoFactorDisabledNotification extends Notification implements ShouldQueue
{
    use Queueable;

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

    /**
     * Get the mail representation of the notification.
     */
    public function toMail(object $notifiable): MailMessage
    {
        return (new MailMessage)
            ->subject('Two-Factor Authentication Disabled - LifeData')
            ->greeting('Hello, ' . $notifiable->name . '!')
            ->line('Two-factor authentication has been disabled for your account.')
            ->line('Your account security has been reduced. We recommend keeping two-factor authentication enabled.')
            ->line('If you did not disable this feature, please contact support immediately and re-enable two-factor authentication.');
    }
}
