Skip to content

Commit

Permalink
add front user dashboard
Browse files Browse the repository at this point in the history
  • Loading branch information
guysolamour committed Nov 21, 2021
1 parent 222a43f commit 4c4588b
Showing 797 changed files with 157,238 additions and 572 deletions.
43 changes: 31 additions & 12 deletions config/administrable.php
Original file line number Diff line number Diff line change
@@ -16,13 +16,14 @@
'app_short_name' => config('app.short_name', 'Lvl'),
/*
|--------------------------------------------------------------------------
| Theme
| Backend Theme
|--------------------------------------------------------------------------
|
| Available theme are adminlte,theadmin,cooladmin,tabler,themekit
| The theme should not be changed once the installation has been done
*/
'theme' => 'themekit',

/*
|--------------------------------------------------------------------------
| Folder
@@ -74,16 +75,6 @@
*/
'back_namespace' => 'Back',

/**
* Use PHP callable syntax...
* use App\Http\Controllers\UserController;
* Route::get('/users', [UserController::class, 'index']);
* Use string syntax...
* Route::get('/users', 'App\Http\Controllers\UserController@index');
*/
'route_controller_callable_syntax' => true,

'schedule' => [
'command' => [
/**
@@ -101,7 +92,7 @@

],
],

'modules' => [
'auth' => [
'back' => [
@@ -191,6 +182,34 @@
'social_redirect' => [
'controller' => Guysolamour\Administrable\Http\Controllers\Front\RedirectController::class,
'networks' => ['facebook', 'twitter', 'linkedin', 'youtube']
],
'user_dashboard' => [
/*
|--------------------------------------------------------------------------
| Frontend Theme
|--------------------------------------------------------------------------
|
| Available theme are sleek
| The theme should not be changed once the installation has been done
*/
'theme' => 'sleek',

'model' => \App\Models\User::class,

'controllers' => [
'front' => [
'login' => \Guysolamour\Administrable\Http\Controllers\Front\Auth\LoginController::class,
'register' => \Guysolamour\Administrable\Http\Controllers\Front\Auth\RegisterController::class,
'dashboard' => \Guysolamour\Administrable\Http\Controllers\Front\Dashboard\DashboardController::class,
'verification' => \Guysolamour\Administrable\Http\Controllers\Front\Auth\VerificationController::class,
'reset_password' => \Guysolamour\Administrable\Http\Controllers\Front\Auth\ResetPasswordController::class,
'forgot_password' => \Guysolamour\Administrable\Http\Controllers\Front\Auth\ForgotPasswordController::class,
'confirm_password' => \Guysolamour\Administrable\Http\Controllers\Front\Auth\ConfirmPasswordController::class,
]
],
// 'custom_fields' => [

// ],
]
],

2 changes: 1 addition & 1 deletion resources/views/back/themekit/back/guards/create.blade.php
Original file line number Diff line number Diff line change
@@ -14,7 +14,7 @@
<nav class="breadcrumb-container" aria-label="breadcrumb">
<ol class="breadcrumb">
<li class="breadcrumb-item">
<a href="{ route(config('administrable.guard') . '.dashboard') }}"><i class="ik ik-home"></i></a>
<a href="{{ route(config('administrable.guard') . '.dashboard') }}"><i class="ik ik-home"></i></a>
</li>
<li class="breadcrumb-item"><a href="{{ back_route( config('administrable.guard') . '.index') }}">{{ Lang::get('administrable::messages.view.guard.plural') }}</a></li>
<li class="breadcrumb-item active" aria-current="page"><a href="#">{{ Lang::get('administrable::messages.default.add') }}</a></li>
77 changes: 77 additions & 0 deletions resources/views/front/sleek/front/auth/login.blade.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
@extends('front.layouts.auth')

