3
0
Fork 0

Initial commit

This commit is contained in:
BuildTools 2020-02-26 14:59:58 +01:00
commit b105bd7db7
171 changed files with 28322 additions and 0 deletions

32
resources/js/app.js vendored Normal file
View file

@ -0,0 +1,32 @@
/**
* First we will load all of this project's JavaScript dependencies which
* includes Vue and other libraries. It is a great starting point when
* building robust, powerful web applications using Vue and Laravel.
*/
require('./bootstrap');
window.Vue = require('vue');
/**
* The following block of code may be used to automatically register your
* Vue components. It will recursively scan this directory for the Vue
* components and automatically register them with their "basename".
*
* Eg. ./components/ExampleComponent.vue -> <example-component></example-component>
*/
// const files = require.context('./', true, /\.vue$/i)
// files.keys().map(key => Vue.component(key.split('/').pop().split('.')[0], files(key).default))
Vue.component('example-component', require('./components/ExampleComponent.vue').default);
/**
* Next, we will create a fresh Vue application instance and attach it to
* the page. Then, you may begin adding components to this application
* or customize the JavaScript scaffolding to fit your unique needs.
*/
const app = new Vue({
el: '#app',
});

55
resources/js/bootstrap.js vendored Normal file
View file

@ -0,0 +1,55 @@
window._ = require('lodash');
/**
* We'll load jQuery and the Bootstrap jQuery plugin which provides support
* for JavaScript based Bootstrap features such as modals and tabs. This
* code may be modified to fit the specific needs of your application.
*/
try {
window.Popper = require('popper.js').default;
window.$ = window.jQuery = require('jquery');
require('bootstrap');
} catch (e) {}
/**
* We'll load the axios HTTP library which allows us to easily issue requests
* to our Laravel back-end. This library automatically handles sending the
* CSRF token as a header based on the value of the "XSRF" token cookie.
*/
window.axios = require('axios');
window.axios.defaults.headers.common['X-Requested-With'] = 'XMLHttpRequest';
/**
* Next we will register the CSRF Token as a common header with Axios so that
* all outgoing HTTP requests automatically have it attached. This is just
* a simple convenience so we don't have to attach every token manually.
*/
let token = document.head.querySelector('meta[name="csrf-token"]');
if (token) {
window.axios.defaults.headers.common['X-CSRF-TOKEN'] = token.content;
} else {
console.error('CSRF token not found: https://laravel.com/docs/csrf#csrf-x-csrf-token');
}
/**
* Echo exposes an expressive API for subscribing to channels and listening
* for events that are broadcast by Laravel. Echo and event broadcasting
* allows your team to easily build robust real-time web applications.
*/
// import Echo from 'laravel-echo'
// window.Pusher = require('pusher-js');
// window.Echo = new Echo({
// broadcaster: 'pusher',
// key: process.env.MIX_PUSHER_APP_KEY,
// cluster: process.env.MIX_PUSHER_APP_CLUSTER,
// encrypted: true
// });

View file

@ -0,0 +1,23 @@
<template>
<div class="container">
<div class="row justify-content-center">
<div class="col-md-8">
<div class="card">
<div class="card-header">Example Component</div>
<div class="card-body">
I'm an example component.
</div>
</div>
</div>
</div>
</div>
</template>
<script>
export default {
mounted() {
console.log('Component mounted.')
}
}
</script>

View file

@ -0,0 +1,19 @@
<?php
return [
/*
|--------------------------------------------------------------------------
| Authentication Language Lines
|--------------------------------------------------------------------------
|
| The following language lines are used during authentication for various
| messages that we need to display to the user. You are free to modify
| these language lines according to your application's requirements.
|
*/
'failed' => 'These credentials do not match our records.',
'throttle' => 'Too many login attempts. Please try again in :seconds seconds.',
];

View file

@ -0,0 +1,19 @@
<?php
return [
/*
|--------------------------------------------------------------------------
| Pagination Language Lines
|--------------------------------------------------------------------------
|
| The following language lines are used by the paginator library to build
| the simple pagination links. You are free to change them to anything
| you want to customize your views to better match your application.
|
*/
'previous' => '&laquo; Previous',
'next' => 'Next &raquo;',
];

View file

@ -0,0 +1,21 @@
<?php
return [
/*
|--------------------------------------------------------------------------
| Password Reset Language Lines
|--------------------------------------------------------------------------
|
| The following language lines are the default lines which match reasons
| that are given by the password broker for a password update attempt
| has failed, such as for an invalid token or invalid new password.
|
*/
'reset' => 'Your password has been reset!',
'sent' => 'We have e-mailed your password reset link!',
'token' => 'This password reset token is invalid.',
'user' => "We can't find a user with that e-mail address.",
];

View file

@ -0,0 +1,150 @@
<?php
return [
/*
|--------------------------------------------------------------------------
| Validation Language Lines
|--------------------------------------------------------------------------
|
| The following language lines contain the default error messages used by
| the validator class. Some of these rules have multiple versions such
| as the size rules. Feel free to tweak each of these messages here.
|
*/
'accepted' => 'The :attribute must be accepted.',
'active_url' => 'The :attribute is not a valid URL.',
'after' => 'The :attribute must be a date after :date.',
'after_or_equal' => 'The :attribute must be a date after or equal to :date.',
'alpha' => 'The :attribute may only contain letters.',
'alpha_dash' => 'The :attribute may only contain letters, numbers, dashes and underscores.',
'alpha_num' => 'The :attribute may only contain letters and numbers.',
'array' => 'The :attribute must be an array.',
'before' => 'The :attribute must be a date before :date.',
'before_or_equal' => 'The :attribute must be a date before or equal to :date.',
'between' => [
'numeric' => 'The :attribute must be between :min and :max.',
'file' => 'The :attribute must be between :min and :max kilobytes.',
'string' => 'The :attribute must be between :min and :max characters.',
'array' => 'The :attribute must have between :min and :max items.',
],
'boolean' => 'The :attribute field must be true or false.',
'confirmed' => 'The :attribute confirmation does not match.',
'date' => 'The :attribute is not a valid date.',
'date_equals' => 'The :attribute must be a date equal to :date.',
'date_format' => 'The :attribute does not match the format :format.',
'different' => 'The :attribute and :other must be different.',
'digits' => 'The :attribute must be :digits digits.',
'digits_between' => 'The :attribute must be between :min and :max digits.',
'dimensions' => 'The :attribute has invalid image dimensions.',
'distinct' => 'The :attribute field has a duplicate value.',
'email' => 'The :attribute must be a valid email address.',
'ends_with' => 'The :attribute must end with one of the following: :values',
'exists' => 'The selected :attribute is invalid.',
'file' => 'The :attribute must be a file.',
'filled' => 'The :attribute field must have a value.',
'gt' => [
'numeric' => 'The :attribute must be greater than :value.',
'file' => 'The :attribute must be greater than :value kilobytes.',
'string' => 'The :attribute must be greater than :value characters.',
'array' => 'The :attribute must have more than :value items.',
],
'gte' => [
'numeric' => 'The :attribute must be greater than or equal :value.',
'file' => 'The :attribute must be greater than or equal :value kilobytes.',
'string' => 'The :attribute must be greater than or equal :value characters.',
'array' => 'The :attribute must have :value items or more.',
],
'image' => 'The :attribute must be an image.',
'in' => 'The selected :attribute is invalid.',
'in_array' => 'The :attribute field does not exist in :other.',
'integer' => 'The :attribute must be an integer.',
'ip' => 'The :attribute must be a valid IP address.',
'ipv4' => 'The :attribute must be a valid IPv4 address.',
'ipv6' => 'The :attribute must be a valid IPv6 address.',
'json' => 'The :attribute must be a valid JSON string.',
'lt' => [
'numeric' => 'The :attribute must be less than :value.',
'file' => 'The :attribute must be less than :value kilobytes.',
'string' => 'The :attribute must be less than :value characters.',
'array' => 'The :attribute must have less than :value items.',
],
'lte' => [
'numeric' => 'The :attribute must be less than or equal :value.',
'file' => 'The :attribute must be less than or equal :value kilobytes.',
'string' => 'The :attribute must be less than or equal :value characters.',
'array' => 'The :attribute must not have more than :value items.',
],
'max' => [
'numeric' => 'The :attribute may not be greater than :max.',
'file' => 'The :attribute may not be greater than :max kilobytes.',
'string' => 'The :attribute may not be greater than :max characters.',
'array' => 'The :attribute may not have more than :max items.',
],
'mimes' => 'The :attribute must be a file of type: :values.',
'mimetypes' => 'The :attribute must be a file of type: :values.',
'min' => [
'numeric' => 'The :attribute must be at least :min.',
'file' => 'The :attribute must be at least :min kilobytes.',
'string' => 'The :attribute must be at least :min characters.',
'array' => 'The :attribute must have at least :min items.',
],
'not_in' => 'The selected :attribute is invalid.',
'not_regex' => 'The :attribute format is invalid.',
'numeric' => 'The :attribute must be a number.',
'present' => 'The :attribute field must be present.',
'regex' => 'The :attribute format is invalid.',
'required' => 'The :attribute field is required.',
'required_if' => 'The :attribute field is required when :other is :value.',
'required_unless' => 'The :attribute field is required unless :other is in :values.',
'required_with' => 'The :attribute field is required when :values is present.',
'required_with_all' => 'The :attribute field is required when :values are present.',
'required_without' => 'The :attribute field is required when :values is not present.',
'required_without_all' => 'The :attribute field is required when none of :values are present.',
'same' => 'The :attribute and :other must match.',
'size' => [
'numeric' => 'The :attribute must be :size.',
'file' => 'The :attribute must be :size kilobytes.',
'string' => 'The :attribute must be :size characters.',
'array' => 'The :attribute must contain :size items.',
],
'starts_with' => 'The :attribute must start with one of the following: :values',
'string' => 'The :attribute must be a string.',
'timezone' => 'The :attribute must be a valid zone.',
'unique' => 'The :attribute has already been taken.',
'uploaded' => 'The :attribute failed to upload.',
'url' => 'The :attribute format is invalid.',
'uuid' => 'The :attribute must be a valid UUID.',
/*
|--------------------------------------------------------------------------
| Custom Validation Language Lines
|--------------------------------------------------------------------------
|
| Here you may specify custom validation messages for attributes using the
| convention "attribute.rule" to name the lines. This makes it quick to
| specify a specific custom language line for a given attribute rule.
|
*/
'custom' => [
'attribute-name' => [
'rule-name' => 'custom-message',
],
],
/*
|--------------------------------------------------------------------------
| Custom Validation Attributes
|--------------------------------------------------------------------------
|
| The following language lines are used to swap our attribute placeholder
| with something more reader friendly such as "E-Mail Address" instead
| of "email". This simply helps us make our message more expressive.
|
*/
'attributes' => [],
];

