<?php

namespace App\Mail;

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

class CorreoEgreso extends Mailable
{
    use Queueable, SerializesModels;
    public $subject = "Restablecer Contraseña - TecNM Campus Zitácuaro";
    public $msg;

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

    /**
     * Build the message.
     *
     * @return $this
     */
    public function build()
    {
        //dd($this->msg);
        // $logos = Logos::where('estado','2')->first();
        
        if (isset($this->msg)) {
            return $this->view('password.correo.mensaje-recibido'); //->with(['logos' => $logo]);
        }
    }
}
