<?php

namespace App\Mail;

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

class WelcomeCompanyMail extends Mailable
{
    use Queueable, SerializesModels;

    public $owner;
    public $company;

    /**
     * Create a new message instance.
     *
     * @param User $owner
     * @param Company $company
     */
    public function __construct(User $owner, Company $company)
    {
        $this->owner = $owner;
        $this->company = $company;
    }

    /**
     * Build the message.
     *
     * @return $this
     */
    public function build()
    {
        return $this->markdown('Email.welcomeCompany')
                    ->subject("Bienvenido a Hit a Wod");
    }
}
