<?php

namespace App\Mail;

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

class EventoCriado extends Mailable
{
    use Queueable, SerializesModels;

    public $user;
    public $subject;
    public $informacoes;


    /**
     * Create a new message instance.
     *
     * @return void
     */
    public function __construct($user, $subject, $informacoes = "")
    {
        $this->user = $user;
        $this->subject = $subject;
        $this->informacoes = $informacoes;

    }

    /**
     * Build the message.
     *
     * @return $this
     */
    public function build()
    {
        
        return $this->from('lmtsteste@gmail.com', 'Submeta - LMTS')
                    ->subject($this->subject)
                    ->view('emails.emailEventoCriado')
                    ->with([
                        'user' => $this->user,
                        'info' => $this->informacoes,
                        
                    ]);
    }
}
