<?php

namespace App\Notifications;

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

class AkunDikonfirmasi extends Notification
{
    use Queueable;

    public function via($notifiable)
    {
        return ['mail'];
    }

    public function toMail($notifiable)
    {
        return (new MailMessage)
            ->subject('Akun Anda Telah Dikonfirmasi')
            ->greeting('Halo, ' . $notifiable->name)
            ->line('Akun Anda telah dikonfirmasi oleh admin.')
            ->line('Sekarang Anda dapat login ke sistem.')
            ->action('Login Sekarang', url('/login'))
            ->line('Terima kasih telah mendaftar!');
    }

    public function toArray($notifiable)
    {
        return [];
    }
}
