<?php

namespace App\Mail;

use Illuminate\Bus\Queueable;
use Illuminate\Mail\Mailable;
use Illuminate\Mail\Mailables\Content;
use Illuminate\Mail\Mailables\Envelope;
use Illuminate\Queue\SerializesModels;

class ConfirmAccrualMail extends Mailable
{
    use Queueable, SerializesModels;

    public function __construct(
        public string $confirmUrl,
        public string $runDateDisplay,
    ) {}

    public function envelope(): Envelope
    {
        return new Envelope(
            subject: 'Confirmar acreditación de inversiones (ejecución)',
        );
    }

    public function content(): Content
    {
        return new Content(
            markdown: 'mail.confirm-accrual',
        );
    }
}
