From a68a195e1ffd255d66bf7b8af9bf5c26c2474e63 Mon Sep 17 00:00:00 2001 From: atomjoy Date: Sun, 2 Jul 2023 15:59:29 +0200 Subject: [PATCH] Update --- README.md | 11 +- resources/views/components/row.blade.php | 2 +- resources/views/components/td.blade.php | 2 +- resources/views/email/default.blade.php | 157 ++++++++++------------- resources/views/email/password.blade.php | 90 ++++++------- resources/views/email/register.blade.php | 90 ++++++------- 6 files changed, 158 insertions(+), 194 deletions(-) diff --git a/README.md b/README.md index de07d7b..96d87bc 100644 --- a/README.md +++ b/README.md @@ -20,20 +20,19 @@ use Proton\Mail\RegisterMail; use Proton\Mail\PasswordMail; Route::get('/proton', function () { - // Set locale - // app()->setLocale('pl'); - // User (required columns: id, name, code) - // $user = User::first(); + $user = User::first(); // Send email sample Mail::to('user@laravel.com')->send(new DefaultMail()); // User reset password, use null for example - Mail::to('user@laravel.com')->send(new PasswordMail(null, 'XXX-123')); + Mail::to('user@laravel.com')->send(new PasswordMail($user, '321-XXX-123')); + Mail::to('user@laravel.com')->locale('pl')->send(new PasswordMail($user, '321-XXX-123')); // User activation link (User model required columns: id, name, code), use null for example - Mail::to('user@laravel.com')->send(new RegisterMail(null)); + Mail::to('user@laravel.com')->send(new RegisterMail($user)); + Mail::to('user@laravel.com')->locale('pl')->send(new RegisterMail($user)); // Show example email view return view('proton::email.default'); diff --git a/resources/views/components/row.blade.php b/resources/views/components/row.blade.php index 6fd1cb4..01ca790 100644 --- a/resources/views/components/row.blade.php +++ b/resources/views/components/row.blade.php @@ -4,7 +4,7 @@ --}} - + {{ $slot }} \ No newline at end of file diff --git a/resources/views/components/td.blade.php b/resources/views/components/td.blade.php index 53354c9..386536f 100644 --- a/resources/views/components/td.blade.php +++ b/resources/views/components/td.blade.php @@ -7,6 +7,6 @@ --}} - + {{ $slot }} \ No newline at end of file diff --git a/resources/views/email/default.blade.php b/resources/views/email/default.blade.php index e2dc02c..330d332 100644 --- a/resources/views/email/default.blade.php +++ b/resources/views/email/default.blade.php @@ -7,69 +7,56 @@ - - - + + -
- Image -
- -

Welcome {{ auth()->user()?->name ?? 'Alex' }}!

-

Lorem ipsum dolor sit amet consectetur adipisicing elit. Vitae, architecto minus go to site . Placeat sapiente perspiciatis illum corporis earum obcaecati illo mollitia inventore voluptatibus, ipsa, quasi quaerat dolorem commodi labore accusantium - repudiandae!

-
-
- - - - - Confirm Email - - - - - - -

Secret code

-

Lorem ipsum dolor sit amet consectetur adipisicing elit. Vitae, architecto minus accusantium repudiandae!

- - - KLE-6677-HJS-7866 - -
-
- - - -

About company

-

Lorem ipsum dolor sit amet consectetur adipisicing elit. Vitae, architecto minus. Placeat sapiente perspiciatis illum corporis earum obcaecati illo mollitia inventore voluptatibus, ipsa, quasi quaerat dolorem commodi labore accusantium repudiandae!

-
-
+
+ Image +
+ +

Welcome {{ auth()->user()?->name ?? 'Alex' }}!

+

Lorem ipsum dolor sit amet consectetur adipisicing elit. Vitae, architecto minus go to site . Placeat sapiente perspiciatis illum corporis earum obcaecati illo mollitia inventore voluptatibus, ipsa, quasi quaerat dolorem commodi labore accusantium + repudiandae!

+ + + + + Confirm Email + + - - -

Current promotions

-
-
+ +

Secret code

+

Lorem ipsum dolor sit amet consectetur adipisicing elit. Vitae, architecto minus accusantium repudiandae!

- - + + KLE-6677-HJS-7866 + +
+ + +

About company

+

Lorem ipsum dolor sit amet consectetur adipisicing elit. Vitae, architecto minus. Placeat sapiente perspiciatis illum corporis earum obcaecati illo mollitia inventore voluptatibus, ipsa, quasi quaerat dolorem commodi labore accusantium repudiandae!

+
+ + +

Current promotions

+
+ + + Image

Lorem ipsum dolor sit amet consectetur adipisicing elit. Vitae, architecto minus. Placeat sapiente perspiciatis illum corporis earum obcaecati illo mollitia inventore voluptatibus, ipsa, quasi quaerat dolorem commodi labore accusantium repudiandae!

- - - +
+ Image

Lorem ipsum dolor sit amet consectetur adipisicing elit. Vitae, architecto minus. Placeat sapiente perspiciatis illum corporis earum obcaecati illo mollitia inventore voluptatibus, ipsa, quasi quaerat dolorem commodi labore accusantium repudiandae!

- - +
+
- - -

Gallery

-
-
+ +

Gallery

+
@@ -97,11 +84,9 @@ - - -

Links

-
-
+ +

Links

+
@@ -121,32 +106,28 @@ - - -
-

Regards

-

Alex,
Have a nice day!

-
-
- - - - - -
- © @lang('proton.rights') -
- -
- - - - - - - - - -
-
+ +
+

Regards

+

Alex,
Have a nice day!

+
+ + + + +
+ © @lang('proton.rights') +
+ +
+ + + + + + + + + +
\ No newline at end of file diff --git a/resources/views/email/password.blade.php b/resources/views/email/password.blade.php index 669b66b..01371f4 100644 --- a/resources/views/email/password.blade.php +++ b/resources/views/email/password.blade.php @@ -7,53 +7,45 @@ - - - - -
- Image -
- -

@lang('proton.password.welcome') {{ $user?->name ?? 'User' }}!

-

@lang('proton.password.message')

-
-
- - - - - {{ $password ?? 'INVALIDPASS'}} - - - - - - -

@lang('proton.password.regards_title')

- {{ $user?->name ?? '' }} -

@lang('proton.password.regards_text')

-
-
- - - - - -
- © @lang('proton.rights') -
- -
- - - - - - - - - -
-
+ + + +
+ Image +
+ +

@lang('proton.password.welcome') {{ $user?->name ?? 'User' }}!

+

@lang('proton.password.message')

+
+ + + + {{ $password ?? 'INVALIDPASS'}} + + + + +

@lang('proton.password.regards_title')

+ {{ $user?->name ?? '' }} +

@lang('proton.password.regards_text')

+
+ + + + +
+ © @lang('proton.rights') +
+ +
+ + + + + + + + + +
\ No newline at end of file diff --git a/resources/views/email/register.blade.php b/resources/views/email/register.blade.php index 96bb0c1..afb5216 100644 --- a/resources/views/email/register.blade.php +++ b/resources/views/email/register.blade.php @@ -7,53 +7,45 @@ - - - - -
- Image -
- -

@lang('proton.register.welcome') {{ $user?->name ?? 'User' }}!

-

@lang('proton.register.message')

-
-
- - - - - @lang('proton.register.button') - - - - - - -

@lang('proton.register.regards_title')

- {{ $user?->name ?? '' }} -

@lang('proton.register.regards_text')

-
-
- - - - - -
- © @lang('proton.rights') -
- -
- - - - - - - - - -
-
+ + + +
+ Image +
+ +

@lang('proton.register.welcome') {{ $user?->name ?? 'User' }}!

+

@lang('proton.register.message')

+
+ + + + @lang('proton.register.button') + + + + +

@lang('proton.register.regards_title')

+ {{ $user?->name ?? '' }} +

@lang('proton.register.regards_text')

+
+ + + + +
+ © @lang('proton.rights') +
+ +
+ + + + + + + + + +
\ No newline at end of file