19
resources/sass/_variables.scss vendored Normal file
View file

@ -0,0 +1,19 @@
// Body
$body-bg: #f8fafc;
// Typography
$font-family-sans-serif: 'Nunito', sans-serif;
$font-size-base: 0.9rem;
$line-height-base: 1.6;
// Colors
$blue: #3490dc;
$indigo: #6574cd;
$purple: #9561e2;
$pink: #f66d9b;
$red: #e3342f;
$orange: #f6993f;
$yellow: #ffed4a;
$green: #38c172;
$teal: #4dc0b5;
$cyan: #6cb2eb;

8
resources/sass/app.scss vendored Normal file
View file

@ -0,0 +1,8 @@
// Fonts
@import url('https://fonts.googleapis.com/css?family=Nunito');
// Variables
@import 'variables';
// Bootstrap
@import '~bootstrap/scss/bootstrap';

View file

@ -0,0 +1,95 @@
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}">
<head>
<!-- ==============================================
Title and Meta Tags
=============================================== -->
<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="csrf-token" content="{{ csrf_token() }}">
<title>{{ config('app.name', 'ThemePark') }}</title>
<!-- ==============================================
CSS Files
=============================================== -->
<link href="{{ asset('assets/css/bootstrap.min.css') }}" rel="stylesheet">
<link href="{{ asset('assets/css/panel.min.css') }}" rel="stylesheet">
</head>
<body>
<div class="page">
<div class="form">
<form method="post" action="{{ route('login') }}" action="{{ route('2fa.authenticate') }}">
@csrf
<h2 class="text-center">ThemePark</h2>
<div class="form-group @error('two_factor') has-error @enderror">
<div class="input-group">
<span class="input-group-addon"><i class="glyphicon glyphicon-lock"></i></span>
<input id="two_factor" type="text" class="form-control" name="two_factor" required autocomplete="off" autofocus>
</div>
@error('two_factor')
<span class="help-block" style="font-size: 12px">{{ $message }}</span>
@enderror
</div>
<button class="btn btn-custom" style="width: 100%">{{ __('Authenticate') }}</button>
<a class="btn btn-link" href="{{ route('logout') }}">{{ __('Logout') }}</a>
</form>
</div>
</div>
<footer class="footer">
<div class="container">
<span>Copyright &copy; 2019-{{ date('Y') }} <a href="https://www.iobyte.nl/"><img src="{{ asset('assets/img/logo-lg.png') }}" alt="IOByte" style="height: 20px"></a>. All Rights Reserved.</span>
</div>
</footer>
<!-- ==============================================
JS Files
=============================================== -->
<script src="{{ asset('assets/js/jquery.min.js') }}"></script>
<script src="{{ asset('assets/js/bootstrap.min.js') }}"></script>
</body>
</html>
@section('content')
<div class="container">
<div class="row justify-content-center">
<div class="col-md-8">
<div class="card">
<div class="card-header">{{ __('2FA Authenticate') }}</div>
<div class="card-body">
<form method="POST" action="{{ route('2fa.authenticate') }}">
@csrf
<div class="form-group row">
<label for="two_factor" class="col-md-2 offset-md-3 col-form-label text-md-right">{{ __('2FA Code') }}</label>
<div class="col-md-4">
<input id="two_factor" type="text" class="form-control @error('two_factor') is-invalid @enderror" name="two_factor" required autocomplete="two_factor" autofocus>
@error('two_factor')
<span class="invalid-feedback" role="alert">
<strong>{{ $message }}</strong>
</span>
@enderror
</div>
</div>
<div class="form-group row mb-0">
<div class="col-md-6 offset-md-3">
<button type="submit" class="btn btn-block btn-primary">
{{ __('Authenticate') }}
</button>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
@endsection

View file

@ -0,0 +1,61 @@
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}">
<head>
<!-- ==============================================
Title and Meta Tags
=============================================== -->
<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="csrf-token" content="{{ csrf_token() }}">
<title>{{ config('app.name', 'Laravel') }}</title>
<!-- ==============================================
CSS Files
=============================================== -->
<link href="{{ asset('assets/css/bootstrap.min.css') }}" rel="stylesheet">
<link href="{{ asset('assets/css/panel.min.css') }}" rel="stylesheet">
</head>
<body>
<div class="page">
<div class="form">
<form method="post" action="{{ route('login') }}">
@csrf
<h2 class="text-center">ThemePark</h2>
@if($errors->any())
<div class="alert alert-danger" role="alert">
{{ __('Invalid Username or Password') }}
<a class="close" data-dismiss="alert" aria-label="close">&times;</a>
</div>
@endif
<div class="input-group">
<span class="input-group-addon"><i class="glyphicon glyphicon-user"></i></span>
<input id="uuid" type="text" class="form-control" name="uuid" value="{{ old('username') }}" placeholder="Username" required autocomplete="username" autofocus>
</div>
<div class="input-group">
<span class="input-group-addon"><i class="glyphicon glyphicon-lock"></i></span>
<input id="password" type="password" class="form-control" name="password" placeholder="Password" required autocomplete="current-password">
</div>
<button class="btn btn-custom" style="width: 100%">{{ __('Login') }}</button>
<p>No account yet, <a href="{{ route('register') }}">{{ __('Register one') }} </a>or,
<br>Did you <a href="{{ route('password.request') }}">{{ __('forget your password') }}</a>?</p>
</form>
</div>
</div>
<footer class="footer">
<div class="container">
<span>Copyright &copy; 2019-{{ date('Y') }} <a href="https://www.iobyte.nl/"><img src="{{ asset('assets/img/logo-lg.png') }}" alt="IOByte" style="height: 20px"></a>. All Rights Reserved.</span>
</div>
</footer>
<!-- ==============================================
JS Files
=============================================== -->
<script src="{{ asset('assets/js/jquery.min.js') }}"></script>
<script src="{{ asset('assets/js/bootstrap.min.js') }}"></script>
</body>
</html>

View file

@ -0,0 +1,55 @@
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}">
<head>
<!-- ==============================================
Title and Meta Tags
=============================================== -->
<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="csrf-token" content="{{ csrf_token() }}">
<title>{{ config('app.name', 'Laravel') }}</title>
<!-- ==============================================
CSS Files
=============================================== -->
<link href="{{ asset('assets/css/bootstrap.min.css') }}" rel="stylesheet">
<link href="{{ asset('assets/css/panel.min.css') }}" rel="stylesheet">
</head>
<body>
<div class="page">
<div class="form">
<form method="post" action="{{ route('password.email') }}">
@csrf
<h2 class="text-center">ThemePark</h2>
@if(session('status'))
<div class="alert alert-success" role="alert">
{{ __('Email has been send.') }}
<a class="close" data-dismiss="alert" aria-label="close">&times;</a>
</div>
@endif
<div class="input-group">
<span class="input-group-addon"><i class="glyphicon glyphicon-envelope"></i></span>
<input id="email" type="email" class="form-control" name="email" value="{{ old('email') }}" placeholder="Email" required autocomplete="email" autofocus>
</div>
<button class="btn btn-custom" style="width: 100%">{{ __('Reset Password') }}</button>
</form>
</div>
</div>
<footer class="footer">
<div class="container">
<span>Copyright &copy; 2019-{{ date('Y') }} <a href="https://www.iobyte.nl/"><img src="{{ asset('assets/img/logo-lg.png') }}" alt="IOByte" style="height: 20px"></a>. All Rights Reserved.</span>
</div>
</footer>
<!-- ==============================================
JS Files
=============================================== -->
<script src="{{ asset('assets/js/jquery.min.js') }}"></script>
<script src="{{ asset('assets/js/bootstrap.min.js') }}"></script>
</body>
</html>

