mivita/dev/app-bak/Mail/MailUserLevelUpdate.php
2025-10-20 17:42:08 +02:00

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,
]);
}
}