update
This commit is contained in:
@@ -5,6 +5,7 @@ declare(strict_types=1);
|
||||
namespace App\Mail\Admin;
|
||||
|
||||
use App\Mail\TemplateMailable;
|
||||
use App\Support\EmailTemplateShell;
|
||||
use Illuminate\Bus\Queueable;
|
||||
use Illuminate\Queue\SerializesModels;
|
||||
|
||||
@@ -27,7 +28,7 @@ class HostingAccountCreatedAdminNotification extends TemplateMailable
|
||||
protected function variables(): array
|
||||
{
|
||||
$row = fn (string $label, ?string $value) => $value
|
||||
? '<div class="cred-row"><span class="cred-label">' . $label . '</span><span class="cred-value">' . e($value) . '</span></div>'
|
||||
? EmailTemplateShell::row($label, e($value))
|
||||
: '';
|
||||
|
||||
return [
|
||||
@@ -41,10 +42,10 @@ class HostingAccountCreatedAdminNotification extends TemplateMailable
|
||||
'plesk_client_id' => $this->data['plesk_client_id'] ?? 'N/A',
|
||||
'plesk_subscription_id' => $this->data['plesk_subscription_id'] ?? 'N/A',
|
||||
'ftp_username' => $this->data['ftp_username'] ?? 'N/A',
|
||||
'ftp_password_row' => $row('🔑 FTP Password', $this->data['ftp_password'] ?? null),
|
||||
'ftp_password_row' => $row('FTP Password', $this->data['ftp_password'] ?? null),
|
||||
'plesk_panel_url' => $this->data['plesk_panel_url'] ?? 'N/A',
|
||||
'plesk_login' => $this->data['plesk_login'] ?? 'N/A',
|
||||
'plesk_password_row' => $row('🔑 Password', $this->data['plesk_password'] ?? null),
|
||||
'plesk_password_row' => $row('Plesk Password', $this->data['plesk_password'] ?? null),
|
||||
'company_name' => $this->data['company_name'] ?? 'Portal Admin',
|
||||
];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user