View file

@ -0,0 +1,69 @@
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}">
<head>
<!-- ==============================================
Title and Meta Tags
=============================================== -->
<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="csrf-token" content="{{ csrf_token() }}">
<title>{{ config('app.name', 'Laravel') }}</title>
<!-- ==============================================
CSS Files
=============================================== -->
<link href="{{ asset('assets/css/bootstrap.min.css') }}" rel="stylesheet">
<link href="{{ asset('assets/css/panel.min.css') }}" rel="stylesheet">
</head>
<body>
<div class="page">
<div class="form">
<form method="post" action="{{ route('password.update') }}">
@csrf
<input type="hidden" name="token" value="{{ $token }}">
<h2 class="text-center">ThemePark</h2>
<div class="form-group @error('email') has-error @enderror">
<div class="input-group">
<span class="input-group-addon"><i class="glyphicon glyphicon-envelope"></i></span>
<input id="email" type="email" class="form-control" name="email" value="{{ $email ?? old('email') }}" placeholder="Email" required autocomplete="email" autofocus>
</div>
@error('email')
<span class="help-block" style="font-size: 12px">{{ $message }}</span>
@enderror
</div>
<div class="form-group @error('password') has-error @enderror">
<div class="input-group">
<span class="input-group-addon"><i class="glyphicon glyphicon-lock"></i></span>
<input type="password" class="form-control" name="password" placeholder="Password" required autocomplete="new-password">
</div>
@error('password')
<span class="help-block" style="font-size: 12px">{{ $message }}</span>
@enderror
</div>
<div class="input-group">
<span class="input-group-addon"><i class="glyphicon glyphicon-lock"></i></span>
<input type="password" class="form-control" name="password_confirmation" placeholder="Confirm Password" required autocomplete="new-password">
</div>
<button class="btn btn-custom" style="width: 100%">{{ __('Reset Password') }}</button>
</form>
</div>
</div>
<footer class="footer">
<div class="container">
<span>Copyright &copy; 2019-{{ date('Y') }} <a href="https://www.iobyte.nl/"><img src="{{ asset('assets/img/logo-lg.png') }}" alt="IOByte" style="height: 20px"></a>. All Rights Reserved.</span>
</div>
</footer>
<!-- ==============================================
JS Files
=============================================== -->
<script src="{{ asset('assets/js/jquery.min.js') }}"></script>
<script src="{{ asset('assets/js/bootstrap.min.js') }}"></script>
</body>
</html>

View file

@ -0,0 +1,79 @@
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}">
<head>
<!-- ==============================================
Title and Meta Tags
=============================================== -->
<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="csrf-token" content="{{ csrf_token() }}">
<title>{{ config('app.name', 'Laravel') }}</title>
<!-- ==============================================
CSS Files
=============================================== -->
<link href="{{ asset('assets/css/bootstrap.min.css') }}" rel="stylesheet">
<link href="{{ asset('assets/css/panel.min.css') }}" rel="stylesheet">
</head>
<body>
<div class="page">
<div class="form">
<form method="post" action="{{ route('register') }}">
@csrf
<h2 class="text-center">ThemePark</h2>
@if($errors->any())
<div class="alert alert-danger" role="alert">
{{ __($errors->first()) }}
<a class="close" data-dismiss="alert" aria-label="close">&times;</a>
</div>
@endif
<div class="input-group">
<span class="input-group-addon"><i class="glyphicon glyphicon-user"></i></span>
<input id="username" type="text" class="form-control" name="username" value="{{ old('username') }}" placeholder="Username" required autocomplete="username" autofocus>
</div>
<div class="input-group">
<span class="input-group-addon"><i class="glyphicon glyphicon-envelope"></i></span>
<input id="email" type="email" class="form-control" name="email" value="{{ old('email') }}" placeholder="Email" required autocomplete="email" autofocus>
</div>
<div class="input-group">
<span class="input-group-addon"><i class="glyphicon glyphicon-lock"></i></span>
<input id="password" type="password" class="form-control" name="password" placeholder="Password" required autocomplete="off">
</div>
<div class="input-group">
<span class="input-group-addon"><i class="glyphicon glyphicon-lock"></i></span>
<input id="password_confirmation" type="password" class="form-control" name="password_confirmation" placeholder="Confirm Password" required autocomplete="off">
</div>
<button class="btn btn-custom" style="width: 100%">{{ __('Register') }}</button>
<p>Already have an account, <a href="{{ route('login') }}">{{ __('Login') }} </a></p>
</form>
</div>
</div>
<footer class="footer">
<div class="container">
<span>Copyright &copy; 2019-{{ date('Y') }} <a href="https://www.iobyte.nl/"><img src="{{ asset('assets/img/logo-lg.png') }}" alt="IOByte" style="height: 20px"></a>. All Rights Reserved.</span>
</div>
</footer>
<!-- ==============================================
JS Files
=============================================== -->
<script src="{{ asset('assets/js/jquery.min.js') }}"></script>
<script src="{{ asset('assets/js/bootstrap.min.js') }}"></script>
<script>
window.onload = function() {
const passInput = document.getElementById('password_confirmation');
passInput.onpaste = function (e) {
e.preventDefault();
};
};
</script>
</body>
</html>

View file

@ -0,0 +1,51 @@
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}">
<head>
<!-- ==============================================
Title and Meta Tags
=============================================== -->
<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="csrf-token" content="{{ csrf_token() }}">
<title>{{ config('app.name', 'Laravel') }}</title>
<!-- ==============================================
CSS Files
=============================================== -->
<link href="{{ asset('assets/css/bootstrap.min.css') }}" rel="stylesheet">
<link href="{{ asset('assets/css/panel.min.css') }}" rel="stylesheet">
</head>
<body>
<div class="page">
<div class="form">
<h2 class="text-center">ThemePark</h2>
@if (session('resent'))
<div class="alert alert-success" role="alert">
{{ __('Email has been resend.') }}
<a class="close" data-dismiss="alert" aria-label="close">&times;</a>
</div>
@endif
<p>{{ __('Before proceeding, please check your email for a verification link. If you did not receive an email press the button bellow to resend the email.') }}</p>
<form method="POST" action="{{ route('verification.resend') }}">
@csrf
<button type="submit" class="btn btn-custom" style="width: 100%">{{ __('Resend Email') }}</button>.
</form>
</div>
</div>
<footer class="footer">
<div class="container">
<span>Copyright &copy; 2019-{{ date('Y') }} <a href="https://www.iobyte.nl/"><img src="{{ asset('assets/img/logo-lg.png') }}" alt="IOByte" style="height: 20px"></a>. All Rights Reserved.</span>
</div>
</footer>
<!-- ==============================================
JS Files
=============================================== -->
<script src="{{ asset('assets/js/jquery.min.js') }}"></script>
<script src="{{ asset('assets/js/bootstrap.min.js') }}"></script>
</body>
</html>

View file

@ -0,0 +1,43 @@
@extends('layouts.panel')
@section('navigation')
<ul class="nav navbar-nav">
<li class="active"><a>Home</a></li>
<!-- <li><a href="status.php">Attraction Status</a></li>
<li><a href="photo.php">Photo's</a></li>
<li><a href="show.php">Show</a></li>
<li><a href="store.php">Store</a></li> -->
</ul>
<ul class="nav navbar-nav navbar-right">
<li class="dropdown"><a class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">{{ Auth::user()->username() }}<span class="caret"></span></a><ul class="dropdown-menu">
<li><a href="profile/">Profile</a></li>
@if(Auth::user()->is_admin || Auth::user()->is_root)
<li><a href="admin/">Admin</a></li>
<li role="separator" class="divider"></li>
@endif
<li><a href="{{ route('logout') }}">Logout</a></li>
</ul>
</li>
</ul>
@endsection
@section('content')
<div class="container-fluid" style="margin-top: 75px">
<div class="col-lg-6 col-lg-offset-3 col-md-8 col-md-offset-2">
@php($message = \App\Message::orderByDesc('id')->first())
@if(!empty($message))
<div class="panel panel-theme news">
<div class="panel-heading">
@php($time = strtotime($message->created_at))
<h3 class="panel-title">{{ \App\Cache\Cache::getUsername($message->uuid) }}<span style="float: right">{{ date('d-m-Y', $time) }} at {{ date('H:m', $time) }}</span></h3>
</div>
<div class="panel-body">
<div class="container-fluid">
{!! $message->content !!}
</div>
</div>
</div>
@endif
</div>
</div>
@endsection

View file