@section('content')
<div class="container d-flex flex-column justify-content-between vh-100">
<div class="row justify-content-center mt-5">
<div class="col-xl-5 col-lg-6 col-md-10">
<div class="card">
<div class="card-header bg-primary">
<div class="app-brand">
<a href="{{ route('home') }}">
<svg class="brand-icon" xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="xMidYMid" width="30" height="33"
viewBox="0 0 30 33">
<g fill="none" fill-rule="evenodd">
<path class="logo-fill-blue" fill="#7DBCFF" d="M0 4v25l8 4V0zM22 4v25l8 4V0z" />
<path class="logo-fill-white" fill="#FFF" d="M11 4v25l8 4V0z" />
</g>
</svg>
<span class="brand-name">{{ config('app.name') }}</span>
</a>
</div>
</div>
<div class="card-body p-5">

<h4 class="text-dark mb-5">Connectez-vous</h4>
@error('email')
<div class="alert alert-danger">
{{ $message }}
</div>
@enderror

<form action="{{ route('login') }}" method="POST">
@csrf
@honeypot
<div class="row">
<div class="form-group col-md-12 mb-4">
<input type="login" value="{{ old('login') }}" name="login" class="form-control input-lg @error('login') is-invalid @enderror" id="login" aria-describedby="loginHelp" placeholder="Pseudo ou Email" required autofocus>
@error('login')
<span class="invalid-feedback" role="alert">
<strong>{{ $message }}</strong>
</span>
@enderror
</div>
<div class="form-group col-md-12 ">
<input type="password" name="password" class="form-control input-lg @error('password') is-invalid @enderror" id="password" placeholder="Mot de passe" required>
@error('password')
<span class="invalid-feedback" role="alert">
<strong>{{ $message }}</strong>
</span>
@enderror
</div>
<div class="col-md-12">
<div class="d-flex my-2 justify-content-between">
<div class="d-inline-block mr-3">
<label class="control control-checkbox"> Se souvenir de moi
<input type="checkbox" name="remember" id="remember" {{ old('remember') ? 'checked' : '' }} />
<div class="control-indicator"></div>
</label>

</div>
@if (Route::has('password.request'))
<p><a class="text-blue" href="{{ route('password.request') }}"> Mot de passe oublié ?</a></p>
@endif
</div>
<button type="submit" class="btn btn-lg btn-primary btn-block mb-4">Connexion</button>
<p>Vous n'avez pas encore de compte ?
<a class="text-blue" href="{{ route('register') }}">Inscrivez vous</a>
</p>
</div>
</div>
</form>
</div>
</div>
</div>
</div>

@endsection

59 changes: 59 additions & 0 deletions resources/views/front/sleek/front/auth/passwords/confirm.blade.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
@extends('front.layouts.dashboard')

<x-administrable::seotags :force="true" title="Confirmation de mot de passe" />

@section('content')

<div class="content">
<!-- Top Statistics -->
<div class="row">
<div class="col-md-12">
<div class="card card-success mb-4">
<div class="card-header card-header-border-bottom">
<h2>Confirmation de mot de passe</h2>
</div>
<div class="card-body text-center">

<p class="font-weight-bold">
Merci de confirmer votre mot de passe avant de continuer <br>

</p>
<form action="{{ route('password.confirm') }}" method="POST">
@csrf
@honeypot
<div class="row mt-5">

<div class="form-group col-md-12 ">
<input type="password" name="password"
class="form-control input-lg @error('password') is-invalid @enderror" id="password"
placeholder="Mot de passe">
@error('password')
<span class="invalid-feedback" role="alert">
<strong>{{ $message }}</strong>
</span>
@enderror
</div>


<div class="col-md-12">
<button type="submit" class="btn btn-lg btn-primary mb-4">
Confirmer le mot de passe
</button>
</div>
<div class="col-md-12 text-center">
@if (Route::has('password.request'))
<p>Mot de passe oublié ? ?
<a class="text-blue" href="{{ route('password.request') }}">Réinitialisez le ici</a>
</p>
@endif
</div>
</div>
</form>
</div>
</div>
</div>

</div>
</div>

@endsection
60 changes: 60 additions & 0 deletions resources/views/front/sleek/front/auth/passwords/email.blade.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
@extends('front.layouts.auth')

<x-administrable::seotags :force="true" title="Réinitialisation de mot de passe" />

