<?php

namespace App\Mail;

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

class ApproveEngineer extends Mailable
{
    use Queueable, SerializesModels;

    public Engineer $engineer;

    /**
     * Create a new message instance.
     *
     * @return void
     */
    public function __construct($engineer)
    {
        $this->$engineer = $engineer;
    }

    /**
     * Build the message.
     *
     * @return $this
     */
    public function build()
    {
        return $this->view('email.approve_engineer');
    }
}