@ -0,0 +1,124 @@
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}">
<head>
<!-- ==============================================
Title and Meta Tags
=============================================== -->
<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="csrf-token" content="{{ csrf_token() }}">
<link rel="shortcut icon" href="{{ asset('favicon.ico') }}">
<title>{{ config('app.name', 'Laravel') }}</title>
<!-- ==============================================
CSS Files
=============================================== -->
<link href="{{ asset('assets/css/bootstrap.min.css') }}" rel="stylesheet">
<link href="{{ asset('assets/css/font-awesome.min.css') }}" rel="stylesheet">
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.7.2/css/all.css">
<link href="{{ asset('assets/css/AdminLTE.min.css') }}" rel="stylesheet">
@yield('css')
<link href="{{ asset('assets/css/skin.css') }}" rel="stylesheet">
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body class="hold-transition sidebar-mini">
<div class="wrapper">
<header class="main-header">
<a class="logo">
<span class="logo-mini"><img src="{{ asset('assets/img/logo-sm.png') }}" alt="IOB"></span>
<span class="logo-lg"><img src="{{ asset('assets/img/logo-lg.png') }}" alt="IOByte"></span>
</a>
<nav class="navbar navbar-static-top">
<a class="sidebar-toggle" data-toggle="push-menu" role="button">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</a>
<div class="navbar-custom-menu">
<ul class="nav navbar-nav">
<li class="dropdown user user-menu">
<a class="dropdown-toggle" data-toggle="dropdown">
<img src="{{ Auth::user()->photo() }}" class="user-image" alt="User Image">
<span class="hidden-xs">{{ Auth::user()->firstname }}</span>
</a>
<ul class="dropdown-menu">
<li class="user-header">
<img src="{{ Auth::user()->photo() }}" alt="User Image">
<p>
{{ Auth::user()->fullname() }}
<small>{{ Auth::user()->email }}</small>
</p>
</li>
<li class="user-footer">
<div class="col-xs-6 col-xs-offset-6">
<a href="{{ route('logout') }}" class="btn btn-primary btn-block">Sign out</a>
</div>
</li>
</ul>
</li>
</ul>
</div>
</nav>
</header>
<aside class="main-sidebar">
<section class="sidebar">
<div class="user-panel">
<div class="pull-left image">
<img src="{{ Auth::user()->photo() }}" alt="User Image">
</div>
<div class="pull-left info">
<p>{{ Auth::user()->firstname }}</p>
@php($role = Auth::user()->getHighestRole())
<small><span class="role" style="background-color: {{ $role->color }}">{{ $role->readable_name }}</span></small>
</div>
</div>
<ul class="sidebar-menu" data-widget="tree">
@yield('navigation')
</ul>
</section>
</aside>
<div class="content-wrapper">
<section class="content-header">
<h1>@yield('page')</h1>
<ol class="breadcrumb">
<li><a><i class="fas fa-tachometer-alt"></i> Panel</a></li>
<li class="active">@yield('page')</li>
</ol>
</section>
<section class="content">
@yield('content')
</section>
</div>
<footer class="main-footer">
<div class="pull-right hidden-xs">
<b>Version</b> {{ env('APP_VERSION', '1.0') }}
</div>
<span>Copyright &copy; 2019 <a href="https://www.iobyte.nl/"><img src="{{ asset('assets/img/logo-lg.png') }}" alt="IOByte"></a>. All rights reserved.</span>
</footer>
<div class="control-sidebar-bg"></div>
</div>
<!-- ==============================================
JS Files
=============================================== -->
<script src="{{ asset('assets/js/jquery.min.js') }}"></script>
<script src="{{ asset('assets/js/bootstrap.min.js') }}"></script>
<script src="{{ asset('assets/js/adminlte.min.js') }}"></script>
@yield('javascript')
</body>
</html>

View file

@ -0,0 +1,61 @@
<html lang="en">
<head>
<!-- ==============================================
Title and Meta Tags
=============================================== -->
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>ThemePark</title>
<!-- ==============================================
Favicon
=============================================== -->
<link rel="icon" type="image/x-icon" href="{{ asset('assets/img/favicon.ico') }}" />
<link rel="icon" type="image/png" href="{{ asset('assets/img/favicon-32x32.png') }}" sizes="32x32" />
<link rel="icon" type="image/png" href="{{ asset('assets/img/favicon-16x16.png') }}" sizes="16x16" />
<!-- ==============================================
CSS Files
=============================================== -->
<link href="{{ asset('assets/css/bootstrap.min.css') }}" rel="stylesheet">
<link href="{{ asset('assets/css/style.css') }}" rel="stylesheet">
</head>
<body>
<nav class="navbar navbar-theme navbar-fixed-top">
<div class="container-fluid">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar-collapses" aria-expanded="false">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand">ThemePark</a>
</div>
<div class="collapse navbar-collapse" id="navbar-collapses">
@yield('navigation')
</div>
</div>
</nav>
@yield('content')
<footer class="footer">
<div class="container">
<span>Copyright &copy; 2019-{{ date('Y') }} <a href="https://www.iobyte.nl/"><img src="{{ asset('assets/img/logo-lg.png') }}" alt="IOByte"></a>. All rights reserved.</span>
</div>
</footer>
<!-- ==============================================
JS Files
=============================================== -->
<script src="{{ asset('assets/js/jquery.min.js') }}"></script>
<script src="{{ asset('assets/js/bootstrap.min.js') }}"></script>
<script src="{{ asset('assets/js/core.js') }}"></script>
</body>
</html>

View file

@ -0,0 +1,111 @@
@extends('layouts.admin')
@section('page', 'Dashboard')
@section('navigation')
<li class="treeview">
<a>
<i class="fas fa-user"></i> <span>Account</span>
<span class="pull-right-container"><i class="fa fa-angle-left pull-right"></i></span>
</a>
<ul class="treeview-menu">
<li><a href="{{ route('panel.profile') }}"><i class="fas fa-id-badge"></i> Profile</a></li>
<li><a href="{{ route('panel.change') }}"><i class="fas fa-clipboard"></i> Change</a></li>
<li class="hidden-xs"><a href="{{ route('panel.security') }}"><i class="fas fa-lock"></i> Security</a></li>
</ul>
</li>
<li class="header">NAVIGATION</li>
<li class="active">
<a><i class="fas fa-tachometer-alt"></i> <span>Dashboard</span></a>
</li>
@canany(['project_see', 'status_see'])
<li class="treeview">
<a>
<i class="fas fa-list"></i> <span>Projects</span>
<span class="pull-right-container"><i class="fa fa-angle-left pull-right"></i></span>
</a>
<ul class="treeview-menu">
@can('project_see')<li><a href="{{ route('panel.project') }}"><i class="fas fa-clipboard"></i> Project</a></li>@endcan
@can('order_see')<li><a href="{{ route('panel.order') }}"><i class="fas fa-file-invoice"></i> Order</a></li>@endcan
@can('status_see')<li><a href="{{ route('panel.status') }}"><i class="fas fa-clipboard"></i> Status</a></li>@endcan
</ul>
</li>
@endcanany
@canany(['roles_see', 'user_see'])
<li class="treeview">
<a>
<i class="fas fa-user"></i> <span>Management</span>
<span class="pull-right-container"><i class="fa fa-angle-left pull-right"></i></span>
</a>
<ul class="treeview-menu">
@can('user_see')<li><a href="{{ route('panel.ums') }}"><i class="fas fa-id-badge"></i> Users</a></li>@endcan
@can('roles_see')<li><a href="{{ route('panel.role') }}"><i class="fas fa-lock"></i> Roles</a></li>@endcan
</ul>
</li>
@endcanany
@endsection
@section('content')
@if(session('error'))
<div class="alert alert-danger" role="alert">
{{ session('error') }}
<a class="close" data-dismiss="alert" aria-label="close">&times;</a>
</div>
@elseif(session('success'))
<div class="alert alert-success" role="alert">
{{ session('success') }}
<a class="close" data-dismiss="alert" aria-label="close">&times;</a>
</div>
@endif
<div class="row">
<div class="col-lg-3 col-xs-6">
<div class="small-box bg-blue-gradient">
<div class="inner">
<h3>{{ $projects }}</h3>
<p>Projects</p>
</div>
<div class="icon">
<i class="fas fa-project-diagram"></i>
</div>
</div>
</div>
<div class="col-lg-3 col-xs-6">
<div class="small-box bg-blue-gradient">
<div class="inner">
<h3>{{ $finished_projects }}</h3>
<p>Finished Projects</p>
</div>
<div class="icon">
<i class="fas fa-terminal"></i>
</div>
</div>
</div>
<div class="col-lg-3 col-xs-6">
<div class="small-box bg-blue-gradient">
<div class="inner">
<h3>{{ $orders }}</h3>
<p>Orders</p>
</div>
<div class="icon">
<i class="fas fa-file-invoice"></i>
</div>
</div>
</div>
<div class="col-lg-3 col-xs-6">
<div class="small-box bg-blue-gradient">
<div class="inner">
<h3>{{ $total_paid }}</h3>
<p>Total Earned</p>
</div>
<div class="icon">
<i class="fas fa-money-bill"></i>
</div>
</div>
</div>
</div>
@endsection

View file

