Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
laravel-adminpanel
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
laravel-adminpanel
Commits
aae971c8
Unverified
Commit
aae971c8
authored
Oct 21, 2018
by
Vipul Basapati
Committed by
GitHub
Oct 21, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #279 from bvipul/develop
Mailables and New Flash function
parents
f685c403
04e8d0d3
Changes
20
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
20 changed files
with
2340 additions
and
2149 deletions
+2340
-2149
.env.example
.env.example
+1
-0
GeneralException.php
app/Exceptions/GeneralException.php
+25
-0
Handler.php
app/Exceptions/Handler.php
+2
-1
PagesController.php
app/Http/Controllers/Api/V1/PagesController.php
+1
-1
LoginController.php
app/Http/Controllers/Frontend/Auth/LoginController.php
+2
-2
ResetPasswordController.php
...ttp/Controllers/Frontend/Auth/ResetPasswordController.php
+3
-2
UserEventListener.php
app/Listeners/Frontend/Auth/UserEventListener.php
+0
-15
UserAttribute.php
app/Models/Access/User/Traits/Attribute/UserAttribute.php
+4
-5
UserChangedPassword.php
app/Notifications/Frontend/Auth/UserChangedPassword.php
+55
-0
UserNeedsConfirmation.php
app/Notifications/Frontend/Auth/UserNeedsConfirmation.php
+1
-1
UserNeedsPasswordReset.php
app/Notifications/Frontend/Auth/UserNeedsPasswordReset.php
+3
-4
UserRepository.php
app/Repositories/Frontend/Access/User/UserRepository.php
+2
-7
package-lock.json
package-lock.json
+1981
-1981
Flash.vue
resources/assets/js/components/Flash.vue
+44
-41
changed-password.blade.php
resources/views/emails/changed-password.blade.php
+37
-0
app.blade.php
resources/views/emails/layouts/app.blade.php
+35
-87
footer.blade.php
resources/views/emails/layouts/footer.blade.php
+4
-0
reset-password.blade.php
resources/views/emails/reset-password.blade.php
+67
-0
user-confirmation.blade.php
resources/views/emails/user-confirmation.blade.php
+67
-0
messages.blade.php
resources/views/includes/partials/messages.blade.php
+6
-2
No files found.
.env.example
View file @
aae971c8
APP_NAME="Laravel Admin Panel"
APP_SHORT_NAME="LAP"
APP_ENV=local
APP_KEY=base64:O+TrollIDwasHEREtMG9kBc+/Q32exQLusNVhnq558w=
APP_DEBUG=true
...
...
app/Exceptions/GeneralException.php
View file @
aae971c8
...
...
@@ -9,4 +9,29 @@ use Exception;
*/
class
GeneralException
extends
Exception
{
/**
* message.
*
* @var string
*/
public
$message
;
/**
* dontHide.
*
* @var bool
*/
public
$dontHide
;
/**
* Constructor function.
*
* @param string $message
* @param bool $dontHide
*/
public
function
__construct
(
$message
,
$dontHide
=
false
)
{
$this
->
message
=
$message
;
$this
->
dontHide
=
$dontHide
;
}
}
app/Exceptions/Handler.php
View file @
aae971c8
...
...
@@ -53,7 +53,6 @@ class Handler extends ExceptionHandler
*/
public
function
render
(
$request
,
Exception
$exception
)
{
//dd($exception);
if
(
strpos
(
$request
->
url
(),
'/api/'
)
!==
false
)
{
\Log
::
debug
(
'API Request Exception - '
.
$request
->
url
()
.
' - '
.
$exception
->
getMessage
()
.
(
!
empty
(
$request
->
all
())
?
' - '
.
json_encode
(
$request
->
except
([
'password'
]))
:
''
));
...
...
@@ -112,6 +111,8 @@ class Handler extends ExceptionHandler
* All instances of GeneralException redirect back with a flash message to show a bootstrap alert-error
*/
if
(
$exception
instanceof
GeneralException
)
{
session
()
->
flash
(
'dontHide'
,
$exception
->
dontHide
);
return
redirect
()
->
back
()
->
withInput
()
->
withFlashDanger
(
$exception
->
getMessage
());
}
...
...
app/Http/Controllers/Api/V1/PagesController.php
View file @
aae971c8
...
...
@@ -31,7 +31,7 @@ class PagesController extends APIController
{
$limit
=
$request
->
get
(
'paginate'
)
?
$request
->
get
(
'paginate'
)
:
25
;
$orderBy
=
$request
->
get
(
'orderBy'
)
?
$request
->
get
(
'orderBy'
)
:
'ASC'
;
$sortBy
=
$request
->
get
(
'sortBy'
)
?
$request
->
get
(
'sortBy'
)
:
'created_at'
;
$sortBy
=
$request
->
get
(
'sortBy'
)
?
$request
->
get
(
'sortBy'
)
:
config
(
'module.pages.table'
,
'pages'
)
.
'created_at'
;
return
PagesResource
::
collection
(
$this
->
repository
->
getForDataTable
()
->
orderBy
(
$sortBy
,
$orderBy
)
->
paginate
(
$limit
)
...
...
app/Http/Controllers/Frontend/Auth/LoginController.php
View file @
aae971c8
...
...
@@ -21,7 +21,7 @@ class LoginController extends Controller
use
AuthenticatesUsers
;
/**
* @var
CMSPagesRepository
* @var
\App\Http\Utilities\PushNotification
*/
protected
$notification
;
...
...
@@ -74,7 +74,7 @@ class LoginController extends Controller
if
(
!
$user
->
isConfirmed
())
{
access
()
->
logout
();
throw
new
GeneralException
(
trans
(
'exceptions.frontend.auth.confirmation.resend'
,
[
'user_id'
=>
$user
->
id
]));
throw
new
GeneralException
(
trans
(
'exceptions.frontend.auth.confirmation.resend'
,
[
'user_id'
=>
$user
->
id
])
,
true
);
}
elseif
(
!
$user
->
isActive
())
{
access
()
->
logout
();
...
...
app/Http/Controllers/Frontend/Auth/ResetPasswordController.php
View file @
aae971c8
...
...
@@ -95,11 +95,12 @@ class ResetPasswordController extends Controller
/**
* Get the response for a successful password reset.
*
* @param \Illuminate\Http\Request $request
* @param string $response
*
* @return \Illuminate\Http\RedirectResponse
*/
protected
function
sendResetResponse
(
$response
)
protected
function
sendResetResponse
(
$re
quest
,
$re
sponse
)
{
return
redirect
()
->
route
(
homeRoute
())
->
withFlashSuccess
(
trans
(
$response
));
}
...
...
app/Listeners/Frontend/Auth/UserEventListener.php
View file @
aae971c8
...
...
@@ -34,21 +34,6 @@ class UserEventListener
\Log
::
info
(
'User Registered: '
.
$event
->
user
->
full_name
);
}
/**
* @param $event
*/
/*public function onRegistered($event)
{
\Log::info('User Registered: '.$event->user->first_name);
// Send email to the user
$options = [
'data' => $event->user,
'email_template_type' => 1,
];
createNotification('', 1, 2, $options);
}*/
/**
* @param $event
*/
...
...
app/Models/Access/User/Traits/Attribute/UserAttribute.php
View file @
aae971c8
...
...
@@ -147,23 +147,22 @@ trait UserAttribute
switch
(
$this
->
status
)
{
case
0
:
if
(
access
()
->
allow
(
'activate-user'
))
{
$name
=
$class
==
''
?
'Active'
:
''
;
$name
=
$class
==
''
?
'Activ
at
e'
:
''
;
return
'<a class="'
.
$class
.
'" href="'
.
route
(
'admin.access.user.mark'
,
[
$this
,
1
])
.
'"><i class="fa fa-check-square" data-toggle="tooltip" data-placement="top" title="'
.
trans
(
'buttons.backend.access.users.activate'
)
.
'"></i>'
.
$name
.
'</a>'
;
}
// No break
break
;
case
1
:
if
(
access
()
->
allow
(
'deactivate-user'
))
{
$name
=
(
$class
==
''
)
?
'Deactive'
:
''
;
$name
=
(
$class
==
''
)
?
'Deactiv
at
e'
:
''
;
return
'<a class="'
.
$class
.
'" href="'
.
route
(
'admin.access.user.mark'
,
[
$this
,
0
])
.
'"><i class="fa fa-square" data-toggle="tooltip" data-placement="top" title="'
.
trans
(
'buttons.backend.access.users.deactivate'
)
.
'"></i>'
.
$name
.
'</a>'
;
}
// No break
break
;
default
:
return
''
;
// No break
}
}
...
...
app/Notifications/Frontend/Auth/UserChangedPassword.php
0 → 100644
View file @
aae971c8
<?php
namespace
App\Notifications\Frontend\Auth
;
use
Illuminate\Bus\Queueable
;
use
Illuminate\Notifications\Messages\MailMessage
;
use
Illuminate\Notifications\Notification
;
/**
* Class UserChangedPassword.
*/
class
UserChangedPassword
extends
Notification
{
use
Queueable
;
/**
* @var
*/
protected
$password
;
/**
* UserChangedPassword constructor.
*
* @param $password
*/
public
function
__construct
(
$password
)
{
$this
->
password
=
$password
;
}
/**
* Get the notification's delivery channels.
*
* @param mixed $notifiable
*
* @return array
*/
public
function
via
(
$notifiable
)
{
return
[
'mail'
];
}
/**
* Get the mail representation of the notification.
*
* @param \App\Models\Access\User\User $user
*
* @return \Illuminate\Notifications\Messages\MailMessage
*/
public
function
toMail
(
$user
)
{
return
(
new
MailMessage
())
->
view
(
'emails.changed-password'
,
[
'password'
=>
$this
->
password
]);
}
}
app/Notifications/Frontend/Auth/UserNeedsConfirmation.php
View file @
aae971c8
...
...
@@ -52,6 +52,6 @@ class UserNeedsConfirmation extends Notification
$confirmation_url
=
route
(
'frontend.auth.account.confirm'
,
$user
->
confirmation_code
);
return
(
new
MailMessage
())
->
view
(
'emails.
template
'
,
[
'confirmation_url'
=>
$confirmation_url
]);
->
view
(
'emails.
user-confirmation
'
,
[
'confirmation_url'
=>
$confirmation_url
]);
}
}
app/Notifications/Frontend/Auth/UserNeedsPasswordReset.php
View file @
aae971c8
...
...
@@ -50,10 +50,9 @@ class UserNeedsPasswordReset extends Notification
*/
public
function
toMail
(
$notifiable
)
{
$reset_password_route
=
route
(
'frontend.auth.password.reset.form'
,
$this
->
token
);
return
(
new
MailMessage
())
->
subject
(
app_name
()
.
': '
.
trans
(
'strings.emails.auth.password_reset_subject'
))
->
line
(
trans
(
'strings.emails.auth.password_cause_of_email'
))
->
action
(
trans
(
'buttons.emails.auth.reset_password'
),
route
(
'frontend.auth.password.reset.form'
,
$this
->
token
))
->
line
(
trans
(
'strings.emails.auth.password_if_not_requested'
));
->
view
(
'emails.reset-password'
,
[
'reset_password_url'
=>
$reset_password_route
]);
}
}
app/Repositories/Frontend/Access/User/UserRepository.php
View file @
aae971c8
...
...
@@ -6,6 +6,7 @@ use App\Events\Frontend\Auth\UserConfirmed;
use
App\Exceptions\GeneralException
;
use
App\Models\Access\User\SocialLogin
;
use
App\Models\Access\User\User
;
use
App\Notifications\Frontend\Auth\UserChangedPassword
;
use
App\Notifications\Frontend\Auth\UserNeedsConfirmation
;
use
App\Repositories\Backend\Access\Role\RoleRepository
;
use
App\Repositories\BaseRepository
;
...
...
@@ -286,13 +287,7 @@ class UserRepository extends BaseRepository
$user
->
password
=
bcrypt
(
$input
[
'password'
]);
if
(
$user
->
save
())
{
$input
[
'email'
]
=
$user
->
email
;
// Send email to the user
$options
=
[
'data'
=>
$input
,
'email_template_type'
=>
4
,
];
createNotification
(
''
,
$user
->
id
,
2
,
$options
);
$user
->
notify
(
new
UserChangedPassword
(
$input
[
'password'
]));
return
true
;
}
...
...
package-lock.json
View file @
aae971c8
This diff is collapsed.
Click to expand it.
resources/assets/js/components/Flash.vue
View file @
aae971c8
...
...
@@ -6,7 +6,7 @@
<
script
>
export
default
{
props
:
[
"
message
"
,
"
typ
e
"
],
props
:
[
"
message
"
,
"
type
"
,
"
dontHid
e
"
],
data
()
{
return
{
...
...
@@ -17,9 +17,10 @@ export default {
},
created
()
{
var
context
=
this
;
const
context
=
this
;
if
(
this
.
message
&&
this
.
type
)
{
this
.
flash
(
this
.
message
,
this
.
typ
e
);
this
.
flash
(
this
.
message
,
this
.
type
,
this
.
dontHid
e
);
}
window
.
events
.
$on
(
"
flash
"
,
function
(
message
,
type
)
{
...
...
@@ -28,7 +29,7 @@ export default {
},
methods
:
{
flash
(
message
,
typ
e
)
{
flash
(
message
,
type
,
dontHide
=
fals
e
)
{
if
(
!
type
)
{
type
=
"
info
"
;
...
...
@@ -38,7 +39,9 @@ export default {
this
.
typeClass
=
"
alert alert-
"
+
type
;
this
.
show
=
true
;
if
(
!
dontHide
)
{
this
.
hide
();
}
},
hide
()
{
...
...
resources/views/emails/changed-password.blade.php
0 → 100644
View file @
aae971c8
@
extends
(
'emails.layouts.app'
)
@
section
(
'content'
)
<
div
class
="
content
">
<td align="
left
">
<table border="
0
" width="
80
%
" align="
center
" cellpadding="
0
" cellspacing="
0
" class="
container590
">
<tr>
<td align="
left
" style="
color
:
#888888; width:20px; font-size: 16px; line-height: 24px;">
<!--
section
text
======-->
<
p
style
=
"line-height: 24px; margin-bottom:15px;"
>
Hello
!
</
p
>
<
p
style
=
"line-height: 24px; margin-bottom:20px;"
>
Your
Password
has
successfully
been
changed
to
:
{{
$password
}}
</
p
>
<
p
style
=
"line-height: 24px; margin-bottom:20px;"
>
If
you
did
not
change
your
password
,
try
resetting
your
password
using
above
password
.
</
p
>
<
p
style
=
"line-height: 24px"
>
Regards
,
</
br
>
@
yield
(
'title'
,
app_name
())
</
p
>
<
br
/>
@
include
(
'emails.layouts.footer'
)
</
td
>
</
tr
>
</
table
>
</
td
>
</
div
>
@
endsection
\ No newline at end of file
resources/views/emails/
template
.blade.php
→
resources/views/emails/
layouts/app
.blade.php
100755 → 100644
View file @
aae971c8
...
...
@@ -5,7 +5,7 @@
<meta
http-equiv=
"Content-Type"
content=
"text/html; charset=UTF-8"
/>
<meta
name=
"viewport"
content=
"width=device-width; initial-scale=1.0; maximum-scale=1.0;"
/>
<meta
name=
"viewport"
content=
"width=600,initial-scale = 2.3,user-scalable=no"
>
<!--
[if !mso]><!--
-->
<!--
<![if !mso]
-->
<link
href=
"https://fonts.googleapis.com/css?family=Fira+Sans|Fira+Sans+Condensed|Raleway"
rel=
"stylesheet"
>
<!--<![endif]-->
...
...
@@ -53,6 +53,7 @@
font-size
:
14px
;
border
:
0
;
padding
:
10px
;
width
:
100%
;
}
.lap
{
...
...
@@ -67,9 +68,30 @@
margin-right
:
25px
;
}
.content
{
.main-header
{
color
:
#343434
;
font-size
:
24px
;
font-weight
:
300
;
line-height
:
35px
;
}
.main-header
.brand
{
letter-spacing
:
5px
;
font-size
:
28px
;
}
.main-header
.tagline
{
font-size
:
16px
;
}
.small
{
font-size
:
10px
;
}
.center
{
text-align
:
center
;
}
/* ----------- responsivity ----------- */
@media
only
screen
and
(
max-width
:
640px
)
{
...
...
@@ -133,8 +155,6 @@
}
</style>
</head>
<body
class=
"respond"
leftmargin=
"0"
topmargin=
"0"
marginwidth=
"0"
marginheight=
"0"
>
<div
class=
"container"
>
...
...
@@ -143,26 +163,19 @@
<td
align=
"center"
>
<table
border=
"0"
align=
"center"
width=
"590"
cellpadding=
"0"
cellspacing=
"0"
class=
"container590"
>
<tr>
<td
align=
"center"
style=
"color: #343434; font-size: 24px; font-family: Quicksand, Calibri, sans-serif; font-weight:700;letter-spacing: 3px; line-height: 35px;"
<td
align=
"center"
>
<table
border=
"0"
width=
"40"
align=
"center"
cellpadding=
"0"
cellspacing=
"0"
bgcolor=
"eeeeee"
>
<tr>
<td
align=
"center"
style=
""
class=
"main-header"
>
<!-- section text ======-->
<div
class=
"brand"
>
{{ env('APP_SHORT_NAME', 'LAP') }}
</div>
<div
style=
"line-height: 35px
"
>
<div
class=
"tagline
"
>
{{ app_name() }}
</div>
</td>
</tr>
<tr>
<td
height=
"10"
style=
"font-size: 10px; line-height: 10px;"
>
</td>
</tr>
<tr>
<td
align=
"center"
>
<table
border=
"0"
width=
"40"
align=
"center"
cellpadding=
"0"
cellspacing=
"0"
bgcolor=
"eeeeee"
>
<tr>
<td
height=
"2"
style=
"font-size: 2px; line-height: 2px;"
>
</td>
</tr>
</table>
</td>
</tr>
...
...
@@ -172,72 +185,7 @@
</tr>
<tr>
<div
class=
"content"
>
<td
align=
"left"
>
<table
border=
"0"
width=
"80%"
align=
"center"
cellpadding=
"0"
cellspacing=
"0"
class=
"container590"
>
<tr>
<td
align=
"left"
style=
"color: #888888; width:20px; font-size: 16px; font-family: 'Work Sans', Calibri, sans-serif; line-height: 24px;"
>
<!-- section text ======-->
<p
style=
"line-height: 24px; margin-bottom:15px;"
>
Hello!
</p>
<p
style=
"line-height: 24px; margin-bottom:20px;"
>
Click here to confirm your account:
</p>
<table
border=
"0"
align=
"center"
width=
"180"
cellpadding=
"0"
cellspacing=
"0"
bgcolor=
"5caad2"
style=
"margin-bottom:20px;"
>
<tr>
<td
height=
"10"
style=
"font-size: 10px; line-height: 10px;"
>
</td>
</tr>
<tr>
<td
align=
"center"
style=
"color: #ffffff; font-size: 14px; font-family: 'Work Sans', Calibri, sans-serif; line-height: 22px; letter-spacing: 2px;"
>
<!-- main section button -->
<div
style=
"line-height: 22px;"
>
<a
href=
"{{ $confirmation_url }}"
style=
"color: #ffffff; text-decoration: none;"
>
Confirm Account
</a>
</div>
</td>
</tr>
<tr>
<td
height=
"10"
style=
"font-size: 10px; line-height: 10px;"
>
</td>
</tr>
</table>
<p
style=
"line-height: 24px; margin-bottom:20px;"
>
Thank you for using our application!
</p>
<p
style=
"line-height: 24px"
>
Regards,
</br>
@yield('title', app_name())
</p>
<br><br>
<p
style=
"line-height: 24px; margin-bottom:20px;"
>
If you’re having trouble clicking the "Confirm Account" button, copy and paste the URL below into your web browser:
</p>
<p
style=
"line-height: 24px; margin-bottom:20px;"
>
<a
href=
"{{ $confirmation_url }}"
target=
"_blank"
class=
"lap"
>
{{ $confirmation_url}}
</a>
</p>
<p
style=
"line-height: 24px; margin-bottom: 20px;"
>
©2018
<a
href=
""
target=
"_blank"
class=
"lap"
>
@yield('title', app_name())
</a>
All Rights are Reserved.
</p>
</td>
</tr>
</table>
</td>
</div>
@yield('content')
</tr>
</table>
</td>
...
...
resources/views/emails/layouts/footer.blade.php
0 → 100644
View file @
aae971c8
<p
class=
"small center"
style=
"line-height: 24px; margin-bottom: 20px;"
>
©2018
<a
href=
"{{ url('/') }}"
target=
"_blank"
class=
"lap"
>
@yield('title', app_name())
</a>
All Rights are Reserved.
</p>
\ No newline at end of file
resources/views/emails/reset-password.blade.php
0 → 100644
View file @
aae971c8
@
extends
(
'emails.layouts.app'
)
@
section
(
'content'
)
<
div
class
="
content
">
<td align="
left
">
<table border="
0
" width="
80
%
" align="
center
" cellpadding="
0
" cellspacing="
0
" class="
container590
">
<tr>
<td align="
left
" style="
color
:
#888888; width:20px; font-size: 16px; line-height: 24px;">
<!--
section
text
======-->
<
p
style
=
"line-height: 24px; margin-bottom:15px;"
>
Hello
!
</
p
>
<
p
style
=
"line-height: 24px; margin-bottom:20px;"
>
You
are
receiving
this
email
because
we
received
a
password
reset
request
for
your
account
.
</
p
>
<
table
border
=
"0"
align
=
"center"
width
=
"180"
cellpadding
=
"0"
cellspacing
=
"0"
bgcolor
=
"5caad2"
style
=
"margin-bottom:20px; background: #003bd7; border-radius: 5px;"
>
<
tr
>
<
td
height
=
"10"
style
=
"font-size: 10px; line-height: 10px;"
>&
nbsp
;
</
td
>
</
tr
>
<
tr
>
<
td
align
=
"center"
style
=
"color: #ffffff; font-size: 14px; line-height: 22px;letter-spacing: 1px;font-weight: bold;"
>
<!--
main
section
button
-->
<
div
style
=
"line-height: 22px;"
>
<
a
href
=
"{{
$reset_password_url
}}"
style
=
"color: #ffffff; text-decoration: none;"
>
Reset
Password
</
a
>
</
div
>
</
td
>
</
tr
>
<
tr
>
<
td
height
=
"10"
style
=
"font-size: 10px; line-height: 10px;"
>&
nbsp
;
</
td
>
</
tr
>
</
table
>
<
p
style
=
"line-height: 24px; margin-bottom:20px;"
>
If
you
did
not
request
a
password
reset
,
no
further
action
is
required
.
</
p
>
<
p
style
=
"line-height: 24px"
>
Regards
,
</
br
>
@
yield
(
'title'
,
app_name
())
</
p
>
<
br
/>
<
p
class
="
small
" style="
line
-
height
:
24
px
;
margin
-
bottom
:
20
px
;
">
If you’re having trouble clicking the "
Reset
Password
" button, copy and paste the URL below into your web browser:
</p>
<p class="
small
" style="
line
-
height
:
24
px
;
margin
-
bottom
:
20
px
;
">
<a href="
{{
$reset_password_url
}}
" target="
_blank
" class="
lap
">
{{
$reset_password_url
}}
</a>
</p>
@include('emails.layouts.footer')
</td>
</tr>
</table>
</td>
</div>
@endsection
\ No newline at end of file
resources/views/emails/user-confirmation.blade.php
0 → 100644
View file @
aae971c8
@
extends
(
'emails.layouts.app'
)
@
section
(
'content'
)
<
div
class
="
content
">
<td align="
left
">
<table border="
0
" width="
80
%
" align="
center
" cellpadding="
0
" cellspacing="
0
" class="
container590
">
<tr>
<td align="
left
" style="
color
:
#888888; width:20px; font-size: 16px; line-height: 24px;">
<!--
section
text
======-->
<
p
style
=
"line-height: 24px; margin-bottom:15px;"
>
Hello
!
</
p
>
<
p
style
=
"line-height: 24px; margin-bottom:20px;"
>
Click
here
to
confirm
your
account
:
</
p
>
<
table
border
=
"0"
align
=
"center"
width
=
"180"
cellpadding
=
"0"
cellspacing
=
"0"
bgcolor
=
"5caad2"
style
=
"margin-bottom:20px; background: #003bd7; border-radius: 5px;"
>
<
tr
>
<
td
height
=
"10"
style
=
"font-size: 10px; line-height: 10px;"
>&
nbsp
;
</
td
>
</
tr
>
<
tr
>
<
td
align
=
"center"
style
=
"color: #ffffff; font-size: 14px; line-height: 22px;letter-spacing: 1px;font-weight: bold;"
>
<!--
main
section
button
-->
<
div
style
=
"line-height: 22px;"
>
<
a
href
=
"{{
$confirmation_url
}}"
style
=
"color: #ffffff; text-decoration: none;"
>
Confirm
Account
</
a
>
</
div
>
</
td
>
</
tr
>
<
tr
>
<
td
height
=
"10"
style
=
"font-size: 10px; line-height: 10px;"
>&
nbsp
;
</
td
>
</
tr
>
</
table
>
<
p
style
=
"line-height: 24px; margin-bottom:20px;"
>
Thank
you
for
using
our
application
!
</
p
>
<
p
style
=
"line-height: 24px"
>
Regards
,
</
br
>
@
yield
(
'title'
,
app_name
())
</
p
>
<
br
/>
<
p
class
="
small
" style="
line
-
height
:
24
px
;
margin
-
bottom
:
20
px
;
">
If you’re having trouble clicking the "
Confirm
Account
" button, copy and paste the URL below into your web browser:
</p>
<p class="
small
" style="
line
-
height
:
24
px
;
margin
-
bottom
:
20
px
;
">
<a href="
{{
$confirmation_url
}}
" target="
_blank
" class="
lap
">
{{
$confirmation_url
}}
</a>
</p>
@include('emails.layouts.footer')
</td>
</tr>
</table>
</td>
</div>
@endsection
\ No newline at end of file
resources/views/includes/partials/messages.blade.php
View file @
aae971c8
@
php
$message
=
''
;
$type
=
''
;
@
endphp
$dontHide
=
false
;
if
(
session
()
->
has
(
'dontHide'
))
{
$dontHide
=
session
()
->
get
(
'dontHide'
);
}
@
endphp
@
if
(
$errors
->
any
())
@
php
$type
=
'danger'
;
...
...
@@ -80,4 +84,4 @@
@
endif
<!--
Flash
Message
Vue
component
-->
<
flash
message
=
"{!!
$message
!!}"
type
=
"{{
$type
}}"
></
flash
>
\ No newline at end of file
<
flash
message
=
"{!!
$message
!!}"
type
=
"{{
$type
}}"
dont
-
hide
=
"{{
$dontHide
}}"
></
flash
>
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment