<?php

namespace App\Mail;

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

class DailyBranchReportMail extends Mailable
{
    use Queueable, SerializesModels;

    public function __construct(public readonly DailyBranchReport $report) {}

    public function build(): self
    {
        return $this
            ->subject($this->report->subject)
            ->html($this->report->body_html);
    }
}
