Password Reset work

This commit is contained in:
Deon George
2020-01-22 21:05:31 +11:00
parent b42f9990b5
commit 436c3d6787
10 changed files with 72 additions and 62 deletions

View File

@@ -1,19 +1,19 @@
@component('mail::message',['site_name'=>$site_name,'logo'=>$logo])
# Password Reset
@component('mail::message',['site'=>$site,'heading'=>'Password Reset'])
Hi {{ isset($user) ? $user->name.',' : '' }}
You are receiving this email because we received a password reset request for your account.
If you did not request a password reset, no further action is required.
To reset your password, please follow this link, or click on the URL below:
@component('mail::button', ['url' => $reset_link])
@component('mail::panel',['url'=>$reset_link])
Reset Password
@endcomponent
@component('mail::panel')
@component('mail::subcopy')
Reset password: {{ $reset_link }}
@endcomponent
Thanks,<br>
{{ $site_name }}
@endcomponent
{{ config('mail.from.name') }}
@endcomponent

View File

@@ -1,6 +1,6 @@
<div class="header">
<div class="fixedw">
<img src="{{ $logo }}"><br>
<img src="{{ url($site->email_logo) }}"><br>
<div class="subject">{{ $slot }}</div>
</div>
</div>

View File

@@ -1,7 +1,7 @@
@component('mail::layout')
{{-- Header --}}
@slot('header')
@component('mail::header', ['url' => config('app.url'),'logo'=>url($site->email_logo)])
@component('mail::header',['site'=>$site])
{{ $heading }}
@endcomponent
@endslot

View File

@@ -1,5 +1,9 @@
<div style="margin: auto; text-align: center; padding-bottom: 20px;">
<div class="panel">
{{ $slot }}
@isset($url)
<a href="{{ $url }}">{{ $slot }}</a>
@else
{{ $slot }}
@endisset
</div>
</div>

View File

@@ -41,8 +41,9 @@ body{
border-radius: 10px;
padding: 10px;
font-weight: 300;
margin-top: 20px;
margin-top: 10px;
font-size: 0.8em;
margin-bottom: 10px;
}
.main-body{
background: #ffffff;
@@ -74,13 +75,16 @@ body{
font-weight: 300;
font-style: normal;
}
/* -- TO VALIDATE -- */
a{
.panel a{
text-decoration: underline;
color: #1cbbb4
color: #f4f4f4;
}
.panel a:hover{
text-decoration: none;
color: #ffffff;
}
a:hover{text-decoration: none;}
/* -- TO VALIDATE -- */
h1{
font-weight: 300;
color: #121212;