From 9c45111a4e4d1a3c3b0c5ebc5debe09d0d4afb6e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20Beganovi=C4=87?= Date: Wed, 9 Jun 2021 16:57:16 +0200 Subject: [PATCH] app/Mail/User/UserLoggedIn.php --- app/Mail/User/UserLoggedIn.php | 20 +++++++++---------- .../views/email/admin/notification.blade.php | 2 +- 2 files changed, 11 insertions(+), 11 deletions(-) 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 !!}