@ -0,0 +1,133 @@
@extends('layouts.admin')
@section('css')
<link href="{{ asset('assets/css/bootstrap-multiselect.css') }}" rel="stylesheet">
@endsection
@section('page', 'User Manager')
@section('navigation')
<li class="treeview">
<a>
<i class="fas fa-user"></i> <span>Account</span>
<span class="pull-right-container"><i class="fa fa-angle-left pull-right"></i></span>
</a>
<ul class="treeview-menu">
<li><a href="{{ route('panel.profile') }}"><i class="fas fa-id-badge"></i> Profile</a></li>
<li><a href="{{ route('panel.change') }}"><i class="fas fa-clipboard"></i> Change</a></li>
<li class="hidden-xs"><a href="{{ route('panel.security') }}"><i class="fas fa-lock"></i> Security</a></li>
</ul>
</li>
<li class="header">NAVIGATION</li>
<li>
<a href="{{ route('panel.home') }}"><i class="fas fa-tachometer-alt"></i> <span>Dashboard</span></a>
</li>
@canany(['project_see', 'status_see'])
<li class="treeview">
<a>
<i class="fas fa-list"></i> <span>Projects</span>
<span class="pull-right-container"><i class="fa fa-angle-left pull-right"></i></span>
</a>
<ul class="treeview-menu">
@can('project_see')<li><a href="{{ route('panel.project') }}"><i class="fas fa-clipboard"></i> Project</a></li>@endcan
@can('order_see')<li><a href="{{ route('panel.order') }}"><i class="fas fa-file-invoice"></i> Order</a></li>@endcan
@can('status_see')<li><a href="{{ route('panel.status') }}"><i class="fas fa-clipboard"></i> Status</a></li>@endcan
</ul>
</li>
@endcanany
<li class="active treeview menu-open">
<a>
<i class="fas fa-user"></i> <span>Management</span>
<span class="pull-right-container"><i class="fa fa-angle-left pull-right"></i></span>
</a>
<ul class="treeview-menu">
<li class="active"><a><i class="fas fa-id-badge"></i> Users</a></li>
@can('roles_see')<li><a href="{{ route('panel.role') }}"><i class="fas fa-lock"></i> Roles</a></li>@endcan
</ul>
</li>
@endsection
@section('content')
<div class="col-xs-12 col-lg-6 col-lg-offset-3 col-md-8 col-md-offset-2">
<div class="box box-primary">
<div class="box-header">
<h3 class="box-title" style="margin-top: 8px"><strong>#{{ $user->id }}: </strong>{{ $user->fullname() }}</h3>
<small style="float: right"><a class="btn btn-primary" href="{{ route('panel.ums') }}">Back</a></small>
</div>
<div class="box-body">
@if(session('error'))
<div class="alert alert-success" role="alert">
{{ session('error') }}
<a class="close" data-dismiss="alert" aria-label="close">&times;</a>
</div>
@endif
<form method="POST" action="{{ route('panel.ums.update') }}" class="col-xs-10 col-xs-offset-1">
@csrf
<input type="number" name="id" value="{{ $user->id }}" style="display: none">
<div class="form-group @error('email') has-error @enderror">
<label for="email" class="text-md-right">{{ __('Email:') }}</label>
<div class="input-group">
<span class="input-group-addon"><i class="glyphicon glyphicon-envelope"></i></span>
<input id="email" type="email" class="form-control" placeholder="Email Address" name="email" value="{{ $user->email }}" required autocomplete="off" autofocus>
</div>
@error('email')
<span class="help-block">{{ $message }}</span>
@enderror
</div>
<div class="form-group @error('roles') has-error @enderror">
<label for="roles" class="text-md-right">{{ __('Roles:') }}</label>
<select class="form-control" id="roles" name="roles[]" multiple>
@if(!empty($roles))
@foreach($roles as $role)
<option value="{{ $role->name }}" @if($user->hasRole($role->name)) selected @endif >{{ $role->readable_name }}</option>
@endforeach
@endif
</select>
@error('roles')
<span class="help-block">{{ $message }}</span>
@enderror
</div>
<div class="form-group @error('permissions') has-error @enderror">
<label for="permissions" class="text-md-right">{{ __('Permissions:') }}</label>
<select class="form-control" id="permissions" name="permissions[]" multiple>
@if(!empty($permissions))
@foreach($permissions as $permission)
<option value="{{ $permission->name }}" @if($user->hasDirectPermission($permission->name)) selected @endif >{{ $permission->name }}</option>
@endforeach
@endif
</select>
@error('permissions')
<span class="help-block">{{ $message }}</span>
@enderror
</div>
<button type="submit" class="btn btn-block btn-primary">{{ __('Edit User') }}</button>
</form>
</div>
</div>
</div>
@endsection
@section('javascript')
<script src="{{ asset('assets/js/bootstrap-multiselect.js') }}"></script>
<script>
$(function () {
$('#roles').multiselect({
includeSelectAllOption: true,
enableFiltering: true
});
$('#permissions').multiselect({
includeSelectAllOption: true,
enableFiltering: true
});
});
</script>
@endsection

View file

@ -0,0 +1,149 @@
@extends('layouts.admin')
@section('page', 'User Manager')
@section('navigation')
<li class="treeview">
<a>
<i class="fas fa-user"></i> <span>Account</span>
<span class="pull-right-container"><i class="fa fa-angle-left pull-right"></i></span>
</a>
<ul class="treeview-menu">
<li><a href="{{ route('panel.profile') }}"><i class="fas fa-id-badge"></i> Profile</a></li>
<li><a href="{{ route('panel.change') }}"><i class="fas fa-clipboard"></i> Change</a></li>
<li class="hidden-xs"><a href="{{ route('panel.security') }}"><i class="fas fa-lock"></i> Security</a></li>
</ul>
</li>
<li class="header">NAVIGATION</li>
<li>
<a href="{{ route('panel.home') }}"><i class="fas fa-tachometer-alt"></i> <span>Dashboard</span></a>
</li>
@canany(['project_see', 'status_see'])
<li class="treeview">
<a>
<i class="fas fa-list"></i> <span>Projects</span>
<span class="pull-right-container"><i class="fa fa-angle-left pull-right"></i></span>
</a>
<ul class="treeview-menu">
@can('project_see')<li><a href="{{ route('panel.project') }}"><i class="fas fa-clipboard"></i> Project</a></li>@endcan
@can('order_see')<li><a href="{{ route('panel.order') }}"><i class="fas fa-file-invoice"></i> Order</a></li>@endcan
@can('status_see')<li><a href="{{ route('panel.status') }}"><i class="fas fa-clipboard"></i> Status</a></li>@endcan
</ul>
</li>
@endcanany
<li class="active treeview menu-open">
<a>
<i class="fas fa-user"></i> <span>Management</span>
<span class="pull-right-container"><i class="fa fa-angle-left pull-right"></i></span>
</a>
<ul class="treeview-menu">
<li class="active"><a><i class="fas fa-id-badge"></i> Users</a></li>
@can('roles_see')<li><a href="{{ route('panel.role') }}"><i class="fas fa-lock"></i> Roles</a></li>@endcan
</ul>
</li>
@endsection
@section('content')
<div class="col-lg-8 col-lg-offset-2">
<div class="box box-primary">
<div class="box-header">
<h3 class="box-title">Search</h3>
</div>
<div class="box-body">
<form id="searchForm">
<div class="input-group">
<span class="input-group-addon"><i class="glyphicon glyphicon-tag"></i></span>
<input id="search" type="text" class="form-control" name="search" value="{{ $search }}" placeholder="Search for User by name" autofocus>
</div>
<button class="btn btn-block btn-primary">{{ __('Search') }}</button>
</form>
</div>
</div>
</div>
<div class="col-lg-8 col-lg-offset-2">
<div class="box box-primary">
<div class="box-header">
<h3 class="box-title" style="margin-top: 8px">Users</h3>
@can('user_edit') <small style="float: right"><a class="btn btn-primary" href="{{ route('panel.ums.add') }}">Add</a></small> @endcan
</div>
<div class="box-body">
@if(session('success'))
<div class="alert alert-success" role="alert">
{{ session('success') }}
<a class="close" data-dismiss="alert" aria-label="close">&times;</a>
</div>
@elseif(session('error'))
<div class="alert alert-success" role="alert">
{{ session('error') }}
<a class="close" data-dismiss="alert" aria-label="close">&times;</a>
</div>
@endif
<table class="table table-bordered table-striped">
<thead>
<tr>
<th>Full Name</th>
<th>Role</th>
<th class="hidden-xs hidden-sm hidden-md">Last Active</th>
<th class="text-center" style="width: 155px">Action</th>
</tr>
</thead>
<tbody>
@if(count($users) > 0)
@foreach($users as $user)
<tr>
@php($role = $user->getHighestRole())
<td>{{ $user->fullname() }}</td>
<td><small><span class="role" style="background-color: {{ $role->color }}">{{ $role->readable_name }}</span></small></td>
<td class="hidden-xs hidden-sm hidden-md">@if(!empty($user->last_active)) {{ date('H:i:s d-m-Y', $user->id === Auth::id() ? time() : strtotime($user->last_active)) }} @else {{ __('No Activity') }} @endif</td>
<td style="width: 155px"><a class="btn btn-primary" style="margin-left: 4px" href="{{ route('panel.ums.info', ['id' => $user->id]) }}"><i class="glyphicon glyphicon-info-sign"></i></a> @can('user_edit') <a class="btn btn-primary" style="margin-left: 4px" href="{{ route('panel.ums.edit', ['id' => $user->id]) }}"><i class="glyphicon glyphicon-pencil"></i></a><a class="btn btn-primary" style="margin-left: 4px" href="{{ route('panel.ums.delete', ['id' => $user->id]) }}"><i class="glyphicon glyphicon-trash"></i></a> @endcan </td>
</tr>
@endforeach
@else
<tr>
<td>No Users Found</td>
<td></td>
<td class="hidden-xs hidden-sm hidden-md"></td>
<td></td>
</tr>
@endif
</tbody>
</table>
<nav style="float: right">
<ul class="pagination">
<li @if($page == 1) class="disabled" @endif>
<a @if($page != 1) href="{{ route('panel.ums', ['page' => ($page - 1)]) }}" @endif aria-label="Previous"><span aria-hidden="true">&laquo;</span></a>
</li>
@for($i = 1; $i <= $pages; $i++)
<li @if($i == $page) class="active" @endif>
<a @if($i != $page)href="{{ route('panel.ums', ['page' => $i]) }}" @endif><span>{{ $i }}</span></a>
</li>
@endfor
<li @if($page == $pages) class="disabled" @endif>
<a @if($page != $pages) href="{{ route('panel.ums', ['page' => ($page + 1)]) }}" @endif aria-label="Next"><span aria-hidden="true">»</span></a>
</li>
</ul>
</nav>
</div>
</div>
</div>
@endsection
@section('javascript')
<script>
const search = "{{ $search }}";
const route = "{{ route('panel.ums', ['page' => 1]) }}";
$("form#searchForm").submit(function(e) {
e.preventDefault();
let term = $("form#searchForm input#search").val();
if(term === search)
return;
window.location.replace(route + "/" + term);
});
</script>
@endsection

