[WIP] Refactor project
This commit is contained in:
20
resources/views/vendor/boilerplate/auth/firstlogin.blade.php
vendored
Normal file
20
resources/views/vendor/boilerplate/auth/firstlogin.blade.php
vendored
Normal file
@@ -0,0 +1,20 @@
|
||||
@extends('boilerplate::auth.layout', [
|
||||
'title' => __('boilerplate::auth.firstlogin.title'),
|
||||
'bodyClass' => 'hold-transition login-page'
|
||||
])
|
||||
|
||||
@section('content')
|
||||
@component('boilerplate::auth.loginbox')
|
||||
{{ Form::open(['route' => 'boilerplate.users.firstlogin', 'autocomplete' => 'off']) }}
|
||||
<input type="hidden" name="token" value="{{ $token }}">
|
||||
<div class="alert alert-info">
|
||||
@lang('boilerplate::auth.firstlogin.intro')
|
||||
</div>
|
||||
@component('boilerplate::input', ['name' => 'password', 'placeholder' => 'boilerplate::auth.fields.password', 'append-text' => 'fas fa-lock', 'type' => 'password', 'autofocus' => true])@endcomponent
|
||||
@component('boilerplate::input', ['name' => 'password_confirmation', 'placeholder' => 'boilerplate::auth.fields.password_confirm', 'append-text' => 'fas fa-lock', 'type' => 'password'])@endcomponent
|
||||
<div class="form-group text-center">
|
||||
<button type="submit" class="btn btn-primary">@lang('boilerplate::auth.firstlogin.button')</button>
|
||||
</div>
|
||||
</form>
|
||||
@endcomponent
|
||||
@endsection
|
||||
18
resources/views/vendor/boilerplate/auth/layout.blade.php
vendored
Normal file
18
resources/views/vendor/boilerplate/auth/layout.blade.php
vendored
Normal file
@@ -0,0 +1,18 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="{{ App::getLocale() }}" dir="@lang('boilerplate::layout.direction')">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<meta name="robots" content="noindex, nofollow">
|
||||
<meta name="csrf-token" content="{{ csrf_token() }}">
|
||||
<title>{{ $title }} | {{ config('app.name') }}</title>
|
||||
<link rel="stylesheet" href="{{ mix('/plugins/fontawesome/fontawesome.min.css', '/assets/vendor/boilerplate') }}">
|
||||
<link rel="stylesheet" href="{{ mix('/adminlte.min.css', '/assets/vendor/boilerplate') }}">
|
||||
<link rel="preconnect" href="https://fonts.gstatic.com">
|
||||
<link href="https://fonts.googleapis.com/css2?family=Source+Sans+Pro:ital,wght@0,300;0,400;0,700;1,400&display=swap" rel="stylesheet">
|
||||
</head>
|
||||
<body class="hold-transition {{ $bodyClass ?? 'login-page'}}">
|
||||
@yield('content')
|
||||
</body>
|
||||
</html>
|
||||
26
resources/views/vendor/boilerplate/auth/login.blade.php
vendored
Normal file
26
resources/views/vendor/boilerplate/auth/login.blade.php
vendored
Normal file
@@ -0,0 +1,26 @@
|
||||
@extends('boilerplate::auth.layout', [
|
||||
'title' => __('boilerplate::auth.login.title'),
|
||||
'bodyClass' => 'hold-transition login-page'
|
||||
])
|
||||
|
||||
@section('content')
|
||||
@component('boilerplate::auth.loginbox')
|
||||
<p class="login-box-msg text-sm">@lang('boilerplate::auth.login.intro')</p>
|
||||
{!! Form::open(['route' => 'boilerplate.login', 'method' => 'post', 'autocomplete'=> 'off']) !!}
|
||||
@component('boilerplate::input', ['name' => 'email', 'placeholder' => 'boilerplate::auth.fields.email', 'append-text' => 'fas fa-envelope', 'type' => 'email'])@endcomponent
|
||||
@component('boilerplate::input', ['name' => 'password', 'placeholder' => 'boilerplate::auth.fields.password', 'append-text' => 'fas fa-lock', 'type' => 'password'])@endcomponent
|
||||
<div class="d-flex flex-wrap align-items-center justify-content-between">
|
||||
@component('boilerplate::icheck', ['name' => 'remember', 'checked' => old('remember') == 'on', 'label' => 'boilerplate::auth.login.rememberme', 'class' => 'text-sm'])@endcomponent
|
||||
<button type="submit" class="btn btn-primary mb-3">@lang('boilerplate::auth.login.signin')</button>
|
||||
</div>
|
||||
{!! Form::close() !!}
|
||||
<p class="mb-1 text-sm">
|
||||
<a href="{{ route('boilerplate.password.request') }}">@lang('boilerplate::auth.login.forgotpassword')</a><br>
|
||||
</p>
|
||||
@if(config('boilerplate.auth.register'))
|
||||
<p class="mb-0 text-sm">
|
||||
<a href="{{ route('boilerplate.register') }}" class="text-center">@lang('boilerplate::auth.login.register')</a>
|
||||
</p>
|
||||
@endif
|
||||
@endcomponent
|
||||
@endsection
|
||||
12
resources/views/vendor/boilerplate/auth/loginbox.blade.php
vendored
Normal file
12
resources/views/vendor/boilerplate/auth/loginbox.blade.php
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
<div class="login-box">
|
||||
<div class="login-logo">
|
||||
{!! config('boilerplate.theme.sidebar.brand.logo.icon') ?? '' !!}
|
||||
{!! config('boilerplate.theme.sidebar.brand.logo.text') ?? $title ?? '' !!}
|
||||
</div>
|
||||
|
||||
<div class="card">
|
||||
<div class="card-body login-card-body">
|
||||
{{ $slot }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
32
resources/views/vendor/boilerplate/auth/passwords/email.blade.php
vendored
Normal file
32
resources/views/vendor/boilerplate/auth/passwords/email.blade.php
vendored
Normal file
@@ -0,0 +1,32 @@
|
||||
@extends('boilerplate::auth.layout', ['title' => __('boilerplate::auth.password.title'), 'bodyClass' => 'hold-transition login-page'])
|
||||
|
||||
@section('content')
|
||||
@component('boilerplate::auth.loginbox')
|
||||
<p class="login-box-msg text-sm">@lang('boilerplate::auth.password.intro')</p>
|
||||
@if (session('status'))
|
||||
<div class="alert alert-success d-flex align-items-center">
|
||||
<span class="far fa-check-circle fa-3x mr-3"></span>
|
||||
{{ session('status') }}
|
||||
</div>
|
||||
@else
|
||||
{!! Form::open(['route' => 'boilerplate.password.email', 'method' => 'post', 'autocomplete'=> 'off']) !!}
|
||||
@component('boilerplate::input', ['name' => 'email', 'placeholder' => 'boilerplate::auth.fields.email', 'append-text' => 'fas fa-envelope', 'type' => 'email', 'autofocus' => true])@endcomponent
|
||||
<div class="form-group">
|
||||
<div class="row">
|
||||
<div class="col-12 text-right">
|
||||
<button type="submit" class="btn btn-primary">@lang('boilerplate::auth.password.submit')</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{!! Form::close() !!}
|
||||
@endif
|
||||
<p class="mb-0 text-sm">
|
||||
<a href="{{ route('boilerplate.login') }}">@lang('boilerplate::auth.password.login_link')</a>
|
||||
</p>
|
||||
@if(config('boilerplate.auth.register'))
|
||||
<p class="mb-0 text-sm">
|
||||
<a href="{{ route('boilerplate.register') }}" class="text-center">@lang('boilerplate::auth.login.register')</a>
|
||||
</p>
|
||||
@endif
|
||||
@endcomponent
|
||||
@endsection
|
||||
18
resources/views/vendor/boilerplate/auth/passwords/reset.blade.php
vendored
Normal file
18
resources/views/vendor/boilerplate/auth/passwords/reset.blade.php
vendored
Normal file
@@ -0,0 +1,18 @@
|
||||
@extends('boilerplate::auth.layout', ['title' => __('boilerplate::auth.password_reset.title')])
|
||||
|
||||
@section('content')
|
||||
@component('boilerplate::auth.loginbox')
|
||||
<p class="login-box-msg text-sm">@lang('boilerplate::auth.password_reset.intro')</p>
|
||||
{!! Form::open(['route' => 'boilerplate.password.reset.post', 'method' => 'post', 'autocomplete'=> 'off']) !!}
|
||||
{!! Form::hidden('token', $token) !!}
|
||||
@component('boilerplate::input', ['name' => 'email', 'placeholder' => 'boilerplate::auth.fields.email', 'append-text' => 'fas fa-envelope', 'type' => 'email', 'value' => $email, 'autofocus' => true])@endcomponent
|
||||
@component('boilerplate::input', ['name' => 'password', 'placeholder' => 'boilerplate::auth.fields.password', 'append-text' => 'fas fa-lock', 'type' => 'password'])@endcomponent
|
||||
@component('boilerplate::input', ['name' => 'password_confirmation', 'placeholder' => 'boilerplate::auth.fields.password_confirm', 'append-text' => 'fas fa-lock', 'type' => 'password'])@endcomponent
|
||||
<div class="row">
|
||||
<div class="col-12 text-center">
|
||||
<button class="btn btn-primary" type="submit">@lang('boilerplate::auth.password_reset.submit')</button>
|
||||
</div>
|
||||
</div>
|
||||
{!! Form::close() !!}
|
||||
@endcomponent
|
||||
@endsection
|
||||
26
resources/views/vendor/boilerplate/auth/register.blade.php
vendored
Normal file
26
resources/views/vendor/boilerplate/auth/register.blade.php
vendored
Normal file
@@ -0,0 +1,26 @@
|
||||
@extends('boilerplate::auth.layout', ['title' => __('boilerplate::auth.register.title'), 'bodyClass' => 'hold-transition login-page'])
|
||||
|
||||
@section('content')
|
||||
@component('boilerplate::auth.loginbox')
|
||||
<p class="login-box-msg text-sm">@lang('boilerplate::auth.register.intro')</p>
|
||||
{!! Form::open(['route' => 'boilerplate.register', 'method' => 'post', 'autocomplete'=> 'off']) !!}
|
||||
@component('boilerplate::input', ['name' => 'first_name', 'placeholder' => 'boilerplate::auth.fields.first_name', 'append-text' => 'fas fa-user', 'autofocus' => true])@endcomponent
|
||||
@component('boilerplate::input', ['name' => 'last_name', 'placeholder' => 'boilerplate::auth.fields.last_name', 'append-text' => 'fas fa-user'])@endcomponent
|
||||
@component('boilerplate::input', ['name' => 'email', 'placeholder' => 'boilerplate::auth.fields.email', 'append-text' => 'fas fa-envelope', 'type' => 'email'])@endcomponent
|
||||
@component('boilerplate::input', ['name' => 'password', 'placeholder' => 'boilerplate::auth.fields.password', 'append-text' => 'fas fa-lock', 'type' => 'password'])@endcomponent
|
||||
@component('boilerplate::input', ['name' => 'password_confirmation', 'placeholder' => 'boilerplate::auth.fields.password_confirm', 'append-text' => 'fas fa-lock', 'type' => 'password'])@endcomponent
|
||||
<div class="mb-3">
|
||||
<div class="col-12 text-right">
|
||||
<button type="submit" class="btn btn-primary">
|
||||
@lang('boilerplate::auth.register.register_button')
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
{!! Form::close() !!}
|
||||
@if(!$firstUser)
|
||||
<p class="mb-0 text-sm">
|
||||
<a href="{{ route('boilerplate.login') }}">@lang('boilerplate::auth.register.login_link')</a><br>
|
||||
</p>
|
||||
@endif
|
||||
@endcomponent
|
||||
@endsection
|
||||
Reference in New Issue
Block a user