<?php

namespace App\Mail;

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

class QuizPassedMail extends Mailable implements ShouldQueue
{
    use Queueable, SerializesModels;

    public function __construct(
        public string $name,
        public string $score,
        public string $certificateUrl
    ) {}

    public function envelope(): Envelope
    {
        return new Envelope(
            subject: 'Amrit Internship | You Passed 🎉',
        );
    }

    public function content(): Content
    {
        return new Content(
            view: 'emails.quiz_passed',
        );
    }
}