View file

@ -0,0 +1,62 @@
@extends('layouts.admin')
@section('page', 'Profile')
@section('navigation')
<li class="treeview">
<a>
<i class="fas fa-user"></i> <span>Account</span>
<span class="pull-right-container"><i class="fa fa-angle-left pull-right"></i></span>
</a>
<ul class="treeview-menu">
<li><a href="{{ route('panel.profile') }}"><i class="fas fa-id-badge"></i> Profile</a></li>
<li><a href="{{ route('panel.change') }}"><i class="fas fa-clipboard"></i> Change</a></li>
<li class="hidden-xs"><a href="{{ route('panel.security') }}"><i class="fas fa-lock"></i> Security</a></li>
</ul>
</li>
<li class="header">NAVIGATION</li>
<li>
<a href="{{ route('panel.home') }}"><i class="fas fa-tachometer-alt"></i> <span>Dashboard</span></a>
</li>
@canany(['project_see', 'status_see'])
<li class="treeview">
<a>
<i class="fas fa-list"></i> <span>Projects</span>
<span class="pull-right-container"><i class="fa fa-angle-left pull-right"></i></span>
</a>
<ul class="treeview-menu">
@can('project_see')<li><a href="{{ route('panel.project') }}"><i class="fas fa-clipboard"></i> Project</a></li>@endcan
@can('order_see')<li><a href="{{ route('panel.order') }}"><i class="fas fa-file-invoice"></i> Order</a></li>@endcan
@can('status_see')<li><a href="{{ route('panel.status') }}"><i class="fas fa-clipboard"></i> Status</a></li>@endcan
</ul>
</li>
@endcanany
<li class="active treeview menu-open">
<a>
<i class="fas fa-user"></i> <span>Management</span>
<span class="pull-right-container"><i class="fa fa-angle-left pull-right"></i></span>
</a>
<ul class="treeview-menu">
<li class="active"><a><i class="fas fa-id-badge"></i> Users</a></li>
@can('roles_see')<li><a href="{{ route('panel.role') }}"><i class="fas fa-lock"></i> Roles</a></li>@endcan
</ul>
</li>
@endsection
@section('content')
<div class="col-xs-12 col-lg-6 col-lg-offset-3 col-md-8 col-md-offset-2">
<div class="box box-primary">
<div class="box-header with-border">
<h3 class="box-title">{{ $user->fullname() }}</h3>
<small style="float: right"><a class="btn btn-primary" href="{{ url()->previous() }}">Back</a></small>
</div>
<div class="box-body">
<p><strong>ID: </strong>#{{ $user->id }}
<br><strong>First Name:</strong> {{ $user->firstname }}
<br><strong>Sur Name:</strong> {{ $user->surname }}
<p><strong>Roles: </strong>@php($roles = $user->roles->sortBy('index')->all()) @if(!empty($roles)) {!! implode(' ', array_map(function ($v, $k) { return '<small><span class="role" style="background-color: '.$v->color.'">'.$v->readable_name.'</span></small>'; }, $roles, array_keys($roles))) !!} @else <small><span class="role" style="background-color: #7f8c8d">None</span></small> @endif </p>
<p><strong>Permissions: </strong>@php($permissions = $user->permissions->all()) @if(!empty($permissions)) {!! implode(' ', array_map(function ($v, $k) { return '<small><span class="role" style="background-color: #7f8c8d">'.$v->name.'</span></small>'; }, $permissions, array_keys($permissions))) !!} @else <small><span class="role" style="background-color: #7f8c8d">None</span></small> @endif </p>
</div>
</div>
</div>
@endsection

View file

@ -0,0 +1,63 @@
@extends('layouts.panel')
@section('page', 'Profile')
@section('navigation')
<li class="active treeview menu-open">
<a>
<i class="fas fa-user"></i> <span>Account</span>
<span class="pull-right-container"><i class="fa fa-angle-left pull-right"></i></span>
</a>
<ul class="treeview-menu">
<li class="active"><a><i class="fas fa-id-badge"></i> Profile</a></li>
<li><a href="{{ route('panel.change') }}"><i class="fas fa-clipboard"></i> Change</a></li>
<li class="hidden-xs"><a href="{{ route('panel.security') }}"><i class="fas fa-lock"></i> Security</a></li>
</ul>
</li>
<li class="header">NAVIGATION</li>
<li>
<a href="{{ route('panel.home') }}"><i class="fas fa-tachometer-alt"></i> <span>Dashboard</span></a>
</li>
@canany(['project_see', 'status_see'])
<li class="treeview">
<a>
<i class="fas fa-list"></i> <span>Projects</span>
<span class="pull-right-container"><i class="fa fa-angle-left pull-right"></i></span>
</a>
<ul class="treeview-menu">
@can('project_see')<li><a href="{{ route('panel.project') }}"><i class="fas fa-clipboard"></i> Project</a></li>@endcan
@can('order_see')<li><a href="{{ route('panel.order') }}"><i class="fas fa-file-invoice"></i> Order</a></li>@endcan
@can('status_see')<li><a href="{{ route('panel.status') }}"><i class="fas fa-clipboard"></i> Status</a></li>@endcan
</ul>
</li>
@endcanany
@canany(['roles_see', 'user_see'])
<li class="treeview">
<a>
<i class="fas fa-user"></i> <span>Management</span>
<span class="pull-right-container"><i class="fa fa-angle-left pull-right"></i></span>
</a>
<ul class="treeview-menu">
@can('user_see')<li><a href="{{ route('panel.ums') }}"><i class="fas fa-id-badge"></i> Users</a></li>@endcan
@can('roles_see')<li><a href="{{ route('panel.role') }}"><i class="fas fa-lock"></i> Roles</a></li>@endcan
</ul>
</li>
@endcanany
@endsection
@section('content')
<div class="col-xs-12 col-lg-6 col-lg-offset-3 col-md-8 col-md-offset-2">
<div class="box box-primary">
<div class="box-header with-border">
<h3 class="box-title">{{ Auth::user()->fullname() }}</h3>
<p style="float: right">{{ Auth::user()->created_at->format('d-m-Y') }}</p>
</div>
<div class="box-body">
<p><strong>First Name:</strong> {{ Auth::user()->firstname }}
<br><strong>Sur Name:</strong> {{ Auth::user()->surname }}</p>
<p><strong>Email:</strong> {{ Auth::user()->email }}</p>
<p><strong>2FA:</strong> <span class="role" style="background-color: {{ !is_null(Auth::user()->google2fa_secret) ? "#2ecc71" : "#e74c3c" }}">{{ !is_null(Auth::user()->google2fa_secret) ? "Enabled" : "Disabled" }}</span></p>
</div>
</div>
</div>
@endsection

View file

