41 lines
No EOL
1,015 B
PHP
41 lines
No EOL
1,015 B
PHP
<?php
|
|
namespace App\Mail;
|
|
|
|
use Storage;
|
|
use App\User;
|
|
use App\Services\Credit;
|
|
use App\Services\Invoice;
|
|
use App\Models\UserCredit;
|
|
use App\Models\ShoppingOrder;
|
|
use Illuminate\Bus\Queueable;
|
|
use Illuminate\Mail\Mailable;
|
|
use Illuminate\Queue\SerializesModels;
|
|
use Illuminate\Contracts\Queue\ShouldQueue;
|
|
|
|
class MailUserLevelUpdate extends Mailable
|
|
{
|
|
use Queueable, SerializesModels;
|
|
|
|
protected $team_points;
|
|
protected $update_to;
|
|
public $subject;
|
|
|
|
public function __construct($team_points, $update_to)
|
|
{
|
|
$this->team_points = $team_points;
|
|
$this->update_to = $update_to;
|
|
|
|
$this->subject = __('email.update_level_title');
|
|
}
|
|
|
|
public function build()
|
|
{
|
|
$title = __('email.update_level_title');
|
|
$copy1line = __('email.update_level_copy1line', ['tp'=>$this->team_points, 'to'=>$this->update_to]);
|
|
|
|
return $this->view('emails.blank')->with([
|
|
'title' => $title,
|
|
'copy1line' => $copy1line,
|
|
]);
|
|
}
|
|
} |