Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
372 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
|
||
guard 'livereload' do | ||
ignore(%r{storage}) | ||
watch(%r{.*$}) | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<?php | ||
|
||
namespace App\Http\Controllers; | ||
|
||
use Illuminate\Http\Request; | ||
|
||
class HomeController extends Controller | ||
{ | ||
/** | ||
* Create a new controller instance. | ||
* | ||
* @return void | ||
*/ | ||
public function __construct() | ||
{ | ||
$this->middleware('auth'); | ||
} | ||
|
||
/** | ||
* Show the application dashboard. | ||
* | ||
* @return \Illuminate\Http\Response | ||
*/ | ||
public function index() | ||
{ | ||
return view('home'); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
<?php | ||
|
||
use App\User; | ||
use Illuminate\Database\Seeder; | ||
|
||
class users extends Seeder | ||
{ | ||
/** | ||
* Run the database seeds. | ||
* | ||
* @return void | ||
*/ | ||
public function run() | ||
{ | ||
$faker = Faker\Factory::create(); | ||
|
||
User::truncate(); | ||
|
||
$data = []; | ||
|
||
for($i = 1; $i <= 1 ; $i++) { | ||
array_push($data, [ | ||
'name' => 'hadji kouceyla', | ||
'email' => 'hadjikouceyla@gmail.com', | ||
'password' => bcrypt('123456'), | ||
]); | ||
} | ||
|
||
User::insert($data); | ||
} | ||
} |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<!-- @Page Loader --> | ||
<!-- =================================================== --> | ||
<div id='loader'> | ||
<div class="spinner"></div> | ||
</div> | ||
|
||
<script type="text/javascript"> | ||
window.addEventListener('load', () => { | ||
const loader = document.getElementById('loader'); | ||
setTimeout(() => { | ||
loader.classList.add('fadeOut'); | ||
}, 300); | ||
}); | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
@extends('layouts.app') | ||
|
||
@section('content') | ||
|
||
<h4 class="fw-300 c-grey-900 mB-40">Login</h4> | ||
<form class="form-horizontal" method="POST" action="{{ route('login') }}"> | ||
{{ csrf_field() }} | ||
|
||
<div class="form-group{{ $errors->has('email') ? ' has-error' : '' }}"> | ||
<label for="email" class="text-normal text-dark">Email</label> | ||
<input id="email" type="email" class="form-control" name="email" value="{{ old('email') }}" required autofocus> | ||
|
||
@if ($errors->has('email')) | ||
<span class="form-text text-muted"> | ||
<small>{{ $errors->first('email') }}</small> | ||
</span> | ||
@endif | ||
</div> | ||
|
||
<div class="form-group{{ $errors->has('password') ? ' has-error' : '' }}"> | ||
<label for="password" class="text-normal text-dark">Password</label> | ||
<input id="password" type="password" class="form-control" name="password" required> | ||
|
||
@if ($errors->has('password')) | ||
<span class="form-text text-muted"> | ||
<small>{{ $errors->first('password') }}</small> | ||
</span> | ||
@endif | ||
</div> | ||
|
||
<div class="form-group"> | ||
<div class="peers ai-c jc-sb fxw-nw"> | ||
<div class="peer"> | ||
<div class="checkbox checkbox-circle checkbox-info peers ai-c"> | ||
<input type="checkbox" id="remember" name="remember" class="peer" {{ old('remember') ? 'checked' : '' }}> | ||
<label for="remember" class=" peers peer-greed js-sb ai-c"> | ||
<span class="peer peer-greed">Remember Me</span> | ||
</label> | ||
</div> | ||
</div> | ||
<div class="peer"> | ||
<button class="btn btn-primary">Login</button> | ||
</div> | ||
</div> | ||
</div> | ||
<a class="btn btn-link" href="{{ route('password.request') }}"> | ||
Forgot Your Password? | ||
</a> | ||
</form> | ||
|
||
@endsection |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
@extends('layouts.app') | ||
|
||
@section('content') | ||
<div class="container"> | ||
<div class="row"> | ||
<div class="col-md-8 col-md-offset-2"> | ||
<div class="panel panel-default"> | ||
<div class="panel-heading">Reset Password</div> | ||
|
||
<div class="panel-body"> | ||
@if (session('status')) | ||
<div class="alert alert-success"> | ||
{{ session('status') }} | ||
</div> | ||
@endif | ||
|
||
<form class="form-horizontal" method="POST" action="{{ route('password.email') }}"> | ||
{{ csrf_field() }} | ||
|
||
<div class="form-group{{ $errors->has('email') ? ' has-error' : '' }}"> | ||
<label for="email" class="col-md-4 control-label">E-Mail Address</label> | ||
|
||
<div class="col-md-6"> | ||
<input id="email" type="email" class="form-control" name="email" value="{{ old('email') }}" required> | ||
|
||
@if ($errors->has('email')) | ||
<span class="help-block"> | ||
<strong>{{ $errors->first('email') }}</strong> | ||
</span> | ||
@endif | ||
</div> | ||
</div> | ||
|
||
<div class="form-group"> | ||
<div class="col-md-6 col-md-offset-4"> | ||
<button type="submit" class="btn btn-primary"> | ||
Send Password Reset Link | ||
</button> | ||
</div> | ||
</div> | ||
</form> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
@endsection |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
@extends('layouts.app') | ||
|
||
@section('content') | ||
<div class="container"> | ||
<div class="row"> | ||
<div class="col-md-8 col-md-offset-2"> | ||
<div class="panel panel-default"> | ||
<div class="panel-heading">Reset Password</div> | ||
|
||
<div class="panel-body"> | ||
<form class="form-horizontal" method="POST" action="{{ route('password.request') }}"> | ||
{{ csrf_field() }} | ||
|
||
<input type="hidden" name="token" value="{{ $token }}"> | ||
|
||
<div class="form-group{{ $errors->has('email') ? ' has-error' : '' }}"> | ||
<label for="email" class="col-md-4 control-label">E-Mail Address</label> | ||
|
||
<div class="col-md-6"> | ||
<input id="email" type="email" class="form-control" name="email" value="{{ $email or old('email') }}" required autofocus> | ||
|
||
@if ($errors->has('email')) | ||
<span class="help-block"> | ||
<strong>{{ $errors->first('email') }}</strong> | ||
</span> | ||
@endif | ||
</div> | ||
</div> | ||
|
||
<div class="form-group{{ $errors->has('password') ? ' has-error' : '' }}"> | ||
<label for="password" class="col-md-4 control-label">Password</label> | ||
|
||
<div class="col-md-6"> | ||
<input id="password" type="password" class="form-control" name="password" required> | ||
|
||
@if ($errors->has('password')) | ||
<span class="help-block"> | ||
<strong>{{ $errors->first('password') }}</strong> | ||
</span> | ||
@endif | ||
</div> | ||
</div> | ||
|
||
<div class="form-group{{ $errors->has('password_confirmation') ? ' has-error' : '' }}"> | ||
<label for="password-confirm" class="col-md-4 control-label">Confirm Password</label> | ||
<div class="col-md-6"> | ||
<input id="password-confirm" type="password" class="form-control" name="password_confirmation" required> | ||
|
||
@if ($errors->has('password_confirmation')) | ||
<span class="help-block"> | ||
<strong>{{ $errors->first('password_confirmation') }}</strong> | ||
</span> | ||
@endif | ||
</div> | ||
</div> | ||
|
||
<div class="form-group"> | ||
<div class="col-md-6 col-md-offset-4"> | ||
<button type="submit" class="btn btn-primary"> | ||
Reset Password | ||
</button> | ||
</div> | ||
</div> | ||
</form> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
@endsection |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
@extends('layouts.app') | ||
|
||
@section('content') | ||
|
||
<h4 class="fw-300 c-grey-900 mB-40">Register</h4> | ||
<form method="POST" action="{{ route('register') }}"> | ||
{{ csrf_field() }} | ||
|
||
<div class="form-group{{ $errors->has('name') ? ' has-error' : '' }}"> | ||
<label for="name" class="text-normal text-dark">Name</label> | ||
<input id="name" type="text" class="form-control" name="name" value="{{ old('name') }}" required autofocus> | ||
|
||
@if ($errors->has('name')) | ||
<span class="form-text text-muted"> | ||
<small>{{ $errors->first('name') }}</small> | ||
</span> | ||
@endif | ||
</div> | ||
|
||
<div class="form-group{{ $errors->has('email') ? ' has-error' : '' }}"> | ||
<label for="email" class="text-normal text-dark">Email</label> | ||
<input id="email" type="email" class="form-control" name="email" value="{{ old('email') }}" required> | ||
|
||
@if ($errors->has('email')) | ||
<span class="form-text text-muted"> | ||
<small>{{ $errors->first('email') }}</small> | ||
</span> | ||
@endif | ||
</div> | ||
|
||
<div class="form-group{{ $errors->has('password') ? ' has-error' : '' }}"> | ||
<label for="password" class="text-normal text-dark">password</label> | ||
<input id="password" type="password" class="form-control" name="password" required> | ||
|
||
@if ($errors->has('password')) | ||
<span class="form-text text-muted"> | ||
<small>{{ $errors->first('password') }}</small> | ||
</span> | ||
@endif | ||
</div> | ||
|
||
<div class="form-group"> | ||
<label for="password_confirmation" class="text-normal text-dark">Confirm Password</label> | ||
<input id="password_confirmation" type="password" class="form-control" name="password_confirmation" required> | ||
|
||
</div> | ||
|
||
<div class="form-group"> | ||
<div class="peers ai-c jc-sb fxw-nw"> | ||
<div class="peer"> | ||
<button class="btn btn-primary">Login</button> | ||
</div> | ||
</div> | ||
</div> | ||
</form> | ||
|
||
@endsection |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
@extends('layouts.app') | ||
|
||
@section('content') | ||
<div class="container"> | ||
<div class="row"> | ||
<div class="col-md-8 col-md-offset-2"> | ||
<div class="panel panel-default"> | ||
<div class="panel-heading">Dashboard</div> | ||
|
||
<div class="panel-body"> | ||
@if (session('status')) | ||
<div class="alert alert-success"> | ||
{{ session('status') }} | ||
</div> | ||
@endif | ||
|
||
You are logged in! | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
@endsection |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
<!DOCTYPE html> | ||
<html lang="{{ app()->getLocale() }}"> | ||
<head> | ||
<meta charset="utf-8"> | ||
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1"> | ||
|
||
<!-- CSRF Token --> | ||
<meta name="csrf-token" content="{{ csrf_token() }}"> | ||
|
||
<title>{{ config('app.name', 'Laravel') }}</title> | ||
|
||
<!-- Styles --> | ||
<link href="{{ asset('/css/app.css') }}" rel="stylesheet"> | ||
</head> | ||
<body class="app"> | ||
|
||
@include('admin.partials.spinner') | ||
|
||
<div class="peers ai-s fxw-nw h-100vh"> | ||
<div class="d-n@sm- peer peer-greed h-100 pos-r bgr-n bgpX-c bgpY-c bgsz-cv" style='background-image: url("/images/bg.jpg")'> | ||
<div class="pos-a centerXY"> | ||
<div class="bgc-white bdrs-50p pos-r" style='width: 120px; height: 120px;'> | ||
<img class="pos-a centerXY" src="/images/logo.png" alt=""> | ||
</div> | ||
</div> | ||
</div> | ||
<div class="col-12 col-md-4 peer pX-40 pY-80 h-100 bgc-white scrollable pos-r" style='min-width: 320px;'> | ||
@yield('content') | ||
</div> | ||
</div> | ||
|
||
</body> | ||
</html> |
Oops, something went wrong.