<?php

namespace App\Modules\Pilkades\Mail;

use App\Models\User;
use Illuminate\Bus\Queueable;
use Illuminate\Mail\Mailable;
use Illuminate\Queue\SerializesModels;

class AdminDesaCredentialsMail extends Mailable
{
    use Queueable, SerializesModels;

    public function __construct(
        public User $user,
        public string $plainPassword,
        public string $loginUrl,
    ) {}

    public function build(): self
    {
        return $this->subject('Akun Admin Desa - Pilkades InvitMe')
            ->markdown('pilkades::emails.admin-desa-credentials');
    }
}