@ -0,0 +1,234 @@
@extends('layouts.panel')
@section('css')
<link href="{{ asset('assets/css/checkbox.css') }}" rel="stylesheet">
@endsection
@section('page', 'Security')
@section('navigation')
<li class="active treeview menu-open">
<a>
<i class="fas fa-user"></i> <span>Account</span>
<span class="pull-right-container"><i class="fa fa-angle-left pull-right"></i></span>
</a>
<ul class="treeview-menu">
<li><a href="{{ route('panel.profile') }}"><i class="fas fa-id-badge"></i> Profile</a></li>
<li class="active"><a><i class="fas fa-clipboard"></i> Change</a></li>
<li class="hidden-xs"><a href="{{ route('panel.security') }}"><i class="fas fa-lock"></i> Security</a></li>
</ul>
</li>
<li class="header">NAVIGATION</li>
<li>
<a href="{{ route('panel.home') }}"><i class="fas fa-tachometer-alt"></i> <span>Dashboard</span></a>
</li>
@canany(['project_see', 'status_see'])
<li class="treeview">
<a>
<i class="fas fa-list"></i> <span>Projects</span>
<span class="pull-right-container"><i class="fa fa-angle-left pull-right"></i></span>
</a>
<ul class="treeview-menu">
@can('project_see')<li><a href="{{ route('panel.project') }}"><i class="fas fa-clipboard"></i> Project</a></li>@endcan
@can('order_see')<li><a href="{{ route('panel.order') }}"><i class="fas fa-file-invoice"></i> Order</a></li>@endcan
@can('status_see')<li><a href="{{ route('panel.status') }}"><i class="fas fa-clipboard"></i> Status</a></li>@endcan
</ul>
</li>
@endcanany
@canany(['roles_see', 'user_see'])
<li class="treeview">
<a>
<i class="fas fa-user"></i> <span>Management</span>
<span class="pull-right-container"><i class="fa fa-angle-left pull-right"></i></span>
</a>
<ul class="treeview-menu">
@can('user_see')<li><a href="{{ route('panel.ums') }}"><i class="fas fa-id-badge"></i> Users</a></li>@endcan
@can('roles_see')<li><a href="{{ route('panel.role') }}"><i class="fas fa-lock"></i> Roles</a></li>@endcan
</ul>
</li>
@endcanany
@endsection
@section('content')
<div class="row">
<div class="col-xs-12 col-md-4">
<div class="box box-primary">
<div class="box-header with-border">
<h3 class="box-title">Change Password</h3>
</div>
<div class="box-body">
<form method="POST" action="{{ route('panel.change.password') }}" class="col-xs-10 col-xs-offset-1">
@csrf
@if(session('pass_success'))
<div class="alert alert-success" role="alert">
{{ session('pass_success') }}
<a class="close" data-dismiss="alert" aria-label="close">&times;</a>
</div>
@endif
<div class="form-group @error('pass_password') has-error @enderror">
<label for="pass_password" class="text-md-right">{{ __('Current Password:') }}</label>
<div class="input-group">
<span class="input-group-addon"><i class="glyphicon glyphicon-lock"></i></span>
<input id="pass_password" type="password" class="form-control" placeholder="Current Password" name="password" required autocomplete="off" autofocus>
</div>
@error('pass_password')
<span class="help-block">{{ $message }}</span>
@enderror
</div>
<div class="form-group @error('new_password') has-error @enderror">
<label for="new_password" class="text-md-right">{{ __('New Password:') }}</label>
<div class="input-group">
<span class="input-group-addon"><i class="glyphicon glyphicon-lock"></i></span>
<input id="new_password" type="password" class="form-control" placeholder="New Password" name="new_password" required autocomplete="off" autofocus>
</div>
@error('new_password')
<span class="help-block">{{ $message }}</span>
@enderror
</div>
<div class="form-group @error('new_confirm_password') has-error @enderror">
<div class="input-group">
<span class="input-group-addon"><i class="glyphicon glyphicon-lock"></i></span>
<input id="new_confirm_password" type="password" class="form-control" placeholder="Confirm New Password" name="new_confirm_password" required autocomplete="off" autofocus>
</div>
@error('new_confirm_password')
<span class="help-block">{{ $message }}</span>
@enderror
</div>
<button type="submit" class="btn btn-block btn-primary">{{ __('Change Password') }}</button>
</form>
</div>
</div>
</div>
<div class="col-xs-12 col-md-4">
<div class="box box-primary">
<div class="box-header with-border">
<h3 class="box-title">Change Profile</h3>
</div>
<div class="box-body">
<form method="POST" action="{{ route('panel.change.profile') }}" enctype="multipart/form-data" class="col-xs-10 col-xs-offset-1">
@csrf
@if(session('image_success'))
<div class="alert alert-success" role="alert">
{{ session('image_success') }}
<a class="close" data-dismiss="alert" aria-label="close">&times;</a>
</div>
@elseif(session('image_error'))
<div class="alert alert-danger" role="alert">
{{ session('image_error') }}
<a class="close" data-dismiss="alert" aria-label="close">&times;</a>
</div>
@endif
<div class="form-group @error('image') has-error @enderror">
<label for="file">Choose Image:</label>
<input type="file" id="file" name="image" accept="image/*">
@error('image')
<span class="help-block">{{ $message }}</span>
@enderror
</div>
@if(Auth::user()->image_changed)
<div class="checkbox">
<label>
<strong>{{ __('Or Reset:') }}</strong>
<input type="checkbox" name="reset-image">
<span class="cr"><i class="cr-icon glyphicon glyphicon-ok"></i></span>
</label>
</div>
@endif
<button type="submit" class="btn btn-block btn-primary">{{ __('Change Profile') }}</button>
</form>
</div>
</div>
</div>
<div class="col-xs-12 col-md-4">
<div class="box box-primary">
<div class="box-header with-border">
<h3 class="box-title">Change Email</h3>
</div>
<div class="box-body">
<form method="POST" action="{{ route('panel.change.email') }}" class="col-xs-10 col-xs-offset-1">
@csrf
@if(session('email_success'))
<div class="alert alert-success" role="alert">
{{ session('email_success') }}
<a class="close" data-dismiss="alert" aria-label="close">&times;</a>
</div>
@endif
<div class="form-group @error('email_password') has-error @enderror">
<label for="email_password" class="text-md-right">{{ __('Current Password:') }}</label>
<div class="input-group">
<span class="input-group-addon"><i class="glyphicon glyphicon-lock"></i></span>
<input id="email_password" type="password" class="form-control" placeholder="Current Password" name="password" required autocomplete="off" autofocus>
</div>
@error('email_password')
<span class="help-block">{{ $message }}</span>
@enderror
</div>
<div class="form-group @error('new_email') has-error @enderror">
<label for="new_email" class="text-md-right">{{ __('New Email:') }}</label>
<div class="input-group">
<span class="input-group-addon"><i class="glyphicon glyphicon-envelope"></i></span>
<input id="new_email" type="email" class="form-control" placeholder="New Email" name="new_email" required autocomplete="off" autofocus>
</div>
@error('new_email')
<span class="help-block">{{ $message }}</span>
@enderror
</div>
<div class="form-group @error('new_confirm_email') has-error @enderror">
<div class="input-group">
<span class="input-group-addon"><i class="glyphicon glyphicon-envelope"></i></span>
<input id="new_confirm_email" type="email" class="form-control" placeholder="Confirm New Email" name="new_confirm_email" required autocomplete="off" autofocus>
</div>
@error('new_confirm_email')
<span class="help-block">{{ $message }}</span>
@enderror
</div>
<button type="submit" class="btn btn-block btn-primary">{{ __('Change Email') }}</button>
</form>
</div>
</div>
</div>
</div>
@endsection
@section('javascript')
<script src="{{ asset('assets/js/bootstrap-filestyle.min.js') }}"></script>
<script>
$('#file').filestyle({
iconName : 'glyphicon glyphicon-picture',
buttonText : 'Select File',
buttonName : 'btn-primary'
});
</script>
<script>
window.onload = function() {
const passInput = document.getElementById('new_confirm_password');
passInput.onpaste = function(e) {
e.preventDefault();
};
const emailInput = document.getElementById('new_confirm_email');
emailInput.onpaste = function(e) {
e.preventDefault();
};
};
</script>
@endsection

View file

