<?php

namespace App\Mail;

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

class AdminForgetPasswordForWeb extends Mailable
{
    use Queueable, SerializesModels;

    /**
     * Create a new message instance.
     *
     * @return void
     */
    protected $admin;
    protected $template;
    public $subject;
    public function __construct($admin,$template,$subject)
    {
        $this->admin=$admin;
        $this->subject=$subject;
        $this->template=$template;
    }
    /**
     * Build the message.
     *
     * @return $this
     */
    public function build()
    {
        $template=$this->template;
        $admin=$this->admin;
        return $this->subject($this->subject)->view('admin.admin_forget_pass_template_for_web',compact('admin','template'));
    }
}