@section('content')
<div class="container d-flex flex-column justify-content-between vh-100">
<div class="row justify-content-center mt-5">
<div class="col-xl-5 col-lg-6 col-md-10">
<div class="card">
<div class="card-header bg-primary">
<div class="app-brand">
<a href="{{ route('home') }}">
<svg class="brand-icon" xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="xMidYMid"
width="30" height="33" viewBox="0 0 30 33">
<g fill="none" fill-rule="evenodd">
<path class="logo-fill-blue" fill="#7DBCFF" d="M0 4v25l8 4V0zM22 4v25l8 4V0z" />
<path class="logo-fill-white" fill="#FFF" d="M11 4v25l8 4V0z" />
</g>
</svg>
<span class="brand-name">{{ config('app.name') }}</span>
</a>
</div>
</div>
<div class="card-body p-5">

<h4 class="text-dark mb-5">Réinitialisation de mot de passe</h4>
@if (session('status'))
<div class="alert alert-success font-weight-normal" role="alert">
{{ session('status') }}
</div>
@endif

<form action="{{ route('password.email') }}" method="POST">
@csrf
@honeypot
<div class="row">
<div class="form-group col-md-12 mb-4">
<input type="email" value="{{ old('email') }}" name="email"
class="form-control input-lg @error('email') is-invalid @enderror" id="email"
aria-describedby="emailHelp" placeholder="Email" required autofocus>
@error('email')
<span class="invalid-feedback" role="alert">
<strong>{{ $message }}</strong>
</span>
@enderror
</div>

<div class="col-md-12">
<button type="submit" class="btn btn-lg btn-primary btn-block mb-4">
Envoyer le lien de réinitialisation
</button>
</div>
</div>
</form>
</div>
</div>
</div>
</div>

@endsection
71 changes: 71 additions & 0 deletions resources/views/front/sleek/front/auth/passwords/reset.blade.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
@extends('front.layouts.auth')

<x-administrable::seotags :force="true" title="Réinitialisation de mot de passe" />

@section('content')
<div class="container d-flex flex-column justify-content-between vh-100">
<div class="row justify-content-center mt-5">
<div class="col-xl-5 col-lg-6 col-md-10">
<div class="card">
<div class="card-header bg-primary">
<div class="app-brand">
<a href="{{ route('home') }}">
<svg class="brand-icon" xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="xMidYMid"
width="30" height="33" viewBox="0 0 30 33">
<g fill="none" fill-rule="evenodd">
<path class="logo-fill-blue" fill="#7DBCFF" d="M0 4v25l8 4V0zM22 4v25l8 4V0z" />
<path class="logo-fill-white" fill="#FFF" d="M11 4v25l8 4V0z" />
</g>
</svg>
<span class="brand-name">{{ config('app.name') }}</span>
</a>
</div>
</div>
<div class="card-body p-5">

<h4 class="text-dark mb-5">Réinitialisation de mot de passe</h4>


<form action="{{ route('password.update') }}" method="POST">
@csrf
@honeypot
<input type="hidden" name="token" value="{{ $token }}">

<div class="row">
<div class="form-group col-md-12 mb-4">
<input type="email" value="{{ $email ?? old('email') }}" name="email" readonly
class="form-control input-lg @error('email') is-invalid @enderror" id="email"
aria-describedby="emailHelp" placeholder="Email" required >
@error('email')
<span class="invalid-feedback" role="alert">
<strong>{{ $message }}</strong>
</span>
@enderror
</div>
<div class="form-group col-md-12 ">
<input type="password" name="password" class="form-control input-lg @error('password') is-invalid @enderror"
id="password" placeholder="Nouveau mot de passe">
@error('password')
<span class="invalid-feedback" role="alert">
<strong>{{ $message }}</strong>
</span>
@enderror
</div>
<div class="form-group col-md-12 ">
<input type="password" name="password_confirmation" class="form-control input-lg" id="password_confirmation"
placeholder="Confirmation nouveau mot de passe">
</div>

<div class="col-md-12">
<button type="submit" class="btn btn-lg btn-primary btn-block mb-4">
Réinitialiser
</button>
</div>
</div>
</form>
</div>
</div>
</div>
</div>

@endsection
Loading

0 comments on commit 4c4588b

Please sign in to comment.