@ -0,0 +1,68 @@
@extends('layouts.panel')
@section('navigation')
<ul class="nav navbar-nav">
<li class="active"><a>Home</a></li>
<!-- <li><a href="email.php">Email</a></li>
<li><a href="password.php">Password</a></li> -->
</ul>
<ul class="nav navbar-nav navbar-right">
<li class="dropdown">
<a class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">{{ Auth::user()->username() }}<span class="caret"></span></a>
<ul class="dropdown-menu">
<li><a href="../index.php">Panel</a></li>
@if(Auth::user()->is_admin || Auth::user()->is_root)
<li><a href="admin/">Admin</a></li>
<li role="separator" class="divider"></li>
@endif
<li><a href="{{ route('logout') }}">Logout</a></li>
</ul>
</li>
</ul>
@endsection
@section('content')
<div class="container-fluid" style="margin-top: 75px">
<?php if($shows != null && !empty($shows)) {
foreach($shows as $row) {
if(strtotime($row['showDate']) < strtotime(date("H:i j-n-Y", time())))
continue; ?>
<div class="col-lg-6 col-lg-offset-3 col-md-8 col-md-offset-2">
<div class="panel panel-theme">
<div class="panel-heading">
<h3 class="panel-title"><?php echo $row['showName']; ?></h3>
</div>
<div class="panel-body">
<div class="container-fluid">
<div class="row">
<div class="col-xs-12 col-lg-9 col-md-9 col-sm-9">
<p><?php echo $row['showDescription']; ?></p>
<p class="bottom"><strong>Date: </strong><?php echo $row['showDate']; ?></p>
<p><strong>Seat: </strong><?php echo $row['showSeat']; ?></p>
<p><strong>Voucher: </strong><?php echo $row['voucher']; ?></p>
</div>
<div class="hidden-xs col-lg-3 col-md-3 col-sm-3">
<img src="<?php echo $row['showImage']; ?>" style="float: right; height: auto; width: 100%; margin: auto" alt="Image">
</div>
</div>
</div>
</div>
</div>
</div>
<?php }
} else { ?>
<div class="col-lg-6 col-lg-offset-3 col-md-8 col-md-offset-2">
<div class="panel panel-theme">
<div class="panel-heading">
<h3 class="panel-title">No Shows</h3>
</div>
<div class="panel-body">
<div class="container-fluid">
<p>You have no tickets for shows.</p>
</div>
</div>
</div>
</div>
<?php } ?>
</div>
@endsection

View file

@ -0,0 +1,174 @@
@extends('layouts.panel')
@section('page', 'Security')
@section('navigation')
<li class="active treeview menu-open">
<a>
<i class="fas fa-user"></i> <span>Account</span>
<span class="pull-right-container"><i class="fa fa-angle-left pull-right"></i></span>
</a>
<ul class="treeview-menu">
<li><a href="{{ route('panel.profile') }}"><i class="fas fa-id-badge"></i> Profile</a></li>
<li><a href="{{ route('panel.change') }}"><i class="fas fa-clipboard"></i> Change</a></li>
<li class="active"><a><i class="fas fa-lock"></i> Security</a></li>
</ul>
</li>
<li class="header">NAVIGATION</li>
<li>
<a href="{{ route('panel.home') }}"><i class="fas fa-tachometer-alt"></i> <span>Dashboard</span></a>
</li>
@canany(['project_see', 'status_see'])
<li class="treeview">
<a>
<i class="fas fa-list"></i> <span>Projects</span>
<span class="pull-right-container"><i class="fa fa-angle-left pull-right"></i></span>
</a>
<ul class="treeview-menu">
@can('project_see')<li><a href="{{ route('panel.project') }}"><i class="fas fa-clipboard"></i> Project</a></li>@endcan
@can('order_see')<li><a href="{{ route('panel.order') }}"><i class="fas fa-file-invoice"></i> Order</a></li>@endcan
@can('status_see')<li><a href="{{ route('panel.status') }}"><i class="fas fa-clipboard"></i> Status</a></li>@endcan
</ul>
</li>
@endcanany
@canany(['roles_see', 'user_see'])
<li class="treeview">
<a>
<i class="fas fa-user"></i> <span>Management</span>
<span class="pull-right-container"><i class="fa fa-angle-left pull-right"></i></span>
</a>
<ul class="treeview-menu">
@can('user_see')<li><a href="{{ route('panel.ums') }}"><i class="fas fa-id-badge"></i> Users</a></li>@endcan
@can('roles_see')<li><a href="{{ route('panel.role') }}"><i class="fas fa-lock"></i> Roles</a></li>@endcan
</ul>
</li>
@endcanany
@endsection
@section('content')
<div class="row">
<div class="col-xs-12 col-md-4 hidden-xs">
<div class="box box-primary">
<div class="box-header with-border">
<h3 class="box-title">Two-Factor Authentication</h3>
</div>
<div class="box-body">
@if($TFA)
<form method="POST" action="{{ route('2fa.toggle') }}" class="col-xs-10 col-xs-offset-1">
@csrf
@if(session('success'))
<div class="alert alert-success" role="alert">
{{ session('success') }}
<a class="close" data-dismiss="alert" aria-label="close">&times;</a>
</div>
@endif
<div class="form-group @error('two_factor') has-error @enderror">
<label for="two_factor" class="text-md-right">{{ __('2FA Code:') }}</label>
<div class="input-group">
<span class="input-group-addon"><i class="glyphicon glyphicon-lock"></i></span>
<input id="two_factor" type="text" maxlength="6" class="form-control" name="two_factor" required autocomplete="off" autofocus>
</div>
@error('two_factor')
<span class="help-block">{{ $message }}</span>
@enderror
</div>
<button type="submit" class="btn btn-block btn-primary">{{ __('Disable 2FA') }}</button>
</form>
@else
<form method="POST" action="{{ route('2fa.toggle') }}" class="col-xs-10 col-xs-offset-1">
@csrf
@if(session('success'))
<div class="alert alert-success" role="alert">
{{ session('success') }}
<a class="close" data-dismiss="alert" aria-label="close">&times;</a>
</div>
@endif
<div class="text-center">
<img src="{{ $QRCode }}" style="max-width: 250px; max-height: 250px; width: 100%; height: auto">
</div>
<div class="form-group @error('two_factor') has-error @enderror">
<label for="two_factor" class="text-md-right">{{ __('2FA Code:') }}</label>
<div class="input-group">
<span class="input-group-addon"><i class="glyphicon glyphicon-lock"></i></span>
<input id="two_factor" type="text" maxlength="6" class="form-control" name="two_factor" required autocomplete="off" autofocus>
</div>
@error('two_factor')
<span class="help-block">{{ $message }}</span>
@enderror
</div>
<button type="submit" class="btn btn-block btn-primary">{{ __('Enable 2FA') }}</button>
</form>
@endif
</div>
</div>
</div>
<div class="col-xs-12 col-md-8">
<div class="box box-primary">
<div class="box-header">
<h3 class="box-title">Sessions</h3>
</div>
<div class="box-body">
<table class="table table-bordered table-striped">
<thead>
<tr>
<th class="ip">IP</th>
<th class="hidden-xs hidden-sm hidden-md">Country</th>
<th class="hidden-xs hidden-sm hidden-md">Browser</th>
<th class="hidden-xs">Last Activity</th>
<th style="width: 50px" class="text-center">Action</th>
</tr>
</thead>
<tbody>
<tr>
<td class="ip">
<code><i class="fa fa-key"></i> @if(filter_var(Request::ip(), FILTER_VALIDATE_IP, FILTER_FLAG_IPV6)) ••••:••••:••••:••••:••••:••••:••••:••••@else •••.•••.•••.••• @endif</code>
<code class="hidden"><i class="fa fa-eye-slash"></i> {{ Request::ip() }}</code>
</td>
<td class="hidden-xs hidden-sm hidden-md">{{ geoip(Request::ip())['country'] }}</td>
<td class="hidden-xs hidden-sm hidden-md">{{ $agent->browser() }}</td>
<td class="hidden-xs">{{ date('H:i:s d-m-Y', time()) }}</td>
<td></td>
</tr>
@foreach($sessions as $session)
@php($agent->setUserAgent($session->user_agent))
<tr>
<td>
<code><i class="fa fa-key"></i> @if(filter_var($session->ip_address, FILTER_VALIDATE_IP, FILTER_FLAG_IPV6)) ••••:••••:••••:••••:••••:••••:••••:••••@else •••.•••.•••.••• @endif</code>
<code class="hidden"><i class="fa fa-eye-slash"></i> {{ $session->ip_address }}</code>
</td>
<td class="hidden-xs hidden-sm hidden-md">{{ geoip($session->ip_address)['country'] }}</td>
<td class="hidden-xs hidden-sm hidden-md">{{ $agent->browser() }}</td>
<td class="hidden-xs">{{ date('H:i:s d-m-Y', $session->last_activity) }}</td>
<td><a href="{{ route('panel.session.delete', ['id' => $session->id]) }}" class="btn btn-primary btn-block"><span class="glyphicon glyphicon-trash"></span></a></td>
</tr>
@endforeach
</tbody>
</table>
<nav style="float: right">
<ul class="pagination">
<li @if($page == 1) class="disabled" @endif>
<a @if($page != 1) href="{{ route('panel.account', ['page' => ($page - 1)]) }}" @endif aria-label="Previous"><span aria-hidden="true">&laquo;</span></a>
</li>
@for($i = 1; $i <= $pages; $i++)
<li @if($i == $page) class="active" @endif>
<a @if($i != $page)href="{{ route('panel.account', ['page' => $i]) }}" @endif><span>{{ $i }}</span></a>
</li>
@endfor
<li @if($page == $pages) class="disabled" @endif>
<a @if($page != $pages) href="{{ route('panel.account', ['page' => ($page + 1)]) }}" @endif aria-label="Next"><span aria-hidden="true">»</span></a>
</li>
</ul>
</nav>
</div>
</div>
</div>
</div>
@endsection