<?php

namespace App\Mail;

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

class ClaimDocumentsMissingMail extends Mailable
{
    use Queueable, SerializesModels;

    public Claim $claim;
    public string $comment;

    public function __construct(Claim $claim, string $comment)
    {
        $this->claim   = $claim;
        $this->comment = $comment;
    }

    public function build()
    {
        return $this->subject('Claim Documents Missing – Action Required')
            ->view('mails.documents-missing');
    }
}
