Commit 59060cac by fezrul

auth files

parent 7e51e78b
<?php
return [
'layout' => 'ui::layouts.auth',
'captcha' => false,
'identifier' => 'email',
'registration' => [
'enable' => true,
'status' => 'ACTIVE'
],
'activation' => [
'enable' => false,
'status_before' => 'PENDING',
'status_after' => 'ACTIVE',
],
'router' => [
'middleware' => ['web'],
'prefix' => 'auth',
],
'redirect' => [
'after_login' => '/home',
'after_reset_password' => '/',
],
];
@lang('auth::auth.click_to_activate', ['link' => route('auth::activate', $token)])
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<style type="text/css" rel="stylesheet" media="all">
/* Base ------------------------------ */
*:not(br):not(tr):not(html) {
font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif;
-webkit-box-sizing: border-box;
box-sizing: border-box;
}
body {
width: 100% !important;
height: 100%;
margin: 0;
line-height: 1.4;
background-color: #F2F4F6;
color: #74787E;
-webkit-text-size-adjust: none;
}
a {
color: #3869D4;
}
/* Layout ------------------------------ */
.email-wrapper {
width: 100%;
margin: 0;
padding: 0;
background-color: #F2F4F6;
}
.email-content {
width: 100%;
margin: 0;
padding: 0;
}
/* Masthead ----------------------- */
.email-masthead {
padding: 25px 0;
text-align: center;
}
.email-masthead_logo {
max-width: 400px;
border: 0;
}
.email-masthead_name {
font-size: 16px;
font-weight: bold;
color: #2F3133;
text-decoration: none;
text-shadow: 0 1px 0 white;
}
.email-logo {
max-height: 50px;
}
/* Body ------------------------------ */
.email-body {
width: 100%;
margin: 0;
padding: 0;
border-top: 1px solid #EDEFF2;
border-bottom: 1px solid #EDEFF2;
background-color: #FFF;
}
.email-body_inner {
width: 570px;
margin: 0 auto;
padding: 0;
}
.email-footer {
width: 570px;
margin: 0 auto;
padding: 0;
text-align: center;
}
.email-footer p {
color: #AEAEAE;
}
.body-action {
width: 100%;
margin: 30px auto;
padding: 0;
text-align: center;
}
.body-sub {
margin-top: 25px;
padding-top: 25px;
border-top: 1px solid #EDEFF2;
}
.content-cell {
padding: 35px;
}
.align-right {
text-align: right;
}
/* Type ------------------------------ */
h1 {
margin-top: 0;
color: #2F3133;
font-size: 19px;
font-weight: bold;
text-align: left;
}
h2 {
margin-top: 0;
color: #2F3133;
font-size: 16px;
font-weight: bold;
text-align: left;
}
h3 {
margin-top: 0;
color: #2F3133;
font-size: 14px;
font-weight: bold;
text-align: left;
}
p {
margin-top: 0;
color: #74787E;
font-size: 16px;
line-height: 1.5em;
}
p.sub {
font-size: 12px;
}
p.center {
text-align: center;
}
/* Data table ------------------------------ */
.data-wrapper {
width: 100%;
margin: 0;
padding: 35px 0;
}
.data-table {
width: 100%;
margin: 0;
}
.data-table th {
text-align: left;
padding: 0px 5px;
padding-bottom: 8px;
border-bottom: 1px solid #EDEFF2;
}
.data-table th p {
margin: 0;
color: #9BA2AB;
font-size: 12px;
}
.data-table td {
padding: 10px 5px;
color: #74787E;
font-size: 15px;
line-height: 18px;
}
/* Buttons ------------------------------ */
.button {
display: inline-block;
width: 200px;
background-color: #3869D4;
border-radius: 3px;
color: #ffffff;
font-size: 15px;
line-height: 45px;
text-align: center;
text-decoration: none;
-webkit-text-size-adjust: none;
mso-hide: all;
}
.button--green {
background-color: #22BC66;
}
.button--red {
background-color: #dc4d2f;
}
.button--blue {
background-color: #3869D4;
}
/*Media Queries ------------------------------ */
@media only screen and (max-width: 600px) {
.email-body_inner,
.email-footer {
width: 100% !important;
}
}
@media only screen and (max-width: 500px) {
.button {
width: 100% !important;
}
}
</style>
</head>
<body>
<table class="email-wrapper" width="100%" cellpadding="0" cellspacing="0">
<tr>
<td align="center">
<table class="email-content" width="100%" cellpadding="0" cellspacing="0">
<!-- Logo -->
<tr>
<td class="email-masthead">
<a class="email-masthead_name" href="{{ url('/') }}" target="_blank">
@if (isset($logoUrl))
<img src="{{ $logoUrl }}" class="email-logo" />
@else
{{ $application }}
@endif
</a>
</td>
</tr>
<!-- Email Body -->
<tr>
<td class="email-body" width="100%">
<table class="email-body_inner" align="center" width="570" cellpadding="0" cellspacing="0">
<tr>
<td class="content-cell">
<!-- Greeting -->
<h1>
@if ($level == 'error')
Whoops!
@else
Hello!
@endif
</h1>
<!-- Intro -->
@foreach ($introLines as $line)
<p>
{{ $line }}
</p>
@endforeach
<!-- Action Button -->
@if (isset($actionText))
<table class="body-action" align="center" width="100%" cellpadding="0" cellspacing="0">
<tr>
<td align="center">
<div>
<a href="{{ $actionUrl }}" class="button button--{{ $actionColor }}" target="_blank">
{{ $actionText }}
</a>
</div>
</td>
</tr>
</table>
@endif
<!-- Outro -->
@foreach ($outroLines as $line)
<p>
{{ $line }}
</p>
@endforeach
<!-- Salutation -->
<p>
Salam,<br>{{ $application }}
</p>
<!-- Sub Copy -->
@if (isset($actionText))
<table class="body-sub">
<tr>
<td>
<p class="sub">
If you’re having trouble clicking the "{{ $actionText }}" button,
copy and paste the URL below into your web browser:
</p>
<p class="sub">
<a href="{{ $actionUrl }}" target="_blank">
{{ $actionUrl }}
</a>
</p>
</td>
</tr>
</table>
@endif
</td>
</tr>
</table>
</td>
</tr>
<!-- Footer -->
<tr>
<td>
<table class="email-footer" align="center" width="570" cellpadding="0" cellspacing="0">
<tr>
<td class="content-cell">
<p class="sub center">
&copy; {{ date('Y') }}
<a href="{{ url('/') }}" target="_blank">{{ $application }}</a>.
All rights reserved.
</p>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</body>
</html>
@if (count($errors) > 0)
<div class="ui error message">
<div class="ui container">
<ul class="list">
@foreach ($errors->all() as $error)
<li>{{ $error }}</li>
@endforeach
</ul>
</div>
</div>
@endif
@extends(config('laravolt.auth.layout'))
@section('content')
@if (session('status'))
<?php flash()->success(session('status')); ?>
@endif
<form class="ui form" method="POST" action="{{ route('auth::forgot') }}">
<input type="hidden" name="_token" value="{{ csrf_token() }}">
<div class="ui field left icon input fluid">
<input type="email" name="email" placeholder="@lang('auth::auth.email')" value="{{ old('email') }}">
<i class="mail icon"></i>
</div>
<button type="submit" class="ui fluid button primary">@lang('auth::auth.send_reset_password_link')</button>
</form>
@if(config('laravolt.auth.registration.enable'))
<div class="ui divider hidden section"></div>
@lang('auth::auth.not_registered_yet?') <a href="{{ route('auth::register') }}">@lang('auth::auth.register_here')</a>
@endif
@endsection
@extends(config('laravolt.auth.layout'))
@section('content')
@if (session('success'))
<div class="ui success message">
<p>{{ session('success') }}</p>
</div>
@endif
<form class="ui form" method="POST" action="{{ route('auth::login') }}">
<input type="hidden" name="_token" value="{{ csrf_token() }}">
<div class="ui field left icon input fluid">
<input type="text" name="{{ config('laravolt.auth.identifier') }}" placeholder="@lang('auth::auth.identifier')" value="{{ old('email') }}">
<i class="mail icon"></i>
</div>
<div class="ui field left icon input fluid">
<input type="password" name="password" placeholder="@lang('auth::auth.password')">
<i class="lock icon"></i>
</div>
@if(config('laravolt.auth.captcha'))
<div class="field">
{!! app('captcha')->display() !!}
</div>
@endif
<div class="ui field">
<button type="submit" class="ui fluid button primary">@lang('auth::auth.login')</button>
</div>
<div class="ui equal width grid field">
<div class="column left aligned">
<div class="ui checkbox">
<input type="checkbox" name="remember" {{ request()->old('remember')?'checked':'' }}>
<label>@lang('auth::auth.remember')</label>
</div>
</div>
<div class="column right aligned">
<a href="{{ route('auth::forgot') }}">@lang('auth::auth.forgot_password')</a>
</div>
</div>
</form>
@if(config('laravolt.auth.registration.enable'))
<div class="ui divider hidden section"></div>
@lang('auth::auth.not_registered_yet?')
<a href="{{ route('auth::register') }}">@lang('auth::auth.register_here')</a>
@endif
@endsection
@extends(config('laravolt.auth.layout'))
@section('content')
<form class="ui form" method="POST" action="{{ route('auth::register') }}">
<input type="hidden" name="_token" value="{{ csrf_token() }}">
<div class="ui field left icon input fluid">
<input type="text" name="name" placeholder="@lang('auth::auth.name')" value="{{ old('name') }}">
<i class="user icon"></i>
</div>
<div class="ui field left icon input fluid">
<input type="email" name="email" placeholder="@lang('auth::auth.identifier')" value="{{ old('email') }}">
<i class="mail icon"></i>
</div>
<div class="ui field left icon input fluid">
<input type="password" name="password" placeholder="@lang('auth::auth.password')">
<i class="lock icon"></i>
</div>
<button type="submit" class="ui button fluid primary">@lang('auth::auth.register')</button>
</form>
<div class="ui divider hidden section"></div>
@lang('auth::auth.already_registered?') <a href="{{ route('auth::login') }}">@lang('auth::auth.login_here')</a>
@endsection
@extends(config('laravolt.auth.layout'))
@section('content')
@if (session('status'))
<?php flash()->success(session('status')); ?>
@endif
<form class="ui form" method="POST" action="{{ route('auth::reset', $token) }}">
<input type="hidden" name="_token" value="{{ csrf_token() }}">
<input type="hidden" name="token" value="{{ $token }}">
<div class="ui field fluid">
<input type="email" name="email" placeholder="@lang('auth::auth.email')" value="{{ old('email', $email) }}">
</div>
<div class="ui field fluid">
<input type="password" name="password" placeholder="@lang('auth::auth.password_new')">
</div>
<div class="ui field fluid">
<input type="password" name="password_confirmation" placeholder="@lang('auth::auth.password_confirm')">
</div>
<button type="submit" class="ui fluid button primary">@lang('auth::auth.reset_password')</button>
</form>
<div class="ui divider hidden section"></div>
@lang('auth::auth.already_registered?') <a href="{{ route('auth::login') }}">@lang('auth::auth.login_here')</a>
@endsection
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment