diff --git a/app/Mail/User/UserLoggedIn.php b/app/Mail/User/UserLoggedIn.php index 7eade000111e..32b5d3b83537 100644 --- a/app/Mail/User/UserLoggedIn.php +++ b/app/Mail/User/UserLoggedIn.php @@ -1,4 +1,5 @@ from(config('mail.from.address'), config('mail.from.name')) - ->subject(ctrans('texts.new_login_detected')) - ->view('email.admin.notification') - ->with([ - 'settings' => $this->company->settings, - 'logo' => $this->company->present()->logo(), - 'title' => ctrans('texts.new_login_detected'), - 'body' => ctrans('texts.new_login_description', ['email' =>$this->user->email, 'ip' => $this->ip, 'time' => now()]), - 'whitelabel' => $this->company->account->isPaid(), - ]); + ->subject(ctrans('texts.new_login_detected')) + ->view('email.admin.notification') + ->with([ + 'settings' => $this->company->settings, + 'logo' => $this->company->present()->logo(), + 'title' => ctrans('texts.new_login_detected'), + 'body' => ctrans('texts.new_login_description', ['email' => $this->user->email, 'ip' => $this->ip, 'time' => now()]), + 'whitelabel' => $this->company->account->isPaid(), + ]); } } diff --git a/resources/views/email/admin/notification.blade.php b/resources/views/email/admin/notification.blade.php index 9422a5c613e2..ece47319a2dd 100644 --- a/resources/views/email/admin/notification.blade.php +++ b/resources/views/email/admin/notification.blade.php @@ -1,4 +1,4 @@ -@component('email.template.admin-light', ['logo' => $logo, 'settings' => $settings]) +@component('email.template.admin', ['logo' => $logo, 'settings' => $settings])

{!! $title !!}

{!! $body !!}