<?php

namespace App\Mail;

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

class InfoNuevoUsuario extends Mailable
{
    use Queueable, SerializesModels;

    public $url;
    public $rol;
    public $nombre;
    public $usuario;
    public $contrasena;
    public $contrato;

    public function __construct($url, $rol, $nombre, $usuario, $contrasena, $contrato)
    {
        $this->url = $url;
        $this->rol = $rol;
        $this->nombre= $nombre;
        $this->usuario = $usuario;
        $this->contrasena = $contrasena;
        $this->contrato = $contrato;
    }

    
    public function build()
    {
        return $this->view('correo/nuevoUsuario');
    }
}
