shareit/app/Mail/UserWaiting.php
Bruno Fontes f6ab437889
Added PTB Translation of emails and some pages
Now the main page, item page and e-mails are translated
into Brazilian Portuguese
2018-09-27 20:13:14 -03:00

48 lines
1.0 KiB
PHP

<?php
namespace App\Mail;
use \App\Item;
use Illuminate\Bus\Queueable;
use Illuminate\Mail\Mailable;
use Illuminate\Queue\SerializesModels;
use Illuminate\Contracts\Queue\ShouldQueue;
class UserWaiting extends Mailable
{
public $item;
public $waitingUser;
public $userWithItem;
use Queueable, SerializesModels;
/**
* Create a new message instance.
*
* @return void
*/
public function __construct($waitingUser, $userWithItem, Item $item)
{
$this->item = $item;
$this->waitingUser = $waitingUser;
$this->userWithItem = $userWithItem;
}
/**
* Build the message.
*
* @return $this
*/
public function build()
{
return $this->subject(
\Lang::getFromJson(
':waitinguser wants to use :itemname',
[
'waitinguser' => $this->waitingUser,
'itemname' => $this->item->name
]
)
)->markdown('emails.userWaiting');
}
}