├── public ├── output ├── favicon.ico ├── js │ ├── main.js │ └── app.js.LICENSE.txt ├── robots.txt ├── dashboard │ ├── assets │ │ ├── scss │ │ │ ├── paper-dashboard │ │ │ │ ├── cards │ │ │ │ │ ├── _card-map.scss │ │ │ │ │ ├── _card-plain.scss │ │ │ │ │ ├── _card-chart.scss │ │ │ │ │ ├── _card-stats.scss │ │ │ │ │ └── _card-user.scss │ │ │ │ ├── mixins │ │ │ │ │ ├── _cards.scss │ │ │ │ │ ├── _transparency.scss │ │ │ │ │ ├── _page-header.scss │ │ │ │ │ └── _dropdown.scss │ │ │ │ ├── _images.scss │ │ │ │ ├── _mixins.scss │ │ │ │ ├── _footers.scss │ │ │ │ ├── _animated-buttons.scss │ │ │ │ ├── _alerts.scss │ │ │ │ ├── _page-header.scss │ │ │ │ ├── _misc.scss │ │ │ │ └── _cards.scss │ │ │ └── paper-dashboard.scss │ │ ├── img │ │ │ ├── bg5.jpg │ │ │ ├── mike.jpg │ │ │ ├── favicon.png │ │ │ ├── header.jpg │ │ │ ├── apple-icon.png │ │ │ ├── logo-small.png │ │ │ ├── damir-bosnjak.jpg │ │ │ ├── jan-sendereks.jpg │ │ │ ├── default-avatar.png │ │ │ └── faces │ │ │ │ ├── kaci-baum-1.jpg │ │ │ │ ├── kaci-baum-2.jpg │ │ │ │ ├── joe-gardner-1.jpg │ │ │ │ ├── joe-gardner-2.jpg │ │ │ │ ├── ayo-ogunseinde-1.jpg │ │ │ │ ├── ayo-ogunseinde-2.jpg │ │ │ │ ├── clem-onojeghuo-1.jpg │ │ │ │ ├── clem-onojeghuo-2.jpg │ │ │ │ ├── clem-onojeghuo-3.jpg │ │ │ │ ├── clem-onojeghuo-4.jpg │ │ │ │ ├── erik-lucatero-1.jpg │ │ │ │ └── erik-lucatero-2.jpg │ │ ├── fonts │ │ │ ├── nucleo-icons.eot │ │ │ ├── nucleo-icons.ttf │ │ │ ├── nucleo-icons.woff │ │ │ └── nucleo-icons.woff2 │ │ ├── datatable │ │ │ ├── rowReorder.dataTables.min.css │ │ │ ├── dataTables.bootstrap4.min.js │ │ │ └── responsive.dataTables.min.css │ │ ├── cam │ │ │ ├── index.html │ │ │ ├── cam.css │ │ │ └── cam.js │ │ ├── js │ │ │ └── paper-dashboard.js.map │ │ └── demo │ │ │ └── demo.css │ ├── package.json │ ├── CHANGELOG.md │ ├── gulpfile.js │ └── LICENSE ├── mix-manifest.json ├── .htaccess ├── index.php └── css │ └── style.css ├── bootstrap ├── cache │ └── .gitignore └── app.php ├── storage ├── logs │ └── .gitignore ├── framework │ ├── testing │ │ └── .gitignore │ ├── views │ │ └── .gitignore │ ├── cache │ │ ├── data │ │ │ └── .gitignore │ │ └── .gitignore │ ├── sessions │ │ └── .gitignore │ └── .gitignore └── app │ └── public │ └── profile-pic │ └── 1586777833.jpg ├── database ├── .gitignore ├── seeds │ ├── PermissionSeed.php │ ├── DatabaseSeeder.php │ ├── RoleSeed.php │ └── UserSeed.php ├── migrations │ ├── 2014_10_12_100000_create_password_resets_table.php │ ├── 2020_04_03_131427_create_trackers_table.php │ ├── 2019_08_19_000000_create_failed_jobs_table.php │ ├── 2020_04_03_132037_create_user_login_logs_table.php │ └── 2014_10_12_000000_create_users_table.php └── factories │ └── UserFactory.php ├── screens ├── 1.PNG ├── 2.PNG ├── 3.PNG └── 4.PNG ├── resources ├── views │ ├── errors │ │ ├── 404.blade.php │ │ ├── 401.blade.php │ │ ├── 419.blade.php │ │ ├── 500.blade.php │ │ ├── 429.blade.php │ │ ├── 403.blade.php │ │ ├── 503.blade.php │ │ ├── layout.blade.php │ │ ├── minimal.blade.php │ │ └── custom-message.blade.php │ ├── layouts │ │ ├── partials │ │ │ ├── footer.blade.php │ │ │ ├── side-bar.blade.php │ │ │ └── nav.blade.php │ │ └── app.blade.php │ ├── home.blade.php │ ├── auth │ │ ├── verify.blade.php │ │ ├── passwords │ │ │ ├── email.blade.php │ │ │ ├── confirm.blade.php │ │ │ └── reset.blade.php │ │ └── login.blade.php │ ├── admin │ │ ├── permissions │ │ │ ├── create.blade.php │ │ │ ├── edit.blade.php │ │ │ └── index.blade.php │ │ ├── roles │ │ │ ├── create.blade.php │ │ │ ├── edit.blade.php │ │ │ └── index.blade.php │ │ ├── activity │ │ │ └── logs.blade.php │ │ └── users │ │ │ └── index.blade.php │ └── welcome.blade.php ├── sass │ ├── app.scss │ └── _variables.scss ├── lang │ └── en │ │ ├── pagination.php │ │ ├── auth.php │ │ └── passwords.php └── js │ ├── components │ └── ExampleComponent.vue │ ├── app.js │ └── bootstrap.js ├── app ├── Http │ ├── Controllers │ │ ├── SiteController.php │ │ ├── Controller.php │ │ ├── HomeController.php │ │ ├── Auth │ │ │ ├── ForgotPasswordController.php │ │ │ ├── ResetPasswordController.php │ │ │ ├── ConfirmPasswordController.php │ │ │ ├── VerificationController.php │ │ │ ├── LoginController.php │ │ │ └── RegisterController.php │ │ ├── feddback │ │ │ └── FeedbackController.php │ │ ├── Users │ │ │ └── ProfileController.php │ │ └── Admin │ │ │ └── PermissionsController.php │ ├── Middleware │ │ ├── EncryptCookies.php │ │ ├── CheckForMaintenanceMode.php │ │ ├── TrimStrings.php │ │ ├── TrustProxies.php │ │ ├── Authenticate.php │ │ ├── VerifyCsrfToken.php │ │ └── RedirectIfAuthenticated.php │ └── Kernel.php ├── Tracker.php ├── UserLoginLog.php ├── Providers │ ├── BroadcastServiceProvider.php │ ├── AppServiceProvider.php │ ├── WebLoginListener.php │ ├── UserLoginEventListner.php │ ├── AuthServiceProvider.php │ ├── EventServiceProvider.php │ └── RouteServiceProvider.php ├── Capturegc.php ├── Listeners │ └── Users │ │ └── UserLoginListener.php ├── Events │ ├── UserLoginEvent.php │ └── UserEvent.php ├── Console │ └── Kernel.php ├── User.php └── Exceptions │ └── Handler.php ├── tests ├── TestCase.php ├── Unit │ └── ExampleTest.php ├── Feature │ └── ExampleTest.php └── CreatesApplication.php ├── .styleci.yml ├── routes ├── channels.php ├── api.php ├── console.php └── web.php ├── webpack.mix.js ├── server.php ├── config ├── cors.php ├── services.php ├── view.php ├── hashing.php ├── broadcasting.php ├── filesystems.php ├── queue.php ├── logging.php ├── cache.php └── mail.php ├── .env.example ├── package.json ├── phpunit.xml ├── README.md ├── artisan └── composer.json /public/output: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /public/favicon.ico: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /public/js/main.js: -------------------------------------------------------------------------------- 1 | // Custom Javascript -------------------------------------------------------------------------------- /bootstrap/cache/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /storage/logs/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /database/.gitignore: -------------------------------------------------------------------------------- 1 | *.sqlite 2 | *.sqlite-journal 3 | -------------------------------------------------------------------------------- /public/robots.txt: -------------------------------------------------------------------------------- 1 | User-agent: * 2 | Disallow: 3 | -------------------------------------------------------------------------------- /storage/framework/testing/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /storage/framework/views/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /storage/framework/cache/data/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /storage/framework/sessions/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /storage/framework/cache/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !data/ 3 | !.gitignore 4 | -------------------------------------------------------------------------------- /public/dashboard/assets/scss/paper-dashboard/cards/_card-map.scss: -------------------------------------------------------------------------------- 1 | .map{ 2 | height: 500px; 3 | } 4 | -------------------------------------------------------------------------------- /public/mix-manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "/js/app.js": "/js/app.js", 3 | "/css/app.css": "/css/app.css" 4 | } 5 | -------------------------------------------------------------------------------- /screens/1.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mahanteshkumbar/Laravel7.x-Roles-Permissions-Admin-Paper-Dashboard-bootstrap4/HEAD/screens/1.PNG -------------------------------------------------------------------------------- /screens/2.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mahanteshkumbar/Laravel7.x-Roles-Permissions-Admin-Paper-Dashboard-bootstrap4/HEAD/screens/2.PNG -------------------------------------------------------------------------------- /screens/3.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mahanteshkumbar/Laravel7.x-Roles-Permissions-Admin-Paper-Dashboard-bootstrap4/HEAD/screens/3.PNG -------------------------------------------------------------------------------- /screens/4.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mahanteshkumbar/Laravel7.x-Roles-Permissions-Admin-Paper-Dashboard-bootstrap4/HEAD/screens/4.PNG -------------------------------------------------------------------------------- /storage/framework/.gitignore: -------------------------------------------------------------------------------- 1 | config.php 2 | routes.php 3 | schedule-* 4 | compiled.php 5 | services.json 6 | events.scanned.php 7 | routes.scanned.php 8 | down 9 | -------------------------------------------------------------------------------- /public/dashboard/assets/scss/paper-dashboard/mixins/_cards.scss: -------------------------------------------------------------------------------- 1 | @mixin icon-color($color) { 2 | box-shadow: 0px 9px 30px -6px $color; 3 | color: $color; 4 | } 5 | -------------------------------------------------------------------------------- /public/dashboard/assets/img/bg5.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mahanteshkumbar/Laravel7.x-Roles-Permissions-Admin-Paper-Dashboard-bootstrap4/HEAD/public/dashboard/assets/img/bg5.jpg -------------------------------------------------------------------------------- /resources/views/errors/404.blade.php: -------------------------------------------------------------------------------- 1 | @extends('errors::minimal') 2 | 3 | @section('title', __('Not Found')) 4 | @section('code', '404') 5 | @section('message', __('Not Found')) 6 | -------------------------------------------------------------------------------- /public/dashboard/assets/img/mike.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mahanteshkumbar/Laravel7.x-Roles-Permissions-Admin-Paper-Dashboard-bootstrap4/HEAD/public/dashboard/assets/img/mike.jpg -------------------------------------------------------------------------------- /resources/views/errors/401.blade.php: -------------------------------------------------------------------------------- 1 | @extends('errors::minimal') 2 | 3 | @section('title', __('Unauthorized')) 4 | @section('code', '401') 5 | @section('message', __('Unauthorized')) 6 | -------------------------------------------------------------------------------- /resources/views/errors/419.blade.php: -------------------------------------------------------------------------------- 1 | @extends('errors::minimal') 2 | 3 | @section('title', __('Page Expired')) 4 | @section('code', '419') 5 | @section('message', __('Page Expired')) 6 | -------------------------------------------------------------------------------- /resources/views/errors/500.blade.php: -------------------------------------------------------------------------------- 1 | @extends('errors::minimal') 2 | 3 | @section('title', __('Server Error')) 4 | @section('code', '500') 5 | @section('message', __('Server Error')) 6 | -------------------------------------------------------------------------------- /public/dashboard/assets/img/favicon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mahanteshkumbar/Laravel7.x-Roles-Permissions-Admin-Paper-Dashboard-bootstrap4/HEAD/public/dashboard/assets/img/favicon.png -------------------------------------------------------------------------------- /public/dashboard/assets/img/header.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mahanteshkumbar/Laravel7.x-Roles-Permissions-Admin-Paper-Dashboard-bootstrap4/HEAD/public/dashboard/assets/img/header.jpg -------------------------------------------------------------------------------- /public/dashboard/assets/img/apple-icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mahanteshkumbar/Laravel7.x-Roles-Permissions-Admin-Paper-Dashboard-bootstrap4/HEAD/public/dashboard/assets/img/apple-icon.png -------------------------------------------------------------------------------- /public/dashboard/assets/img/logo-small.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mahanteshkumbar/Laravel7.x-Roles-Permissions-Admin-Paper-Dashboard-bootstrap4/HEAD/public/dashboard/assets/img/logo-small.png -------------------------------------------------------------------------------- /resources/views/errors/429.blade.php: -------------------------------------------------------------------------------- 1 | @extends('errors::minimal') 2 | 3 | @section('title', __('Too Many Requests')) 4 | @section('code', '429') 5 | @section('message', __('Too Many Requests')) 6 | -------------------------------------------------------------------------------- /public/dashboard/assets/img/damir-bosnjak.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mahanteshkumbar/Laravel7.x-Roles-Permissions-Admin-Paper-Dashboard-bootstrap4/HEAD/public/dashboard/assets/img/damir-bosnjak.jpg -------------------------------------------------------------------------------- /public/dashboard/assets/img/jan-sendereks.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mahanteshkumbar/Laravel7.x-Roles-Permissions-Admin-Paper-Dashboard-bootstrap4/HEAD/public/dashboard/assets/img/jan-sendereks.jpg -------------------------------------------------------------------------------- /storage/app/public/profile-pic/1586777833.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mahanteshkumbar/Laravel7.x-Roles-Permissions-Admin-Paper-Dashboard-bootstrap4/HEAD/storage/app/public/profile-pic/1586777833.jpg -------------------------------------------------------------------------------- /public/dashboard/assets/fonts/nucleo-icons.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mahanteshkumbar/Laravel7.x-Roles-Permissions-Admin-Paper-Dashboard-bootstrap4/HEAD/public/dashboard/assets/fonts/nucleo-icons.eot -------------------------------------------------------------------------------- /public/dashboard/assets/fonts/nucleo-icons.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mahanteshkumbar/Laravel7.x-Roles-Permissions-Admin-Paper-Dashboard-bootstrap4/HEAD/public/dashboard/assets/fonts/nucleo-icons.ttf -------------------------------------------------------------------------------- /public/dashboard/assets/fonts/nucleo-icons.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mahanteshkumbar/Laravel7.x-Roles-Permissions-Admin-Paper-Dashboard-bootstrap4/HEAD/public/dashboard/assets/fonts/nucleo-icons.woff -------------------------------------------------------------------------------- /public/dashboard/assets/img/default-avatar.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mahanteshkumbar/Laravel7.x-Roles-Permissions-Admin-Paper-Dashboard-bootstrap4/HEAD/public/dashboard/assets/img/default-avatar.png -------------------------------------------------------------------------------- /public/dashboard/assets/scss/paper-dashboard/_images.scss: -------------------------------------------------------------------------------- 1 | img{ 2 | max-width: 100%; 3 | border-radius: $border-radius-small; 4 | } 5 | .img-raised{ 6 | box-shadow: $box-shadow-raised; 7 | } 8 | -------------------------------------------------------------------------------- /public/dashboard/assets/fonts/nucleo-icons.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mahanteshkumbar/Laravel7.x-Roles-Permissions-Admin-Paper-Dashboard-bootstrap4/HEAD/public/dashboard/assets/fonts/nucleo-icons.woff2 -------------------------------------------------------------------------------- /public/dashboard/assets/img/faces/kaci-baum-1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mahanteshkumbar/Laravel7.x-Roles-Permissions-Admin-Paper-Dashboard-bootstrap4/HEAD/public/dashboard/assets/img/faces/kaci-baum-1.jpg -------------------------------------------------------------------------------- /public/dashboard/assets/img/faces/kaci-baum-2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mahanteshkumbar/Laravel7.x-Roles-Permissions-Admin-Paper-Dashboard-bootstrap4/HEAD/public/dashboard/assets/img/faces/kaci-baum-2.jpg -------------------------------------------------------------------------------- /resources/sass/app.scss: -------------------------------------------------------------------------------- 1 | // Fonts 2 | @import url('https://fonts.googleapis.com/css?family=Nunito'); 3 | 4 | // Variables 5 | @import 'variables'; 6 | 7 | // Bootstrap 8 | @import '~bootstrap/scss/bootstrap'; 9 | -------------------------------------------------------------------------------- /resources/views/errors/403.blade.php: -------------------------------------------------------------------------------- 1 | @extends('errors::minimal') 2 | 3 | @section('title', __('Forbidden')) 4 | @section('code', '403') 5 | @section('message', __($exception->getMessage() ?: 'Forbidden')) 6 | -------------------------------------------------------------------------------- /public/dashboard/assets/img/faces/joe-gardner-1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mahanteshkumbar/Laravel7.x-Roles-Permissions-Admin-Paper-Dashboard-bootstrap4/HEAD/public/dashboard/assets/img/faces/joe-gardner-1.jpg -------------------------------------------------------------------------------- /public/dashboard/assets/img/faces/joe-gardner-2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Mahanteshkumbar/Laravel7.x-Roles-Permissions-Admin-Paper-Dashboard-bootstrap4/HEAD/public/dashboard/assets/img/faces/joe-gardner-2.jpg -------------------------------------------------------------------------------- /app/Http/Controllers/SiteController.php: -------------------------------------------------------------------------------- 1 | getMessage() ?: 'Service Unavailable')) 6 | -------------------------------------------------------------------------------- /tests/TestCase.php: -------------------------------------------------------------------------------- 1 | assertTrue(true); 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /public/dashboard/assets/datatable/rowReorder.dataTables.min.css: -------------------------------------------------------------------------------- 1 | table.dt-rowReorder-float{position:absolute !important;opacity:0.8;table-layout:fixed;outline:2px solid #888;outline-offset:-2px;z-index:2001}tr.dt-rowReorder-moving{outline:2px solid #555;outline-offset:-2px}body.dt-rowReorder-noOverflow{overflow-x:hidden}table.dataTable td.reorder{text-align:center;cursor:move} 2 | -------------------------------------------------------------------------------- /app/UserLoginLog.php: -------------------------------------------------------------------------------- 1 | 'admin']); 16 | Permission::create(['name' => 'user']); 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /app/Http/Controllers/Controller.php: -------------------------------------------------------------------------------- 1 | get('/'); 18 | 19 | $response->assertStatus(200); 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /database/seeds/DatabaseSeeder.php: -------------------------------------------------------------------------------- 1 | call(UsersTableSeeder::class); 15 | $this->call(PermissionSeed::class); 16 | $this->call(RoleSeed::class); 17 | $this->call(UserSeed::class); 18 | 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /tests/CreatesApplication.php: -------------------------------------------------------------------------------- 1 | make(Kernel::class)->bootstrap(); 19 | 20 | return $app; 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /app/Providers/BroadcastServiceProvider.php: -------------------------------------------------------------------------------- 1 | 'admin']); 16 | $role->givePermissionTo('admin'); 17 | 18 | $role = Role::create(['name' => 'user']); 19 | $role->givePermissionTo('user'); 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /public/dashboard/assets/scss/paper-dashboard/mixins/_page-header.scss: -------------------------------------------------------------------------------- 1 | @mixin linear-gradient($color1, $color2){ 2 | background: $color1; /* For browsers that do not support gradients */ 3 | background: -webkit-linear-gradient(90deg, $color1 , $color2); /* For Safari 5.1 to 6.0 */ 4 | background: -o-linear-gradient(90deg, $color1, $color2); /* For Opera 11.1 to 12.0 */ 5 | background: -moz-linear-gradient(90deg, $color1, $color2); /* For Firefox 3.6 to 15 */ 6 | background: linear-gradient(0deg, $color1 , $color2); /* Standard syntax */ 7 | } 8 | -------------------------------------------------------------------------------- /app/Providers/AppServiceProvider.php: -------------------------------------------------------------------------------- 1 | ", 8 | "devDependencies": { 9 | "gulp": "^3.9.1", 10 | "gulp-autoprefixer": "^5.0.0", 11 | "gulp-clean": "^0.4.0", 12 | "gulp-install": "^1.1.0", 13 | "gulp-sass": "^4.0.1", 14 | "gulp-sourcemaps": "^2.6.4", 15 | "gulp-open": "^3.0.1" 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /routes/channels.php: -------------------------------------------------------------------------------- 1 | id === (int) $id; 16 | }); 17 | -------------------------------------------------------------------------------- /app/Http/Middleware/Authenticate.php: -------------------------------------------------------------------------------- 1 | expectsJson()) { 18 | return route('login'); 19 | } 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /app/Http/Middleware/VerifyCsrfToken.php: -------------------------------------------------------------------------------- 1 | get('/user', function (Request $request) { 17 | return $request->user(); 18 | }); 19 | -------------------------------------------------------------------------------- /app/Http/Controllers/HomeController.php: -------------------------------------------------------------------------------- 1 | middleware('auth'); 17 | } 18 | 19 | /** 20 | * Show the application dashboard. 21 | * 22 | * @return \Illuminate\Contracts\Support\Renderable 23 | */ 24 | public function index() 25 | { 26 | return view('home'); 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /resources/lang/en/pagination.php: -------------------------------------------------------------------------------- 1 | '« Previous', 17 | 'next' => 'Next »', 18 | 19 | ]; 20 | -------------------------------------------------------------------------------- /routes/console.php: -------------------------------------------------------------------------------- 1 | comment(Inspiring::quote()); 18 | })->describe('Display an inspiring quote'); 19 | -------------------------------------------------------------------------------- /app/Providers/WebLoginListener.php: -------------------------------------------------------------------------------- 1 | 8 | */ 9 | 10 | $uri = urldecode( 11 | parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH) 12 | ); 13 | 14 | // This file allows us to emulate Apache's "mod_rewrite" functionality from the 15 | // built-in PHP web server. This provides a convenient way to test a Laravel 16 | // application without having installed a "real" web server software here. 17 | if ($uri !== '/' && file_exists(__DIR__.'/public'.$uri)) { 18 | return false; 19 | } 20 | 21 | require_once __DIR__.'/public/index.php'; 22 | -------------------------------------------------------------------------------- /app/Providers/UserLoginEventListner.php: -------------------------------------------------------------------------------- 1 | 2 |
3 |
4 | 11 |
12 | 13 | © 14 | , made with 17 | 18 |
19 |
20 |
21 | -------------------------------------------------------------------------------- /resources/js/components/ExampleComponent.vue: -------------------------------------------------------------------------------- 1 | 16 | 17 | 24 | -------------------------------------------------------------------------------- /public/.htaccess: -------------------------------------------------------------------------------- 1 | 2 | 3 | Options -MultiViews -Indexes 4 | 5 | 6 | RewriteEngine On 7 | 8 | # Handle Authorization Header 9 | RewriteCond %{HTTP:Authorization} . 10 | RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}] 11 | 12 | # Redirect Trailing Slashes If Not A Folder... 13 | RewriteCond %{REQUEST_FILENAME} !-d 14 | RewriteCond %{REQUEST_URI} (.+)/$ 15 | RewriteRule ^ %1 [L,R=301] 16 | 17 | # Handle Front Controller... 18 | RewriteCond %{REQUEST_FILENAME} !-d 19 | RewriteCond %{REQUEST_FILENAME} !-f 20 | RewriteRule ^ index.php [L] 21 | 22 | -------------------------------------------------------------------------------- /resources/views/home.blade.php: -------------------------------------------------------------------------------- 1 | @extends('layouts.app') 2 | 3 | @section('content') 4 |
5 | @include('layouts.partials.side-bar') 6 |
7 | 8 | @include('layouts.partials.nav') 9 | 10 | 11 | @if(Route::is('home')) 12 | @include('layouts.partials.dashboard') 13 | @endif 14 | 15 | @include('errors.custom-message') 16 | 17 | @yield('index') 18 | 19 | 20 | 21 | @include('layouts.partials.footer') 22 |
23 |
24 | @endsection 25 | -------------------------------------------------------------------------------- /resources/lang/en/auth.php: -------------------------------------------------------------------------------- 1 | 'These credentials do not match our records.', 17 | 'throttle' => 'Too many login attempts. Please try again in :seconds seconds.', 18 | 19 | ]; 20 | -------------------------------------------------------------------------------- /app/Http/Middleware/RedirectIfAuthenticated.php: -------------------------------------------------------------------------------- 1 | check()) { 22 | return redirect(RouteServiceProvider::HOME); 23 | } 24 | 25 | return $next($request); 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /app/Providers/AuthServiceProvider.php: -------------------------------------------------------------------------------- 1 | 'App\Policies\ModelPolicy', 17 | ]; 18 | 19 | /** 20 | * Register any authentication / authorization services. 21 | * 22 | * @return void 23 | */ 24 | public function boot() 25 | { 26 | $this->registerPolicies(); 27 | 28 | // 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /database/seeds/UserSeed.php: -------------------------------------------------------------------------------- 1 | 'Admin', 17 | 'email' => 'admin@admin.com', 18 | 'password' => bcrypt('password') 19 | ]); 20 | $user->assignRole('admin'); 21 | 22 | $user = User::create([ 23 | 'name' => 'Mahantesh Kumbar', 24 | 'email' => 'user@user.com', 25 | 'password' => bcrypt('password') 26 | ]); 27 | $user->assignRole('user'); 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /app/Http/Controllers/Auth/ForgotPasswordController.php: -------------------------------------------------------------------------------- 1 | belongsTo('App\User'); 22 | } 23 | 24 | public static function gcCount(){ 25 | return Capturegc::count(); 26 | } 27 | 28 | public static function gcAlottedCount(){ 29 | return Capturegc::where('status',0)->where('warden_id',Auth::user()->id)->count(); 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /resources/lang/en/passwords.php: -------------------------------------------------------------------------------- 1 | 'Your password has been reset!', 17 | 'sent' => 'We have e-mailed your password reset link!', 18 | 'throttled' => 'Please wait before retrying.', 19 | 'token' => 'This password reset token is invalid.', 20 | 'user' => "We can't find a user with that e-mail address.", 21 | 22 | ]; 23 | -------------------------------------------------------------------------------- /database/migrations/2014_10_12_100000_create_password_resets_table.php: -------------------------------------------------------------------------------- 1 | string('email')->index(); 18 | $table->string('token'); 19 | $table->timestamp('created_at')->nullable(); 20 | }); 21 | } 22 | 23 | /** 24 | * Reverse the migrations. 25 | * 26 | * @return void 27 | */ 28 | public function down() 29 | { 30 | Schema::dropIfExists('password_resets'); 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /public/dashboard/assets/scss/paper-dashboard/cards/_card-chart.scss: -------------------------------------------------------------------------------- 1 | .card-chart { 2 | .card-header{ 3 | .card-title{ 4 | margin-top: 10px; 5 | margin-bottom: 0; 6 | } 7 | .card-category{ 8 | margin-bottom: 5px; 9 | } 10 | } 11 | 12 | .table{ 13 | margin-bottom: 0; 14 | 15 | td{ 16 | border-top: none; 17 | border-bottom: 1px solid #e9ecef; 18 | } 19 | } 20 | 21 | .card-progress { 22 | margin-top: 30px; 23 | } 24 | 25 | .chart-area { 26 | height: 190px; 27 | width: calc(100% + 30px); 28 | margin-left: -15px; 29 | margin-right: -15px; 30 | } 31 | .card-footer { 32 | margin-top: 15px; 33 | 34 | .stats{ 35 | color: $dark-gray; 36 | } 37 | } 38 | 39 | .dropdown{ 40 | position: absolute; 41 | right: 20px; 42 | top: 20px; 43 | 44 | .btn{ 45 | margin: 0; 46 | } 47 | } 48 | } 49 | -------------------------------------------------------------------------------- /database/migrations/2020_04_03_131427_create_trackers_table.php: -------------------------------------------------------------------------------- 1 | bigIncrements('id'); 18 | $table->date('current_date'); 19 | $table->string('ip'); 20 | $table->integer('hits')->nullable(); 21 | $table->timestamps(); 22 | }); 23 | } 24 | 25 | /** 26 | * Reverse the migrations. 27 | * 28 | * @return void 29 | */ 30 | public function down() 31 | { 32 | Schema::dropIfExists('trackers'); 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /app/Listeners/Users/UserLoginListener.php: -------------------------------------------------------------------------------- 1 | user->email; 25 | //$log['url'] = $event->request->fullUrl(); 26 | //$log['method'] = $event->request->method(); 27 | $log['ip'] = $_SERVER['REMOTE_ADDR']; 28 | $log['agent'] = $_SERVER['HTTP_USER_AGENT'];; 29 | $log['user_id'] = Auth()->check() ? Auth()->user()->id : 1; 30 | UserLoginLog::create($log); 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /app/Events/UserLoginEvent.php: -------------------------------------------------------------------------------- 1 | ['api/*'], 19 | 20 | 'allowed_methods' => ['*'], 21 | 22 | 'allowed_origins' => ['*'], 23 | 24 | 'allowed_origins_patterns' => [], 25 | 26 | 'allowed_headers' => ['*'], 27 | 28 | 'exposed_headers' => [], 29 | 30 | 'max_age' => 0, 31 | 32 | 'supports_credentials' => false, 33 | 34 | ]; 35 | -------------------------------------------------------------------------------- /database/migrations/2019_08_19_000000_create_failed_jobs_table.php: -------------------------------------------------------------------------------- 1 | bigIncrements('id'); 18 | $table->text('connection'); 19 | $table->text('queue'); 20 | $table->longText('payload'); 21 | $table->longText('exception'); 22 | $table->timestamp('failed_at')->useCurrent(); 23 | }); 24 | } 25 | 26 | /** 27 | * Reverse the migrations. 28 | * 29 | * @return void 30 | */ 31 | public function down() 32 | { 33 | Schema::dropIfExists('failed_jobs'); 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /public/dashboard/assets/scss/paper-dashboard/cards/_card-stats.scss: -------------------------------------------------------------------------------- 1 | %card-stats{ 2 | hr{ 3 | margin: 5px 15px; 4 | } 5 | } 6 | 7 | 8 | .card-stats{ 9 | .card-body{ 10 | padding: 15px 15px 0px; 11 | 12 | .numbers{ 13 | text-align: right; 14 | font-size: 2em; 15 | 16 | p{ 17 | margin-bottom: 0; 18 | } 19 | .card-category { 20 | color: $dark-gray; 21 | font-size: 16px; 22 | line-height: 1.4em; 23 | } 24 | } 25 | } 26 | .card-footer{ 27 | padding: 0px 15px 15px; 28 | 29 | .stats{ 30 | color: $dark-gray; 31 | } 32 | 33 | hr{ 34 | margin-top: 10px; 35 | margin-bottom: 15px; 36 | } 37 | } 38 | .icon-big { 39 | font-size: 3em; 40 | min-height: 64px; 41 | 42 | i{ 43 | line-height: 59px; 44 | } 45 | } 46 | 47 | 48 | } 49 | -------------------------------------------------------------------------------- /app/Http/Controllers/Auth/ResetPasswordController.php: -------------------------------------------------------------------------------- 1 | define(User::class, function (Faker $faker) { 21 | return [ 22 | 'name' => $faker->name, 23 | 'email' => $faker->unique()->safeEmail, 24 | 'email_verified_at' => now(), 25 | 'password' => '$2y$10$92IXUNpkjO0rOQ5byMi.Ye4oKoEa3Ro9llC/.og/at2.uheWG/igi', // password 26 | 'remember_token' => Str::random(10), 27 | ]; 28 | }); 29 | -------------------------------------------------------------------------------- /app/Console/Kernel.php: -------------------------------------------------------------------------------- 1 | command('inspire')->hourly(); 28 | } 29 | 30 | /** 31 | * Register the commands for the application. 32 | * 33 | * @return void 34 | */ 35 | protected function commands() 36 | { 37 | $this->load(__DIR__.'/Commands'); 38 | 39 | require base_path('routes/console.php'); 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /public/dashboard/gulpfile.js: -------------------------------------------------------------------------------- 1 | var gulp = require('gulp'); 2 | var path = require('path'); 3 | var sass = require('gulp-sass'); 4 | var autoprefixer = require('gulp-autoprefixer'); 5 | var sourcemaps = require('gulp-sourcemaps'); 6 | var open = require('gulp-open'); 7 | 8 | var Paths = { 9 | HERE: './', 10 | DIST: 'dist/', 11 | CSS: './assets/css/', 12 | SCSS_TOOLKIT_SOURCES: './assets/scss/paper-dashboard.scss', 13 | SCSS: './assets/scss/**/**' 14 | }; 15 | 16 | gulp.task('compile-scss', function() { 17 | return gulp.src(Paths.SCSS_TOOLKIT_SOURCES) 18 | .pipe(sourcemaps.init()) 19 | .pipe(sass().on('error', sass.logError)) 20 | .pipe(autoprefixer()) 21 | .pipe(sourcemaps.write(Paths.HERE)) 22 | .pipe(gulp.dest(Paths.CSS)); 23 | }); 24 | 25 | gulp.task('watch', function() { 26 | gulp.watch(Paths.SCSS, ['compile-scss']); 27 | }); 28 | 29 | gulp.task('open', function() { 30 | gulp.src('examples/dashboard.html') 31 | .pipe(open()); 32 | }); 33 | 34 | gulp.task('open-app', ['open', 'watch']); -------------------------------------------------------------------------------- /public/dashboard/assets/cam/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | Sumeet - Camera Wide App 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 |
17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 |
31 | 32 | 33 | 34 | 35 | 36 | -------------------------------------------------------------------------------- /public/dashboard/assets/scss/paper-dashboard/cards/_card-user.scss: -------------------------------------------------------------------------------- 1 | .card-user{ 2 | .image{ 3 | height: 130px; 4 | 5 | img { 6 | border-radius: 12px; 7 | } 8 | } 9 | 10 | .author{ 11 | text-align: center; 12 | text-transform: none; 13 | margin-top: -77px; 14 | 15 | a + p.description{ 16 | margin-top: -7px; 17 | } 18 | } 19 | 20 | .avatar{ 21 | width: 124px; 22 | height: 124px; 23 | border: 1px solid $white-color; 24 | position: relative; 25 | } 26 | 27 | .card-body{ 28 | min-height: 240px; 29 | } 30 | 31 | hr{ 32 | margin: 5px 15px 15px; 33 | } 34 | 35 | .card-body + .card-footer { 36 | padding-top: 0; 37 | } 38 | 39 | .card-footer { 40 | h5 { 41 | font-size: 1.25em; 42 | margin-bottom: 0; 43 | } 44 | } 45 | 46 | .button-container{ 47 | margin-bottom: 6px; 48 | text-align: center; 49 | } 50 | } 51 | -------------------------------------------------------------------------------- /.env.example: -------------------------------------------------------------------------------- 1 | APP_NAME=Laravel 2 | APP_ENV=local 3 | APP_KEY=base64:XEwnGUk6rE5bORxZQF2k384bK2+1BOEhlPsBW55hOz8= 4 | APP_DEBUG=true 5 | APP_URL=http://localhost 6 | 7 | LOG_CHANNEL=stack 8 | 9 | DB_CONNECTION=mysql 10 | DB_HOST=127.0.0.1 11 | DB_PORT=3306 12 | DB_DATABASE=user_manage 13 | DB_USERNAME=root 14 | DB_PASSWORD=root 15 | 16 | BROADCAST_DRIVER=log 17 | CACHE_DRIVER=file 18 | QUEUE_CONNECTION=sync 19 | SESSION_DRIVER=file 20 | SESSION_LIFETIME=120 21 | 22 | REDIS_HOST=127.0.0.1 23 | REDIS_PASSWORD=null 24 | REDIS_PORT=6379 25 | 26 | MAIL_DRIVER=smtp 27 | MAIL_HOST=smtp.mailtrap.io 28 | MAIL_PORT=2525 29 | MAIL_USERNAME=null 30 | MAIL_PASSWORD=null 31 | MAIL_ENCRYPTION=null 32 | MAIL_FROM_ADDRESS=null 33 | MAIL_FROM_NAME="${APP_NAME}" 34 | 35 | AWS_ACCESS_KEY_ID= 36 | AWS_SECRET_ACCESS_KEY= 37 | AWS_DEFAULT_REGION=us-east-1 38 | AWS_BUCKET= 39 | 40 | PUSHER_APP_ID= 41 | PUSHER_APP_KEY= 42 | PUSHER_APP_SECRET= 43 | PUSHER_APP_CLUSTER=mt1 44 | 45 | MIX_PUSHER_APP_KEY="${PUSHER_APP_KEY}" 46 | MIX_PUSHER_APP_CLUSTER="${PUSHER_APP_CLUSTER}" 47 | -------------------------------------------------------------------------------- /app/Events/UserEvent.php: -------------------------------------------------------------------------------- 1 | user = $user; 28 | } 29 | 30 | /** 31 | * Get the channels the event should broadcast on. 32 | * 33 | * @return \Illuminate\Broadcasting\Channel|array 34 | */ 35 | public function broadcastOn() 36 | { 37 | return new PrivateChannel('channel-name'); 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /app/Providers/EventServiceProvider.php: -------------------------------------------------------------------------------- 1 | [ 20 | SendEmailVerificationNotification::class, 21 | ], 22 | UserEvent::class => [ 23 | UserLoginListener::class 24 | ], 25 | ]; 26 | 27 | /** 28 | * Register any events for your application. 29 | * 30 | * @return void 31 | */ 32 | public function boot() 33 | { 34 | parent::boot(); 35 | 36 | // 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /public/dashboard/assets/scss/paper-dashboard/_footers.scss: -------------------------------------------------------------------------------- 1 | .footer{ 2 | padding: 24px 0; 3 | 4 | &.footer-default{ 5 | background-color: #f2f2f2; 6 | } 7 | 8 | nav{ 9 | display: inline-block; 10 | float: left; 11 | padding-left: 0; 12 | } 13 | 14 | ul{ 15 | margin-bottom: 0; 16 | padding: 0; 17 | list-style: none; 18 | 19 | li{ 20 | display: inline-block; 21 | 22 | a{ 23 | color: inherit; 24 | padding: $padding-base-vertical; 25 | font-size: $font-size-small; 26 | text-transform: uppercase; 27 | text-decoration: none; 28 | 29 | &:hover{ 30 | text-decoration: none; 31 | } 32 | } 33 | } 34 | } 35 | 36 | .copyright{ 37 | font-size: $font-size-small; 38 | line-height: 1.8; 39 | } 40 | 41 | &:after{ 42 | display: table; 43 | clear: both; 44 | content: " "; 45 | } 46 | } 47 | -------------------------------------------------------------------------------- /database/migrations/2020_04_03_132037_create_user_login_logs_table.php: -------------------------------------------------------------------------------- 1 | bigIncrements('id'); 18 | $table->string('subject'); 19 | // $table->string('url'); 20 | // $table->string('method'); 21 | $table->string('ip'); 22 | $table->string('agent')->nullable(); 23 | $table->integer('user_id')->nullable(); 24 | $table->timestamps(); 25 | }); 26 | } 27 | 28 | /** 29 | * Reverse the migrations. 30 | * 31 | * @return void 32 | */ 33 | public function down() 34 | { 35 | Schema::dropIfExists('user_login_logs'); 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /config/services.php: -------------------------------------------------------------------------------- 1 | [ 18 | 'domain' => env('MAILGUN_DOMAIN'), 19 | 'secret' => env('MAILGUN_SECRET'), 20 | 'endpoint' => env('MAILGUN_ENDPOINT', 'api.mailgun.net'), 21 | ], 22 | 23 | 'postmark' => [ 24 | 'token' => env('POSTMARK_TOKEN'), 25 | ], 26 | 27 | 'ses' => [ 28 | 'key' => env('AWS_ACCESS_KEY_ID'), 29 | 'secret' => env('AWS_SECRET_ACCESS_KEY'), 30 | 'region' => env('AWS_DEFAULT_REGION', 'us-east-1'), 31 | ], 32 | 33 | ]; 34 | -------------------------------------------------------------------------------- /database/migrations/2014_10_12_000000_create_users_table.php: -------------------------------------------------------------------------------- 1 | bigIncrements('id'); 18 | $table->string('name'); 19 | $table->string('email')->unique(); 20 | $table->string('mobile')->nullable()->unique(); 21 | $table->string('avatar')->nullable(); 22 | $table->timestamp('email_verified_at')->nullable(); 23 | $table->string('password'); 24 | $table->rememberToken(); 25 | $table->timestamps(); 26 | }); 27 | } 28 | 29 | /** 30 | * Reverse the migrations. 31 | * 32 | * @return void 33 | */ 34 | public function down() 35 | { 36 | Schema::dropIfExists('users'); 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /public/dashboard/LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2019 Creative Tim 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /app/User.php: -------------------------------------------------------------------------------- 1 | 'datetime', 40 | ]; 41 | 42 | public function gcCaptures(){ 43 | return $this->hasMany('App\Capturegc'); 44 | } 45 | 46 | public static function userCount(){ 47 | return User::count(); 48 | } 49 | } 50 | -------------------------------------------------------------------------------- /config/view.php: -------------------------------------------------------------------------------- 1 | [ 17 | resource_path('views'), 18 | ], 19 | 20 | /* 21 | |-------------------------------------------------------------------------- 22 | | Compiled View Path 23 | |-------------------------------------------------------------------------- 24 | | 25 | | This option determines where all the compiled Blade templates will be 26 | | stored for your application. Typically, this is within the storage 27 | | directory. However, as usual, you are free to change this value. 28 | | 29 | */ 30 | 31 | 'compiled' => env( 32 | 'VIEW_COMPILED_PATH', 33 | realpath(storage_path('framework/views')) 34 | ), 35 | 36 | ]; 37 | -------------------------------------------------------------------------------- /app/Http/Controllers/Auth/ConfirmPasswordController.php: -------------------------------------------------------------------------------- 1 | middleware('auth'); 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /resources/js/app.js: -------------------------------------------------------------------------------- 1 | /** 2 | * First we will load all of this project's JavaScript dependencies which 3 | * includes Vue and other libraries. It is a great starting point when 4 | * building robust, powerful web applications using Vue and Laravel. 5 | */ 6 | 7 | require('./bootstrap'); 8 | 9 | window.Vue = require('vue'); 10 | 11 | /** 12 | * The following block of code may be used to automatically register your 13 | * Vue components. It will recursively scan this directory for the Vue 14 | * components and automatically register them with their "basename". 15 | * 16 | * Eg. ./components/ExampleComponent.vue -> 17 | */ 18 | 19 | // const files = require.context('./', true, /\.vue$/i) 20 | // files.keys().map(key => Vue.component(key.split('/').pop().split('.')[0], files(key).default)) 21 | 22 | Vue.component('example-component', require('./components/ExampleComponent.vue').default); 23 | 24 | /** 25 | * Next, we will create a fresh Vue application instance and attach it to 26 | * the page. Then, you may begin adding components to this application 27 | * or customize the JavaScript scaffolding to fit your unique needs. 28 | */ 29 | 30 | const app = new Vue({ 31 | el: '#app', 32 | }); 33 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "private": true, 3 | "scripts": { 4 | "dev": "npm run development", 5 | "development": "cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js", 6 | "watch": "npm run development -- --watch", 7 | "watch-poll": "npm run watch -- --watch-poll", 8 | "hot": "cross-env NODE_ENV=development node_modules/webpack-dev-server/bin/webpack-dev-server.js --inline --hot --config=node_modules/laravel-mix/setup/webpack.config.js", 9 | "prod": "npm run production", 10 | "production": "cross-env NODE_ENV=production node_modules/webpack/bin/webpack.js --no-progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js" 11 | }, 12 | "devDependencies": { 13 | "axios": "^0.19", 14 | "bootstrap": "^4.0.0", 15 | "cross-env": "^7.0", 16 | "jquery": "^3.2", 17 | "laravel-mix": "^5.0.1", 18 | "lodash": "^4.17.13", 19 | "popper.js": "^1.12", 20 | "resolve-url-loader": "^2.3.1", 21 | "sass": "^1.20.1", 22 | "sass-loader": "^8.0.0", 23 | "vue": "^2.5.17", 24 | "vue-template-compiler": "^2.6.10" 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /resources/views/auth/verify.blade.php: -------------------------------------------------------------------------------- 1 | @extends('layouts.app') 2 | 3 | @section('content') 4 |
5 |
6 |
7 |
8 |
{{ __('Verify Your Email Address') }}
9 | 10 |
11 | @if (session('resent')) 12 | 15 | @endif 16 | 17 | {{ __('Before proceeding, please check your email for a verification link.') }} 18 | {{ __('If you did not receive the email') }}, 19 |
20 | @csrf 21 | . 22 |
23 |
24 |
25 |
26 |
27 |
28 | @endsection 29 | -------------------------------------------------------------------------------- /phpunit.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 8 | ./tests/Unit 9 | 10 | 11 | ./tests/Feature 12 | 13 | 14 | 15 | 16 | ./app 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | -------------------------------------------------------------------------------- /app/Http/Controllers/Auth/VerificationController.php: -------------------------------------------------------------------------------- 1 | middleware('auth'); 39 | $this->middleware('signed')->only('verify'); 40 | $this->middleware('throttle:6,1')->only('verify', 'resend'); 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /public/dashboard/assets/scss/paper-dashboard/_animated-buttons.scss: -------------------------------------------------------------------------------- 1 | //animations 2 | 3 | .icon-property{ 4 | @include transition($slow-transition-time, $transition-bezier); 5 | position: relative; 6 | display: inline-block; 7 | } 8 | 9 | #animated-buttons{ 10 | .btn{ 11 | i{ 12 | position: relative; 13 | top: 3px; 14 | margin-top: -3px; 15 | } 16 | } 17 | } 18 | 19 | .btn-rotate{ 20 | i{ 21 | @extend .icon-property; 22 | } 23 | 24 | &:hover, 25 | &:focus{ 26 | i{ 27 | @include rotate-53(); 28 | } 29 | } 30 | } 31 | 32 | .btn-magnify{ 33 | i{ 34 | @extend .icon-property; 35 | } 36 | 37 | &:hover, 38 | &:focus{ 39 | i{ 40 | @include transform-scale(1.22); 41 | } 42 | } 43 | } 44 | 45 | .btn-move-left{ 46 | i{ 47 | @extend .icon-property; 48 | margin-right: 0; 49 | } 50 | 51 | &:hover, 52 | &:focus{ 53 | i{ 54 | @include transform-translate-x(-5px); 55 | } 56 | } 57 | } 58 | 59 | .btn-move-right{ 60 | i{ 61 | @extend .icon-property; 62 | margin-right: 0; 63 | } 64 | 65 | &:hover, 66 | &:focus{ 67 | i{ 68 | @include transform-translate-x(5px); 69 | } 70 | } 71 | } 72 | -------------------------------------------------------------------------------- /app/Exceptions/Handler.php: -------------------------------------------------------------------------------- 1 | $_SERVER['REMOTE_ADDR']], 19 | ['ip' => $_SERVER['REMOTE_ADDR'], 20 | 'current_date' => date('Y-m-d')])->save(); 21 | 22 | return view('welcome'); 23 | })->name('welcome'); 24 | 25 | Route::group(['middleware' => ['role:admin']], function () { 26 | Route::resource('permissions', 'Admin\PermissionsController'); 27 | Route::resource('roles', 'Admin\RolesController'); 28 | Route::resource('users', 'Admin\UsersController'); 29 | Route::get('login-activities',[ 30 | 'as' => 'login-activities', 31 | 'uses' => 'Admin\UsersController@indexLoginLogs' 32 | ]); 33 | }); 34 | 35 | Route::group(['middleware' => ['role:user']], function () { 36 | 37 | }); 38 | 39 | Route::group(['middleware' => ['auth']], function () { 40 | Route::resource('profile','Users\ProfileController'); 41 | }); 42 | 43 | Auth::routes(); 44 | 45 | Route::get('/home', 'HomeController@index')->name('home'); -------------------------------------------------------------------------------- /app/Http/Controllers/Auth/LoginController.php: -------------------------------------------------------------------------------- 1 | middleware('guest')->except('logout'); 43 | } 44 | 45 | function authenticated(Request $request, $user){ 46 | if(!Auth::check()){ 47 | return view('errors.404'); 48 | } 49 | event(new UserEvent($request,$user)); 50 | } 51 | } 52 | -------------------------------------------------------------------------------- /resources/views/admin/permissions/create.blade.php: -------------------------------------------------------------------------------- 1 | @extends('home') 2 | 3 | @section('title') 4 | Permission 5 | @endsection 6 | 7 | @section('extra-css') 8 | 9 | @endsection 10 | 11 | @section('index') 12 |
13 |
14 |
15 |
16 |
Permission
17 |
18 |
19 |
20 | {{ csrf_field() }} 21 |
22 |
23 | 24 | 25 | @error('name') 26 | 27 | @enderror 28 |
29 |
30 | 31 |
32 |
33 |
34 |
35 |
36 | 37 | @endsection 38 | 39 | @section('extra-script') 40 | 41 | @endsection 42 | -------------------------------------------------------------------------------- /resources/views/admin/permissions/edit.blade.php: -------------------------------------------------------------------------------- 1 | @extends('home') 2 | 3 | @section('title') 4 | Edit Permission 5 | @endsection 6 | 7 | @section('extra-css') 8 | 9 | @endsection 10 | 11 | @section('index') 12 |
13 |
14 |
15 |
16 |
Permission
17 |
18 |
19 | 20 |
21 | @csrf 22 |
23 |
24 | 25 | 26 | 27 | @error('name') 28 | 29 | @enderror 30 |
31 |
32 | 33 |
34 |
35 |
36 |
37 |
38 | 39 | 40 | @endsection 41 | 42 | @section('extra-script') 43 | 44 | @endsection 45 | -------------------------------------------------------------------------------- /public/dashboard/assets/scss/paper-dashboard/_alerts.scss: -------------------------------------------------------------------------------- 1 | .alert{ 2 | border: 0; 3 | border-radius: $border-radius-small; 4 | color: $white-color; 5 | padding-top: .9rem; 6 | padding-bottom: .9rem; 7 | position: relative; 8 | 9 | &.alert-success{ 10 | background-color: lighten($success-color, 5%); 11 | } 12 | 13 | &.alert-danger{ 14 | background-color: lighten($danger-color, 5%); 15 | } 16 | 17 | &.alert-warning{ 18 | background-color: lighten($warning-color, 5%); 19 | } 20 | 21 | &.alert-info{ 22 | background-color: lighten($info-color, 5%); 23 | } 24 | 25 | &.alert-primary{ 26 | background-color: lighten($primary-color, 5%); 27 | } 28 | 29 | .close{ 30 | color: $white-color; 31 | opacity: .9; 32 | text-shadow: none; 33 | line-height: 0; 34 | outline: 0; 35 | 36 | i.fa, 37 | i.nc-icon{ 38 | font-size: 14px !important; 39 | } 40 | 41 | &:hover, 42 | &:focus { 43 | opacity: 1; 44 | } 45 | } 46 | 47 | span[data-notify="icon"]{ 48 | font-size: 27px; 49 | display: block; 50 | left: 19px; 51 | position: absolute; 52 | top: 50%; 53 | margin-top: -11px; 54 | } 55 | 56 | button.close{ 57 | position: absolute; 58 | right: 10px; 59 | top: 50%; 60 | margin-top: -13px; 61 | width: 25px; 62 | height: 25px; 63 | padding: 3px; 64 | } 65 | 66 | .close ~ span{ 67 | display: block; 68 | max-width: 89%; 69 | } 70 | 71 | &.alert-with-icon{ 72 | padding-left: 65px; 73 | } 74 | } 75 | -------------------------------------------------------------------------------- /resources/views/errors/layout.blade.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | @yield('title') 8 | 9 | 10 | 11 | 12 | 13 | 14 | 47 | 48 | 49 |
50 |
51 |
52 | @yield('message') 53 |
54 |
55 |
56 | 57 | 58 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Laravel7.x-Roles-Permissions-Admin-Paper-Dashboard-bootstrap4 2 | This is a Laravel 7.X admin panel starter project with roles-permissions management based on Spatie Laravel-permission package, Paper Dashboard Design theme and also has jquery, bootstrap 4.X, Bootstrap Data-tables. 3 | 4 | # Installation 5 | Laravel 7.x version admin roles and permission project to use as a starter project and implement your own functions. 6 | 7 | * Clone the repository with git clone 8 | * Copy .env.example file to .env and edit database credentials there 9 | * Run composer install 10 | * Run php artisan migrate --seed (it has some seeded data - see below) 11 | * Run php artisan serve (Laravel development server started: http://127.0.0.1:8000) 12 | * That's it: launch the main URL and login with default credentials admin@admin.com - password 13 | 14 | # Dashboard with Dynamic Visitor Count and User Login Activity 15 | ![picture alt](https://raw.githubusercontent.com/Mahanteshkumbar/Laravel7.x-Roles-Permissions-Admin-Paper-Dashboard-bootstrap4/master/screens/1.PNG) 16 | 17 | # Permission 18 | ![picture alt](https://raw.githubusercontent.com/Mahanteshkumbar/Laravel7.x-Roles-Permissions-Admin-Paper-Dashboard-bootstrap4/master/screens/3.PNG) 19 | 20 | # Manage Users 21 | ![picture alt](https://raw.githubusercontent.com/Mahanteshkumbar/Laravel7.x-Roles-Permissions-Admin-Paper-Dashboard-bootstrap4/master/screens/4.PNG) 22 | 23 | # User Login Activity 24 | ![picture alt](https://raw.githubusercontent.com/Mahanteshkumbar/Laravel7.x-Roles-Permissions-Admin-Paper-Dashboard-bootstrap4/master/screens/2.PNG) 25 | 26 | # Paper Dashboard Theme: 27 | [PaperDashboar - Bootstrap4 Design(Download)](https://demos.creative-tim.com/bs3/paper-dashboard/dashboard.html) 28 | -------------------------------------------------------------------------------- /public/dashboard/assets/cam/cam.css: -------------------------------------------------------------------------------- 1 | html, body{ 2 | margin: 0; 3 | padding: 0; 4 | height: 100%; 5 | width: 100%; 6 | } 7 | 8 | #camera, #camera--view, #camera--sensor, #camera--output{ 9 | position: fixed; 10 | height: 100%; 11 | width: 100%; 12 | object-fit: cover; 13 | } 14 | 15 | #camera--view, #camera--sensor, #camera--output{ 16 | transform: scaleX(-1); 17 | filter: FlipH; 18 | } 19 | 20 | #camera--trigger{ 21 | /* width: 200px; */ 22 | background-color: #3498db; 23 | color: white; 24 | font-size: 16px; 25 | border-radius: 30px; 26 | border: none; 27 | padding: 15px 20px; 28 | text-align: center; 29 | box-shadow: 0 5px 10px 0 rgba(0,0,0,0.2); 30 | /* position: fixed; */ 31 | bottom: 30px; 32 | float: right; 33 | /* left: calc(50% - 100px); */ 34 | } 35 | 36 | #camera--submit{ 37 | /* width: 200px; */ 38 | background-color: #e67e22; 39 | color: white; 40 | font-size: 16px; 41 | border-radius: 30px; 42 | border: none; 43 | padding: 15px 20px; 44 | text-align: center; 45 | box-shadow: 0 5px 10px 0 rgba(0,0,0,0.2); 46 | /* position: fixed; */ 47 | bottom: 30px; 48 | /* left: calc(50% - 100px); */ 49 | } 50 | .pos{ 51 | position: fixed; 52 | bottom: 6%; 53 | left: 0; 54 | right: 0; 55 | flex-wrap: nowrap; 56 | } 57 | 58 | @media only screen and (max-width: 600px) { 59 | body { 60 | background-color: lightblue; 61 | } 62 | } 63 | 64 | .taken{ 65 | height: 100px!important; 66 | width: 100px!important; 67 | transition: all 0.5s ease-in; 68 | border: solid 3px white; 69 | box-shadow: 0 5px 10px 0 rgba(0,0,0,0.2); 70 | top: 20px; 71 | right: 20px; 72 | z-index: 2; 73 | } -------------------------------------------------------------------------------- /config/hashing.php: -------------------------------------------------------------------------------- 1 | 'bcrypt', 19 | 20 | /* 21 | |-------------------------------------------------------------------------- 22 | | Bcrypt Options 23 | |-------------------------------------------------------------------------- 24 | | 25 | | Here you may specify the configuration options that should be used when 26 | | passwords are hashed using the Bcrypt algorithm. This will allow you 27 | | to control the amount of time it takes to hash the given password. 28 | | 29 | */ 30 | 31 | 'bcrypt' => [ 32 | 'rounds' => env('BCRYPT_ROUNDS', 10), 33 | ], 34 | 35 | /* 36 | |-------------------------------------------------------------------------- 37 | | Argon Options 38 | |-------------------------------------------------------------------------- 39 | | 40 | | Here you may specify the configuration options that should be used when 41 | | passwords are hashed using the Argon algorithm. These will allow you 42 | | to control the amount of time it takes to hash the given password. 43 | | 44 | */ 45 | 46 | 'argon' => [ 47 | 'memory' => 1024, 48 | 'threads' => 2, 49 | 'time' => 2, 50 | ], 51 | 52 | ]; 53 | -------------------------------------------------------------------------------- /bootstrap/app.php: -------------------------------------------------------------------------------- 1 | singleton( 30 | Illuminate\Contracts\Http\Kernel::class, 31 | App\Http\Kernel::class 32 | ); 33 | 34 | $app->singleton( 35 | Illuminate\Contracts\Console\Kernel::class, 36 | App\Console\Kernel::class 37 | ); 38 | 39 | $app->singleton( 40 | Illuminate\Contracts\Debug\ExceptionHandler::class, 41 | App\Exceptions\Handler::class 42 | ); 43 | 44 | /* 45 | |-------------------------------------------------------------------------- 46 | | Return The Application 47 | |-------------------------------------------------------------------------- 48 | | 49 | | This script returns the application instance. The instance is given to 50 | | the calling script so we can separate the building of the instances 51 | | from the actual running of the application and sending responses. 52 | | 53 | */ 54 | 55 | return $app; 56 | -------------------------------------------------------------------------------- /config/broadcasting.php: -------------------------------------------------------------------------------- 1 | env('BROADCAST_DRIVER', 'null'), 19 | 20 | /* 21 | |-------------------------------------------------------------------------- 22 | | Broadcast Connections 23 | |-------------------------------------------------------------------------- 24 | | 25 | | Here you may define all of the broadcast connections that will be used 26 | | to broadcast events to other systems or over websockets. Samples of 27 | | each available type of connection are provided inside this array. 28 | | 29 | */ 30 | 31 | 'connections' => [ 32 | 33 | 'pusher' => [ 34 | 'driver' => 'pusher', 35 | 'key' => env('PUSHER_APP_KEY'), 36 | 'secret' => env('PUSHER_APP_SECRET'), 37 | 'app_id' => env('PUSHER_APP_ID'), 38 | 'options' => [ 39 | 'cluster' => env('PUSHER_APP_CLUSTER'), 40 | 'useTLS' => true, 41 | ], 42 | ], 43 | 44 | 'redis' => [ 45 | 'driver' => 'redis', 46 | 'connection' => 'default', 47 | ], 48 | 49 | 'log' => [ 50 | 'driver' => 'log', 51 | ], 52 | 53 | 'null' => [ 54 | 'driver' => 'null', 55 | ], 56 | 57 | ], 58 | 59 | ]; 60 | -------------------------------------------------------------------------------- /resources/views/errors/minimal.blade.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | @yield('title') 8 | 9 | 10 | 11 | 12 | 13 | 14 | 50 | 51 | 52 |
53 |
54 | @yield('code') 55 |
56 | 57 |
58 | @yield('message') 59 |
60 |
61 | 62 | 63 | -------------------------------------------------------------------------------- /artisan: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env php 2 | make(Illuminate\Contracts\Console\Kernel::class); 34 | 35 | $status = $kernel->handle( 36 | $input = new Symfony\Component\Console\Input\ArgvInput, 37 | new Symfony\Component\Console\Output\ConsoleOutput 38 | ); 39 | 40 | /* 41 | |-------------------------------------------------------------------------- 42 | | Shutdown The Application 43 | |-------------------------------------------------------------------------- 44 | | 45 | | Once Artisan has finished running, we will fire off the shutdown events 46 | | so that any final work may be done by the application before we shut 47 | | down the process. This is the last thing to happen to the request. 48 | | 49 | */ 50 | 51 | $kernel->terminate($input, $status); 52 | 53 | exit($status); 54 | -------------------------------------------------------------------------------- /public/dashboard/assets/cam/cam.js: -------------------------------------------------------------------------------- 1 | // Set constraints for the video stream 2 | var constraints = { video: { facingMode: "environment" }, audio: false }; 3 | var track = null; 4 | 5 | // Define constants 6 | const cameraView = document.querySelector("#camera--view"), 7 | cameraOutput = document.querySelector("#camera--output"), 8 | cameraSensor = document.querySelector("#camera--sensor"), 9 | cameraTrigger = document.querySelector("#camera--trigger"); 10 | 11 | // Access the device camera and stream to cameraView 12 | function cameraStart() { 13 | navigator.mediaDevices 14 | .getUserMedia(constraints) 15 | .then(function(stream) { 16 | track = stream.getTracks()[0]; 17 | cameraView.srcObject = stream; 18 | }) 19 | .catch(function(error) { 20 | console.error("Oops. Something is broken.", error); 21 | }); 22 | } 23 | 24 | // Take a picture when cameraTrigger is tapped 25 | cameraTrigger.onclick = function() { 26 | cameraSensor.width = cameraView.videoWidth; 27 | cameraSensor.height = cameraView.videoHeight; 28 | cameraSensor.getContext("2d").drawImage(cameraView, 0, 0); 29 | 30 | cameraOutput.src = cameraSensor.toDataURL("image/webp"); 31 | document.querySelector("input#image").value = cameraSensor.toDataURL("image/webp"); 32 | cameraOutput.classList.add("taken"); 33 | 34 | console.log("Am i here"); 35 | 36 | if (navigator.geolocation) { 37 | console.log("Am i here lat long"); 38 | navigator.geolocation.getCurrentPosition(function (p) { 39 | document.querySelector("input#lat").value = p.coords.latitude; 40 | document.querySelector("input#long").value = p.coords.longitude; 41 | }); 42 | } 43 | // track.stop(); 44 | }; 45 | 46 | // Start the video stream when the window loads 47 | window.addEventListener("load", cameraStart, false); -------------------------------------------------------------------------------- /public/dashboard/assets/scss/paper-dashboard.scss: -------------------------------------------------------------------------------- 1 | /*! 2 | 3 | ========================================================= 4 | * Paper Dashboard 2 - v2.0.0 5 | ========================================================= 6 | 7 | * Product Page: https://www.creative-tim.com/product/paper-dashboard-2 8 | * Copyright 2018 Creative Tim (http://www.creative-tim.com) 9 | 10 | * Designed by www.invisionapp.com Coded by www.creative-tim.com 11 | 12 | ========================================================= 13 | 14 | * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 15 | 16 | */ 17 | 18 | @import 'paper-dashboard/variables'; 19 | @import 'paper-dashboard/mixins'; 20 | 21 | // Plugins CSS 22 | @import "paper-dashboard/plugins/plugin-animate-bootstrap-notify"; 23 | @import "paper-dashboard/plugins/plugin-perfect-scrollbar"; 24 | 25 | // Core CSS 26 | @import "paper-dashboard/buttons"; 27 | @import "paper-dashboard/inputs"; 28 | @import "paper-dashboard/typography"; 29 | @import "paper-dashboard/misc"; 30 | @import "paper-dashboard/checkboxes-radio"; 31 | 32 | 33 | // components 34 | @import "paper-dashboard/navbar"; 35 | @import "paper-dashboard/page-header"; 36 | @import "paper-dashboard/dropdown"; 37 | @import "paper-dashboard/alerts"; 38 | @import "paper-dashboard/images"; 39 | @import "paper-dashboard/nucleo-outline"; 40 | @import "paper-dashboard/tables"; 41 | @import "paper-dashboard/sidebar-and-main-panel"; 42 | @import "paper-dashboard/footers"; 43 | @import "paper-dashboard/fixed-plugin"; 44 | 45 | // cards 46 | @import "paper-dashboard/cards"; 47 | @import "paper-dashboard/cards/card-plain"; 48 | @import "paper-dashboard/cards/card-chart"; 49 | @import "paper-dashboard/cards/card-user"; 50 | @import "paper-dashboard/cards/card-map"; 51 | @import "paper-dashboard/cards/card-stats"; 52 | 53 | @import "paper-dashboard/responsive"; 54 | -------------------------------------------------------------------------------- /composer.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "laravel/laravel", 3 | "type": "project", 4 | "description": "The Laravel Framework.", 5 | "keywords": [ 6 | "framework", 7 | "laravel" 8 | ], 9 | "license": "MIT", 10 | "require": { 11 | "php": "^7.2.5", 12 | "fideloper/proxy": "^4.2", 13 | "fruitcake/laravel-cors": "^1.0", 14 | "guzzlehttp/guzzle": "^6.3", 15 | "laravel/framework": "^7.0", 16 | "laravel/tinker": "^2.0", 17 | "laravel/ui": "^2.0", 18 | "spatie/laravel-permission": "^3.11" 19 | }, 20 | "require-dev": { 21 | "facade/ignition": "^2.0", 22 | "fzaninotto/faker": "^1.9.1", 23 | "mockery/mockery": "^1.3.1", 24 | "nunomaduro/collision": "^4.1", 25 | "phpunit/phpunit": "^8.5" 26 | }, 27 | "config": { 28 | "optimize-autoloader": true, 29 | "preferred-install": "dist", 30 | "sort-packages": true 31 | }, 32 | "extra": { 33 | "laravel": { 34 | "dont-discover": [] 35 | } 36 | }, 37 | "autoload": { 38 | "psr-4": { 39 | "App\\": "app/" 40 | }, 41 | "classmap": [ 42 | "database/seeds", 43 | "database/factories" 44 | ] 45 | }, 46 | "autoload-dev": { 47 | "psr-4": { 48 | "Tests\\": "tests/" 49 | } 50 | }, 51 | "minimum-stability": "dev", 52 | "prefer-stable": true, 53 | "scripts": { 54 | "post-autoload-dump": [ 55 | "Illuminate\\Foundation\\ComposerScripts::postAutoloadDump", 56 | "@php artisan package:discover --ansi" 57 | ], 58 | "post-root-package-install": [ 59 | "@php -r \"file_exists('.env') || copy('.env.example', '.env');\"" 60 | ], 61 | "post-create-project-cmd": [ 62 | "@php artisan key:generate --ansi" 63 | ] 64 | } 65 | } 66 | -------------------------------------------------------------------------------- /app/Http/Controllers/feddback/FeedbackController.php: -------------------------------------------------------------------------------- 1 | mapApiRoutes(); 46 | 47 | $this->mapWebRoutes(); 48 | 49 | // 50 | } 51 | 52 | /** 53 | * Define the "web" routes for the application. 54 | * 55 | * These routes all receive session state, CSRF protection, etc. 56 | * 57 | * @return void 58 | */ 59 | protected function mapWebRoutes() 60 | { 61 | Route::middleware('web') 62 | ->namespace($this->namespace) 63 | ->group(base_path('routes/web.php')); 64 | } 65 | 66 | /** 67 | * Define the "api" routes for the application. 68 | * 69 | * These routes are typically stateless. 70 | * 71 | * @return void 72 | */ 73 | protected function mapApiRoutes() 74 | { 75 | Route::prefix('api') 76 | ->middleware('api') 77 | ->namespace($this->namespace) 78 | ->group(base_path('routes/api.php')); 79 | } 80 | } 81 | -------------------------------------------------------------------------------- /public/index.php: -------------------------------------------------------------------------------- 1 | 8 | */ 9 | 10 | define('LARAVEL_START', microtime(true)); 11 | 12 | /* 13 | |-------------------------------------------------------------------------- 14 | | Register The Auto Loader 15 | |-------------------------------------------------------------------------- 16 | | 17 | | Composer provides a convenient, automatically generated class loader for 18 | | our application. We just need to utilize it! We'll simply require it 19 | | into the script here so that we don't have to worry about manual 20 | | loading any of our classes later on. It feels great to relax. 21 | | 22 | */ 23 | 24 | require __DIR__.'/../vendor/autoload.php'; 25 | 26 | /* 27 | |-------------------------------------------------------------------------- 28 | | Turn On The Lights 29 | |-------------------------------------------------------------------------- 30 | | 31 | | We need to illuminate PHP development, so let us turn on the lights. 32 | | This bootstraps the framework and gets it ready for use, then it 33 | | will load up this application so that we can run it and send 34 | | the responses back to the browser and delight our users. 35 | | 36 | */ 37 | 38 | $app = require_once __DIR__.'/../bootstrap/app.php'; 39 | 40 | /* 41 | |-------------------------------------------------------------------------- 42 | | Run The Application 43 | |-------------------------------------------------------------------------- 44 | | 45 | | Once we have the application, we can handle the incoming request 46 | | through the kernel, and send the associated response back to 47 | | the client's browser allowing them to enjoy the creative 48 | | and wonderful application we have prepared for them. 49 | | 50 | */ 51 | 52 | $kernel = $app->make(Illuminate\Contracts\Http\Kernel::class); 53 | 54 | $response = $kernel->handle( 55 | $request = Illuminate\Http\Request::capture() 56 | ); 57 | 58 | $response->send(); 59 | 60 | $kernel->terminate($request, $response); 61 | -------------------------------------------------------------------------------- /resources/views/auth/passwords/email.blade.php: -------------------------------------------------------------------------------- 1 | @extends('layouts.app') 2 | 3 | @section('content') 4 |
5 |
6 |
7 |
8 |
{{ __('Reset Password') }}
9 | 10 |
11 | @if (session('status')) 12 | 15 | @endif 16 | 17 |
18 | @csrf 19 | 20 |
21 | 22 | 23 |
24 | 25 | 26 | @error('email') 27 | 28 | {{ $message }} 29 | 30 | @enderror 31 |
32 |
33 | 34 |
35 |
36 | 39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 | @endsection 48 | -------------------------------------------------------------------------------- /public/css/style.css: -------------------------------------------------------------------------------- 1 | /* Custom css */ 2 | 3 | .card{ 4 | padding: 15px 15px 15px 15px; 5 | } 6 | #name-error{ 7 | color: crimson; 8 | } 9 | 10 | .form-group input[type=file] { 11 | opacity: unset; 12 | position: static; 13 | } 14 | 15 | /* table.dataTable.dtr-inline.collapsed>tbody>tr[role="row"]>td:first-child:before, table.dataTable.dtr-inline.collapsed>tbody>tr[role="row"]>th:first-child:before { 16 | top: 84px; 17 | left: 16px; 18 | height: 14px; 19 | width: 14px; 20 | display: block; 21 | position: absolute; 22 | color: white; 23 | border: 2px solid white; 24 | border-radius: 14px; 25 | box-shadow: 0 0 3px #444; 26 | box-sizing: content-box; 27 | text-align: center; 28 | text-indent: 0 !important; 29 | font-family: 'Courier New', Courier, monospace; 30 | line-height: 14px; 31 | content: '+'; 32 | background-color: #31b131; 33 | } */ 34 | 35 | 36 | video { 37 | width: 100%; 38 | height: auto; 39 | } 40 | 41 | canvas{ 42 | width: 100%; 43 | height: auto; 44 | } 45 | .table-responsive { 46 | overflow: auto; 47 | padding-bottom: 0px; 48 | } 49 | .pagination { 50 | display: -ms-flexbox; 51 | display: flex; 52 | padding-left: 87%; 53 | list-style: none; 54 | border-radius: .25rem; 55 | } 56 | 57 | @media screen and (max-width: 767px){ 58 | .pagination { 59 | padding-left: 0; 60 | } 61 | } 62 | 63 | .card h3, .h3 { 64 | font-size: 1.5em; 65 | margin-bottom: 15px; 66 | line-height: 1.4em; 67 | border-bottom: 1px solid #dee2e6; 68 | } 69 | 70 | .card { 71 | box-shadow: 0 0.46875rem 2.1875rem rgba(4,9,20,0.03), 0 0.9375rem 1.40625rem rgba(4,9,20,0.03), 0 0.25rem 0.53125rem rgba(4,9,20,0.05), 0 0.125rem 0.1875rem rgba(4,9,20,0.03); 72 | border-width: 0; 73 | transition: all .2s; 74 | } 75 | 76 | .card { 77 | position: relative; 78 | display: flex; 79 | flex-direction: column; 80 | min-width: 0; 81 | word-wrap: break-word; 82 | background-color: #fff; 83 | background-clip: border-box; 84 | border: 1px solid rgba(26,54,126,0.125); 85 | border-radius: .25rem; 86 | } 87 | -------------------------------------------------------------------------------- /resources/views/auth/passwords/confirm.blade.php: -------------------------------------------------------------------------------- 1 | @extends('layouts.app') 2 | 3 | @section('content') 4 |
5 |
6 |
7 |
8 |
{{ __('Confirm Password') }}
9 | 10 |
11 | {{ __('Please confirm your password before continuing.') }} 12 | 13 |
14 | @csrf 15 | 16 |
17 | 18 | 19 |
20 | 21 | 22 | @error('password') 23 | 24 | {{ $message }} 25 | 26 | @enderror 27 |
28 |
29 | 30 |
31 |
32 | 35 | 36 | @if (Route::has('password.request')) 37 | 38 | {{ __('Forgot Your Password?') }} 39 | 40 | @endif 41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 | @endsection 50 | -------------------------------------------------------------------------------- /app/Http/Controllers/Users/ProfileController.php: -------------------------------------------------------------------------------- 1 | middleware('auth'); 20 | } 21 | 22 | /** 23 | * Display a listing of the resource. 24 | * 25 | * @return \Illuminate\Http\Response 26 | */ 27 | public function index() 28 | { 29 | // 30 | $user = Auth::user(); 31 | return view('users.profile.profile',compact('user')); 32 | } 33 | 34 | /** 35 | * Update the specified resource in storage. 36 | * 37 | * @param \Illuminate\Http\Request $request 38 | * @param int $id 39 | * @return \Illuminate\Http\Response 40 | */ 41 | public function update(Request $request, $id) 42 | { 43 | // 44 | $request->validate([ 45 | 'name' => ['required','string', 'max:255'], 46 | 'email' => ['required','string', 'email', 'max:255',Rule::unique('users')->ignore($id)], 47 | 'avatar' => ['required','mimes:jpeg,bmp,png,PNG,JPG,jpg,JPEG','max:9000'], 48 | 'mobile' => ['required','numeric','min:10',Rule::unique('users')->ignore($id)] 49 | ]); 50 | 51 | $name = null; 52 | $newImageName = null; 53 | 54 | //check if file attached 55 | if($file = $request->file('avatar')){ 56 | $tmp = explode('.', $file->getClientOriginalName());//get client file name 57 | $name = $file->getClientOriginalName(); 58 | $newImageName = round(microtime(true)).'.'.end($tmp); 59 | $file->move(storage_path('app\public\profile-pic'), $newImageName); 60 | } 61 | $user = User::find(Auth::user()->id); 62 | $newImage = null; 63 | $newImage = $newImageName == null? $user->avatar:$newImageName; 64 | $user->update(array_merge($request->all(),['avatar' => $newImage])); 65 | 66 | return redirect()->route('profile.index')->with('success','Profile Updated Successfully!'); 67 | } 68 | 69 | } 70 | -------------------------------------------------------------------------------- /app/Http/Controllers/Auth/RegisterController.php: -------------------------------------------------------------------------------- 1 | middleware('guest'); 42 | } 43 | 44 | /** 45 | * Get a validator for an incoming registration request. 46 | * 47 | * @param array $data 48 | * @return \Illuminate\Contracts\Validation\Validator 49 | */ 50 | protected function validator(array $data) 51 | { 52 | return Validator::make($data, [ 53 | 'name' => ['required', 'string', 'max:255'], 54 | 'email' => ['required', 'string', 'email', 'max:255', 'unique:users'], 55 | 'mobile' => ['required', 'numeric', 'digits:10', 'unique:users'], 56 | 'password' => ['required', 'string', 'min:5', 'confirmed'], 57 | ]); 58 | } 59 | 60 | /** 61 | * Create a new user instance after a valid registration. 62 | * 63 | * @param array $data 64 | * @return \App\User 65 | */ 66 | protected function create(array $data) 67 | { 68 | return User::create([ 69 | 'name' => $data['name'], 70 | 'email' => $data['email'], 71 | 'mobile' => $data['mobile'], 72 | 'password' => Hash::make($data['password']), 73 | ]); 74 | } 75 | } 76 | -------------------------------------------------------------------------------- /resources/views/admin/roles/create.blade.php: -------------------------------------------------------------------------------- 1 | @extends('home') 2 | 3 | @section('title') 4 | Permission 5 | @endsection 6 | 7 | @section('extra-css') 8 | 9 | @endsection 10 | 11 | @section('index') 12 |
13 |
14 |
15 |
16 |
17 |

18 | Add New Role 19 |

20 |
21 |
22 |
23 | @csrf 24 |
25 | 26 | 27 | @error('name') 28 | 29 | @enderror 30 |
31 |
32 | 33 | 38 | @error('permission') 39 | 40 | @enderror 41 |
42 | 43 |
44 |
45 |
46 |
47 |
48 |
49 | @endsection 50 | 51 | @section('extra-script') 52 | 53 | @endsection 54 | -------------------------------------------------------------------------------- /resources/views/admin/permissions/index.blade.php: -------------------------------------------------------------------------------- 1 | @extends('home') 2 | 3 | @section('title') 4 | Permission 5 | @endsection 6 | 7 | @section('extra-css') 8 | 9 | @endsection 10 | 11 | @section('index') 12 |
13 | 14 |
15 |
16 |
17 |
18 |

Permission

19 | Add New 20 |
21 |
22 |
23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | @foreach($permissions as $row) 33 | 34 | 35 | 36 | 47 | 48 | @endforeach 49 | 50 |
IdNameAction
{{ $row->id }}{{ $row->name }} 37 |
38 | Edit 39 |   40 |
41 | {{ csrf_field() }} 42 | 43 | 44 |
45 |
46 |
51 |
52 |
53 |
54 |
55 |
56 | 57 | 58 |
59 | @endsection 60 | 61 | @section('extra-script') 62 | 63 | @endsection 64 | -------------------------------------------------------------------------------- /public/js/app.js.LICENSE.txt: -------------------------------------------------------------------------------- 1 | /*! 2 | * Bootstrap v4.4.1 (https://getbootstrap.com/) 3 | * Copyright 2011-2019 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors) 4 | * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) 5 | */ 6 | 7 | /*! 8 | * Sizzle CSS Selector Engine v2.3.5 9 | * https://sizzlejs.com/ 10 | * 11 | * Copyright JS Foundation and other contributors 12 | * Released under the MIT license 13 | * https://js.foundation/ 14 | * 15 | * Date: 2020-03-14 16 | */ 17 | 18 | /*! 19 | * Vue.js v2.6.11 20 | * (c) 2014-2019 Evan You 21 | * Released under the MIT License. 22 | */ 23 | 24 | /*! 25 | * jQuery JavaScript Library v3.5.0 26 | * https://jquery.com/ 27 | * 28 | * Includes Sizzle.js 29 | * https://sizzlejs.com/ 30 | * 31 | * Copyright JS Foundation and other contributors 32 | * Released under the MIT license 33 | * https://jquery.org/license 34 | * 35 | * Date: 2020-04-10T15:07Z 36 | */ 37 | 38 | /** 39 | * @license 40 | * Lodash 41 | * Copyright OpenJS Foundation and other contributors 42 | * Released under MIT license 43 | * Based on Underscore.js 1.8.3 44 | * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors 45 | */ 46 | 47 | /**! 48 | * @fileOverview Kickass library to create and place poppers near their reference elements. 49 | * @version 1.16.1 50 | * @license 51 | * Copyright (c) 2016 Federico Zivolo and contributors 52 | * 53 | * Permission is hereby granted, free of charge, to any person obtaining a copy 54 | * of this software and associated documentation files (the "Software"), to deal 55 | * in the Software without restriction, including without limitation the rights 56 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 57 | * copies of the Software, and to permit persons to whom the Software is 58 | * furnished to do so, subject to the following conditions: 59 | * 60 | * The above copyright notice and this permission notice shall be included in all 61 | * copies or substantial portions of the Software. 62 | * 63 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 64 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 65 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 66 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 67 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 68 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 69 | * SOFTWARE. 70 | */ 71 | -------------------------------------------------------------------------------- /resources/views/admin/activity/logs.blade.php: -------------------------------------------------------------------------------- 1 | @extends('home') 2 | 3 | @section('title') 4 | Login Activities 5 | @endsection 6 | 7 | @section('extra-css') 8 | 9 | @endsection 10 | 11 | @section('index') 12 |
13 | 14 |
15 |
16 |
17 |
18 |

User Login Activities

19 |
20 |
21 |
22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | @if (count($userLoginActivities) > 0) 38 | @foreach($userLoginActivities as $key => $row) 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | @endforeach 51 | @endif 52 | 53 |
IdMessageMobileIPAgentDate and Time
{{ $key+1 }}{{ $row->subject }} {{ $row->mobile?$row->mobile:'NA' }}{{ $row->ip }}{{ $row->agent }}{{ $row->created_at->toDayDateTimeString() }}
({{ $row->created_at->diffForHumans() }})
54 | {{ $userLoginActivities->links() }} 55 |
56 |
57 |
58 |
59 |
60 | 61 | 62 |
63 | @endsection 64 | 65 | @section('extra-script') 66 | 67 | @endsection -------------------------------------------------------------------------------- /resources/views/admin/roles/edit.blade.php: -------------------------------------------------------------------------------- 1 | @extends('home') 2 | 3 | @section('title') 4 | Edit Permission 5 | @endsection 6 | 7 | @section('extra-css') 8 | 9 | @endsection 10 | 11 | @section('index') 12 |
13 |
14 |
15 |
16 |
17 |

18 | Edit Role 19 |

20 |
21 |
22 |
23 | @csrf 24 |
25 | 26 | 27 | 28 | @error('name') 29 | 30 | @enderror 31 |
32 |
33 | 34 | 39 | 40 | @error('permission') 41 | 42 | @enderror 43 |
44 | 45 |
46 |
47 |
48 |
49 |
50 |
51 | @endsection 52 | 53 | @section('extra-script') 54 | 60 | @endsection 61 | 62 | -------------------------------------------------------------------------------- /resources/views/errors/custom-message.blade.php: -------------------------------------------------------------------------------- 1 | @if(Session::has('primary') || Session::has('info') || Session::has('success') || Session::has('warning') || Session::has('danger')) 2 |
3 |
4 |
5 | 10 | 11 | @if (session('primary')) 12 |
13 | 16 | 17 | Primary - {{ session('primary') }} 18 |
19 | @endif 20 | 21 | @if (session('info')) 22 |
23 | 26 | 27 | Info - {{ session('info') }} 28 |
29 | @endif 30 | 31 | @if (session('success')) 32 |
33 | 36 | 37 | Success - {{ session('success') }} 38 |
39 | @endif 40 | 41 | @if (session('warning')) 42 |
43 | 46 | 47 | Warning - {{ session('warning') }} 48 |
49 | @endif 50 | 51 | @if (session('danger')) 52 |
53 | 56 | 57 | Danger - {{ session('danger') }} 58 |
59 | @endif 60 | 61 |
62 |
63 |
64 | @endif 65 | -------------------------------------------------------------------------------- /config/filesystems.php: -------------------------------------------------------------------------------- 1 | env('FILESYSTEM_DRIVER', 'local'), 17 | 18 | /* 19 | |-------------------------------------------------------------------------- 20 | | Default Cloud Filesystem Disk 21 | |-------------------------------------------------------------------------- 22 | | 23 | | Many applications store files both locally and in the cloud. For this 24 | | reason, you may specify a default "cloud" driver here. This driver 25 | | will be bound as the Cloud disk implementation in the container. 26 | | 27 | */ 28 | 29 | 'cloud' => env('FILESYSTEM_CLOUD', 's3'), 30 | 31 | /* 32 | |-------------------------------------------------------------------------- 33 | | Filesystem Disks 34 | |-------------------------------------------------------------------------- 35 | | 36 | | Here you may configure as many filesystem "disks" as you wish, and you 37 | | may even configure multiple disks of the same driver. Defaults have 38 | | been setup for each driver as an example of the required options. 39 | | 40 | | Supported Drivers: "local", "ftp", "sftp", "s3" 41 | | 42 | */ 43 | 44 | 'disks' => [ 45 | 46 | 'local' => [ 47 | 'driver' => 'local', 48 | 'root' => storage_path('app'), 49 | ], 50 | 51 | 'public' => [ 52 | 'driver' => 'local', 53 | 'root' => storage_path('app/public'), 54 | 'url' => env('APP_URL').'/storage', 55 | 'visibility' => 'public', 56 | ], 57 | 58 | 's3' => [ 59 | 'driver' => 's3', 60 | 'key' => env('AWS_ACCESS_KEY_ID'), 61 | 'secret' => env('AWS_SECRET_ACCESS_KEY'), 62 | 'region' => env('AWS_DEFAULT_REGION'), 63 | 'bucket' => env('AWS_BUCKET'), 64 | 'url' => env('AWS_URL'), 65 | 'endpoint' => env('AWS_ENDPOINT'), 66 | ], 67 | 68 | ], 69 | 70 | /* 71 | |-------------------------------------------------------------------------- 72 | | Symbolic Links 73 | |-------------------------------------------------------------------------- 74 | | 75 | | Here you may configure the symbolic links that will be created when the 76 | | `storage:link` Artisan command is executed. The array keys should be 77 | | the locations of the links and the values should be their targets. 78 | | 79 | */ 80 | 81 | 'links' => [ 82 | public_path('storage') => storage_path('app/public'), 83 | ], 84 | 85 | ]; 86 | -------------------------------------------------------------------------------- /config/queue.php: -------------------------------------------------------------------------------- 1 | env('QUEUE_CONNECTION', 'sync'), 17 | 18 | /* 19 | |-------------------------------------------------------------------------- 20 | | Queue Connections 21 | |-------------------------------------------------------------------------- 22 | | 23 | | Here you may configure the connection information for each server that 24 | | is used by your application. A default configuration has been added 25 | | for each back-end shipped with Laravel. You are free to add more. 26 | | 27 | | Drivers: "sync", "database", "beanstalkd", "sqs", "redis", "null" 28 | | 29 | */ 30 | 31 | 'connections' => [ 32 | 33 | 'sync' => [ 34 | 'driver' => 'sync', 35 | ], 36 | 37 | 'database' => [ 38 | 'driver' => 'database', 39 | 'table' => 'jobs', 40 | 'queue' => 'default', 41 | 'retry_after' => 90, 42 | ], 43 | 44 | 'beanstalkd' => [ 45 | 'driver' => 'beanstalkd', 46 | 'host' => 'localhost', 47 | 'queue' => 'default', 48 | 'retry_after' => 90, 49 | 'block_for' => 0, 50 | ], 51 | 52 | 'sqs' => [ 53 | 'driver' => 'sqs', 54 | 'key' => env('AWS_ACCESS_KEY_ID'), 55 | 'secret' => env('AWS_SECRET_ACCESS_KEY'), 56 | 'prefix' => env('SQS_PREFIX', 'https://sqs.us-east-1.amazonaws.com/your-account-id'), 57 | 'queue' => env('SQS_QUEUE', 'your-queue-name'), 58 | 'suffix' => env('SQS_SUFFIX'), 59 | 'region' => env('AWS_DEFAULT_REGION', 'us-east-1'), 60 | ], 61 | 62 | 'redis' => [ 63 | 'driver' => 'redis', 64 | 'connection' => 'default', 65 | 'queue' => env('REDIS_QUEUE', 'default'), 66 | 'retry_after' => 90, 67 | 'block_for' => null, 68 | ], 69 | 70 | ], 71 | 72 | /* 73 | |-------------------------------------------------------------------------- 74 | | Failed Queue Jobs 75 | |-------------------------------------------------------------------------- 76 | | 77 | | These options configure the behavior of failed queue job logging so you 78 | | can control which database and table are used to store the jobs that 79 | | have failed. You may change them to any database / table you wish. 80 | | 81 | */ 82 | 83 | 'failed' => [ 84 | 'driver' => env('QUEUE_FAILED_DRIVER', 'database'), 85 | 'database' => env('DB_CONNECTION', 'mysql'), 86 | 'table' => 'failed_jobs', 87 | ], 88 | 89 | ]; 90 | -------------------------------------------------------------------------------- /resources/views/layouts/partials/side-bar.blade.php: -------------------------------------------------------------------------------- 1 | 71 | -------------------------------------------------------------------------------- /public/dashboard/assets/datatable/dataTables.bootstrap4.min.js: -------------------------------------------------------------------------------- 1 | /*! 2 | DataTables Bootstrap 4 integration 3 | ©2011-2017 SpryMedia Ltd - datatables.net/license 4 | */ 5 | var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.findInternal=function(a,b,c){a instanceof String&&(a=String(a));for(var e=a.length,d=0;d<'col-sm-12 col-md-6'f>><'row'<'col-sm-12'tr>><'row'<'col-sm-12 col-md-5'i><'col-sm-12 col-md-7'p>>", 9 | renderer:"bootstrap"});a.extend(d.ext.classes,{sWrapper:"dataTables_wrapper dt-bootstrap4",sFilterInput:"form-control form-control-sm",sLengthSelect:"custom-select custom-select-sm form-control form-control-sm",sProcessing:"dataTables_processing card",sPageButton:"paginate_button page-item"});d.ext.renderer.pageButton.bootstrap=function(b,l,v,w,m,r){var k=new d.Api(b),x=b.oClasses,n=b.oLanguage.oPaginate,y=b.oLanguage.oAria.paginate||{},g,h,t=0,u=function(c,d){var e,l=function(b){b.preventDefault(); 10 | a(b.currentTarget).hasClass("disabled")||k.page()==b.data.action||k.page(b.data.action).draw("page")};var q=0;for(e=d.length;q",{"class":x.sPageButton+" "+h,id:0===v&&"string"===typeof f?b.sTableId+"_"+f:null}).append(a("",{href:"#","aria-controls":b.sTableId,"aria-label":y[f],"data-dt-idx":t,tabindex:b.iTabIndex,"class":"page-link"}).html(g)).appendTo(c);b.oApi._fnBindAction(p,{action:f},l);t++}}}};try{var p=a(l).find(c.activeElement).data("dt-idx")}catch(z){}u(a(l).empty().html('
    ').children("ul"),w);p!==e&&a(l).find("[data-dt-idx="+p+"]").focus()};return d}); 12 | -------------------------------------------------------------------------------- /resources/views/admin/users/index.blade.php: -------------------------------------------------------------------------------- 1 | @extends('home') 2 | 3 | @section('title') 4 | User 5 | @endsection 6 | 7 | @section('extra-css') 8 | @endsection 9 | 10 | @section('index') 11 |
    12 |
    13 |
    14 |
    15 | 19 |
    20 |
    21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | @foreach($users as $row) 34 | 35 | 36 | 37 | 38 | 39 | 44 | 55 | 56 | @endforeach 57 | 58 |
    IdNameEmailMobileRoleAction
    {{ $row->id }}{{ $row->name }}{{ $row->email }}{{ $row->mobile }} 40 | @foreach($row->roles()->pluck('name') as $role) 41 | {{ $role }} 42 | @endforeach 43 | 45 |
    46 | Edit 47 |   48 |
    49 | @csrf 50 | 51 | 52 |
    53 |
    54 |
    59 | {{ $users->links() }} 60 |
    61 |
    62 |
    63 |
    64 |
    65 |
    66 | @endsection 67 | 68 | @section('extra-script') 69 | 70 | @endsection 71 | -------------------------------------------------------------------------------- /resources/views/auth/passwords/reset.blade.php: -------------------------------------------------------------------------------- 1 | @extends('layouts.app') 2 | 3 | @section('content') 4 |
    5 |
    6 |
    7 |
    8 |
    {{ __('Reset Password') }}
    9 | 10 |
    11 |
    12 | @csrf 13 | 14 | 15 | 16 |
    17 | 18 | 19 |
    20 | 21 | 22 | @error('email') 23 | 24 | {{ $message }} 25 | 26 | @enderror 27 |
    28 |
    29 | 30 |
    31 | 32 | 33 |
    34 | 35 | 36 | @error('password') 37 | 38 | {{ $message }} 39 | 40 | @enderror 41 |
    42 |
    43 | 44 |
    45 | 46 | 47 |
    48 | 49 |
    50 |
    51 | 52 |
    53 |
    54 | 57 |
    58 |
    59 |
    60 |
    61 |
    62 |
    63 |
    64 |
    65 | @endsection 66 | -------------------------------------------------------------------------------- /resources/views/admin/roles/index.blade.php: -------------------------------------------------------------------------------- 1 | @extends('home') 2 | 3 | @section('title') 4 | Roles 5 | @endsection 6 | 7 | @section('extra-css') 8 | 9 | @endsection 10 | 11 | @section('index') 12 |
    13 |
    14 |
    15 |
    16 |
    17 |

    Roles

    18 | Add New 19 |
    20 |
    21 |
    22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | @foreach($roles as $row) 33 | 34 | 35 | 36 | 41 | 52 | 53 | @endforeach 54 | 55 |
    IdNamePermissionsAction
    {{ $row->id }}{{ $row->name }} 37 | @foreach($row->permissions()->pluck('name') as $permission) 38 | {{ $permission }}, 39 | @endforeach 40 | 42 |
    43 | Edit 44 |   45 |
    46 | @csrf 47 | 48 | 49 |
    50 |
    51 |
    56 |
    57 |
    58 |
    59 |
    60 |
    61 |
    62 | @endsection 63 | 64 | @section('extra-script') 65 | 66 | @endsection 67 | -------------------------------------------------------------------------------- /resources/views/welcome.blade.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | User Manage 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 64 | 65 |

    66 | 67 |
    68 |
    69 |
    70 |
    71 |

    Laravel-Roles-Permissions-Bootstrap4-Design

    72 |

    This is a Laravel 7.X admin panel starter project with roles-permissions management based on Spatie Laravel-permission package, Paper Dashboard Design theme and also has jquery, bootstrap 4.X, Bootstrap Datatables.

    73 |

    Paper Dashboard Link

    74 |
    75 |
    76 |
    77 |
    78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | -------------------------------------------------------------------------------- /config/logging.php: -------------------------------------------------------------------------------- 1 | env('LOG_CHANNEL', 'stack'), 21 | 22 | /* 23 | |-------------------------------------------------------------------------- 24 | | Log Channels 25 | |-------------------------------------------------------------------------- 26 | | 27 | | Here you may configure the log channels for your application. Out of 28 | | the box, Laravel uses the Monolog PHP logging library. This gives 29 | | you a variety of powerful log handlers / formatters to utilize. 30 | | 31 | | Available Drivers: "single", "daily", "slack", "syslog", 32 | | "errorlog", "monolog", 33 | | "custom", "stack" 34 | | 35 | */ 36 | 37 | 'channels' => [ 38 | 'stack' => [ 39 | 'driver' => 'stack', 40 | 'channels' => ['single'], 41 | 'ignore_exceptions' => false, 42 | ], 43 | 44 | 'single' => [ 45 | 'driver' => 'single', 46 | 'path' => storage_path('logs/laravel.log'), 47 | 'level' => 'debug', 48 | ], 49 | 50 | 'daily' => [ 51 | 'driver' => 'daily', 52 | 'path' => storage_path('logs/laravel.log'), 53 | 'level' => 'debug', 54 | 'days' => 14, 55 | ], 56 | 57 | 'slack' => [ 58 | 'driver' => 'slack', 59 | 'url' => env('LOG_SLACK_WEBHOOK_URL'), 60 | 'username' => 'Laravel Log', 61 | 'emoji' => ':boom:', 62 | 'level' => 'critical', 63 | ], 64 | 65 | 'papertrail' => [ 66 | 'driver' => 'monolog', 67 | 'level' => 'debug', 68 | 'handler' => SyslogUdpHandler::class, 69 | 'handler_with' => [ 70 | 'host' => env('PAPERTRAIL_URL'), 71 | 'port' => env('PAPERTRAIL_PORT'), 72 | ], 73 | ], 74 | 75 | 'stderr' => [ 76 | 'driver' => 'monolog', 77 | 'handler' => StreamHandler::class, 78 | 'formatter' => env('LOG_STDERR_FORMATTER'), 79 | 'with' => [ 80 | 'stream' => 'php://stderr', 81 | ], 82 | ], 83 | 84 | 'syslog' => [ 85 | 'driver' => 'syslog', 86 | 'level' => 'debug', 87 | ], 88 | 89 | 'errorlog' => [ 90 | 'driver' => 'errorlog', 91 | 'level' => 'debug', 92 | ], 93 | 94 | 'null' => [ 95 | 'driver' => 'monolog', 96 | 'handler' => NullHandler::class, 97 | ], 98 | 99 | 'emergency' => [ 100 | 'path' => storage_path('logs/laravel.log'), 101 | ], 102 | ], 103 | 104 | ]; 105 | -------------------------------------------------------------------------------- /public/dashboard/assets/js/paper-dashboard.js.map: -------------------------------------------------------------------------------- 1 | {"version":3,"sources":["_site_dashboard_free/assets/js/dashboard-free.js"],"names":["hexToRGB","hex","alpha","r","parseInt","slice","g","b","isWindows","navigator","platform","indexOf","$","perfectScrollbar","addClass","transparent","transparentDemo","fixedTop","navbar_initialized","backgroundOrange","sidebar_mini_active","toggle_initialized","seq","delays","durations","seq2","delays2","durations2","document","ready","length","on","this","closest","removeClass","paperDashboard","initMinimizeSidebar","$navbar","scroll_distance","attr","checkScrollForTransparentNavbar","window","parent","each","$this","data_on_label","data","data_off_label","bootstrapSwitch","onText","offText","$toggle","misc","navbar_menu_visible","setTimeout","remove","div","appendTo","click","resize","isExpanded","find","hasClass","width","showSidebarMessage","simulateWindowResize","setInterval","dispatchEvent","Event","clearInterval","message","notify","icon","type","timer","placement","from","align","e","console","log"],"mappings":"AAyLA,SAASA,SAASC,EAAKC,GACnB,IAAIC,EAAIC,SAASH,EAAII,MAAM,EAAG,GAAI,IAC9BC,EAAIF,SAASH,EAAII,MAAM,EAAG,GAAI,IAC9BE,EAAIH,SAASH,EAAII,MAAM,EAAG,GAAI,IAElC,OAAIH,EACO,QAAUC,EAAI,KAAOG,EAAI,KAAOC,EAAI,KAAOL,EAAQ,IAEnD,OAASC,EAAI,KAAOG,EAAI,KAAOC,EAAI,IA/K9CC,WAAiD,EAArCC,UAAUC,SAASC,QAAQ,OAEnCH,WAEDI,EAAE,0CAA0CC,mBAE5CD,EAAE,QAAQE,SAAS,yBAEnBF,EAAE,QAAQE,SAAS,yBAI1BC,aAAc,EACdC,iBAAkB,EAClBC,UAAW,EAEXC,oBAAqB,EACrBC,kBAAmB,EACnBC,qBAAsB,EACtBC,oBAAqB,EAErBC,IAAM,EAAGC,OAAS,GAAIC,UAAY,IAClCC,KAAO,EAAGC,QAAU,GAAIC,WAAa,IAErCf,EAAEgB,UAAUC,MAAM,WAEoB,GAAhCjB,EAAE,oBAAoBkB,QAAuC,GAAxBlB,EAAE,YAAYkB,QAErDlB,EAAE,aAAamB,GAAG,mBAAoB,WAClCnB,EAAEoB,MAAMC,QAAQ,WAAWC,YAAY,sBAAsBpB,SAAS,cACvEiB,GAAG,mBAAoB,WACtBnB,EAAEoB,MAAMC,QAAQ,WAAWnB,SAAS,sBAAsBoB,YAAY,cAI5EC,eAAeC,sBAEfC,QAAUzB,EAAE,4BACZ0B,gBAAkBD,QAAQE,KAAK,oBAAsB,IAGV,GAAxC3B,EAAE,4BAA4BkB,SAC7BK,eAAeK,kCACf5B,EAAE6B,QAAQV,GAAG,SAAUI,eAAeK,kCAG1C5B,EAAE,iBAAiBmB,GAAG,QAAS,WAC3BnB,EAAEoB,MAAMU,OAAO,gBAAgB5B,SAAS,uBACzCiB,GAAG,OAAQ,WACVnB,EAAEoB,MAAMU,OAAO,gBAAgBR,YAAY,uBAI/CtB,EAAE,qBAAqB+B,KAAK,WACxBC,MAAQhC,EAAEoB,MACVa,cAAgBD,MAAME,KAAK,aAAe,GAC1CC,eAAiBH,MAAME,KAAK,cAAgB,GAE5CF,MAAMI,gBAAgB,CAClBC,OAAQJ,cACRK,QAASH,qBAKnBnC,EAAEgB,UAAUG,GAAG,QAAS,iBAAkB,WACtCoB,QAAUvC,EAAEoB,MAEkC,GAA3CG,eAAeiB,KAAKC,qBACnBzC,EAAE,QAAQsB,YAAY,YACtBC,eAAeiB,KAAKC,oBAAsB,EAC1CC,WAAW,WACPH,QAAQjB,YAAY,WACpBtB,EAAE,cAAc2C,UACjB,OAGHD,WAAW,WACPH,QAAQrC,SAAS,YAClB,KAEH0C,IAAM,6BACN5C,EAAE4C,KAAKC,SAAS,QAAQC,MAAM,WAC1B9C,EAAE,QAAQsB,YAAY,YACtBC,eAAeiB,KAAKC,oBAAsB,EACtCC,WAAW,WACPH,QAAQjB,YAAY,WACpBtB,EAAE,cAAc2C,UAClB,OAGV3C,EAAE,QAAQE,SAAS,YACnBqB,eAAeiB,KAAKC,oBAAsB,KAIlDzC,EAAE6B,QAAQkB,OAAO,WAEbrC,IAAMG,KAAO,EAEsB,GAAhCb,EAAE,oBAAoBkB,QAAuC,GAAxBlB,EAAE,YAAYkB,SACpDO,QAAUzB,EAAE,WACZgD,WAAahD,EAAE,WAAWiD,KAAK,4BAA4BtB,KAAK,iBAC5DF,QAAQyB,SAAS,aAAmC,IAApBlD,EAAE6B,QAAQsB,QAC5C1B,QAAQH,YAAY,YAAYpB,SAAS,sBAChCuB,QAAQyB,SAAS,uBAAyBlD,EAAE6B,QAAQsB,QAAU,KAAqB,SAAdH,YAC9EvB,QAAQvB,SAAS,YAAYoB,YAAY,yBAKjDC,eAAiB,CACfiB,KAAK,CACDC,oBAAqB,GAGzBjB,oBAAoB,WACgB,GAA7BxB,EAAE,iBAAiBkB,SACpBV,qBAAsB,GAGxBR,EAAE,oBAAoB8C,MAAM,WACb9C,EAAEoB,MAEa,GAAvBZ,qBACDR,EAAE,QAAQE,SAAS,gBACnBM,qBAAsB,EACtBe,eAAe6B,mBAAmB,+BAElCpD,EAAE,QAAQsB,YAAY,gBACtBd,qBAAsB,EACtBe,eAAe6B,mBAAmB,gCAIpC,IAAIC,EAAuBC,YAAY,WACnCzB,OAAO0B,cAAc,IAAIC,MAAM,YACjC,KAGFd,WAAW,WACPe,cAAcJ,IAChB,QAIVD,mBAAoB,SAASM,GAC3B,IACE1D,EAAE2D,OAAO,CACLC,KAAM,4BACNF,QAASA,GACT,CACEG,KAAM,OACNC,MAAO,IACPC,UAAW,CACPC,KAAM,MACNC,MAAO,WAGjB,MAAOC,GACPC,QAAQC,IAAI"} -------------------------------------------------------------------------------- /public/dashboard/assets/scss/paper-dashboard/_misc.scss: -------------------------------------------------------------------------------- 1 | body{ 2 | color: $black-color; 3 | font-size: $font-size-base; 4 | font-family: $sans-serif-family; 5 | -moz-osx-font-smoothing: grayscale; 6 | -webkit-font-smoothing: antialiased; 7 | } 8 | 9 | .main{ 10 | position: relative; 11 | background: $white-color; 12 | } 13 | /* Animations */ 14 | .nav-pills .nav-link, 15 | .navbar, 16 | .nav-tabs .nav-link, 17 | .sidebar .nav a, 18 | .sidebar .nav a i, 19 | .animation-transition-general, 20 | .tag, 21 | .tag [data-role="remove"], 22 | .animation-transition-general{ 23 | @include transition($general-transition-time, $transition-ease); 24 | } 25 | 26 | //transition for dropdown caret 27 | .dropdown-toggle:after, 28 | .bootstrap-switch-label:before, 29 | .caret{ 30 | @include transition($fast-transition-time, $transition-ease); 31 | } 32 | 33 | .dropdown-toggle[aria-expanded="true"]:after, 34 | a[data-toggle="collapse"][aria-expanded="true"] .caret, 35 | .card-collapse .card a[data-toggle="collapse"][aria-expanded="true"] i, 36 | .card-collapse .card a[data-toggle="collapse"].expanded i{ 37 | @include rotate-180(); 38 | } 39 | 40 | .button-bar{ 41 | display: block; 42 | position: relative; 43 | width: 22px; 44 | height: 1px; 45 | border-radius: 1px; 46 | background: $white-bg; 47 | 48 | & + .button-bar{ 49 | margin-top: 7px; 50 | } 51 | 52 | &:nth-child(2){ 53 | width: 17px; 54 | } 55 | } 56 | 57 | .caret{ 58 | display: inline-block; 59 | width: 0; 60 | height: 0; 61 | margin-left: 2px; 62 | vertical-align: middle; 63 | border-top: 4px dashed; 64 | border-top: 4px solid\9; 65 | border-right: 4px solid transparent; 66 | border-left: 4px solid transparent; 67 | } 68 | 69 | .pull-left{ 70 | float: left; 71 | } 72 | .pull-right{ 73 | float: right; 74 | } 75 | 76 | 77 | .offline-doc { 78 | .navbar.navbar-transparent{ 79 | padding-top: 25px; 80 | border-bottom: none; 81 | 82 | .navbar-minimize { 83 | display: none; 84 | } 85 | .navbar-brand, 86 | .collapse .navbar-nav .nav-link { 87 | color: $white-color !important; 88 | } 89 | } 90 | .footer { 91 | z-index: 3 !important; 92 | } 93 | .page-header{ 94 | .container { 95 | z-index: 3; 96 | } 97 | &:after { 98 | background-color: rgba(0, 0, 0, 0.5); 99 | content: ""; 100 | display: block; 101 | height: 100%; 102 | left: 0; 103 | position: absolute; 104 | top: 0; 105 | width: 100%; 106 | z-index: 2; 107 | } 108 | } 109 | } 110 | 111 | .fixed-plugin { 112 | .dropdown-menu li { 113 | padding: 2px !important; 114 | } 115 | } 116 | 117 | // badge color 118 | 119 | .badge{ 120 | &.badge-default{ 121 | @include badge-color($default-color); 122 | } 123 | &.badge-primary{ 124 | @include badge-color($primary-color); 125 | } 126 | &.badge-info{ 127 | @include badge-color($info-color); 128 | } 129 | &.badge-success{ 130 | @include badge-color($success-color); 131 | } 132 | &.badge-warning{ 133 | @include badge-color($warning-color); 134 | } 135 | &.badge-danger{ 136 | @include badge-color($danger-color); 137 | } 138 | &.badge-neutral{ 139 | @include badge-color($white-color); 140 | color: inherit; 141 | } 142 | } 143 | 144 | .card-user { 145 | form { 146 | .form-group { 147 | margin-bottom: 20px; 148 | } 149 | } 150 | } 151 | -------------------------------------------------------------------------------- /resources/views/layouts/partials/nav.blade.php: -------------------------------------------------------------------------------- 1 | 2 | 69 | -------------------------------------------------------------------------------- /app/Http/Kernel.php: -------------------------------------------------------------------------------- 1 | [ 31 | \App\Http\Middleware\EncryptCookies::class, 32 | \Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse::class, 33 | \Illuminate\Session\Middleware\StartSession::class, 34 | // \Illuminate\Session\Middleware\AuthenticateSession::class, 35 | \Illuminate\View\Middleware\ShareErrorsFromSession::class, 36 | \App\Http\Middleware\VerifyCsrfToken::class, 37 | \Illuminate\Routing\Middleware\SubstituteBindings::class, 38 | ], 39 | 40 | 'api' => [ 41 | 'throttle:60,1', 42 | \Illuminate\Routing\Middleware\SubstituteBindings::class, 43 | ], 44 | ]; 45 | 46 | /** 47 | * The application's route middleware. 48 | * 49 | * These middleware may be assigned to groups or used individually. 50 | * 51 | * @var array 52 | */ 53 | protected $routeMiddleware = [ 54 | 'auth' => \App\Http\Middleware\Authenticate::class, 55 | 'auth.basic' => \Illuminate\Auth\Middleware\AuthenticateWithBasicAuth::class, 56 | 'bindings' => \Illuminate\Routing\Middleware\SubstituteBindings::class, 57 | 'cache.headers' => \Illuminate\Http\Middleware\SetCacheHeaders::class, 58 | 'can' => \Illuminate\Auth\Middleware\Authorize::class, 59 | 'guest' => \App\Http\Middleware\RedirectIfAuthenticated::class, 60 | 'password.confirm' => \Illuminate\Auth\Middleware\RequirePassword::class, 61 | 'signed' => \Illuminate\Routing\Middleware\ValidateSignature::class, 62 | 'throttle' => \Illuminate\Routing\Middleware\ThrottleRequests::class, 63 | 'verified' => \Illuminate\Auth\Middleware\EnsureEmailIsVerified::class, 64 | 'role' => \Spatie\Permission\Middlewares\RoleMiddleware::class, 65 | 'permission' => \Spatie\Permission\Middlewares\PermissionMiddleware::class, 66 | 'role_or_permission' => \Spatie\Permission\Middlewares\RoleOrPermissionMiddleware::class, 67 | ]; 68 | 69 | /** 70 | * The priority-sorted list of middleware. 71 | * 72 | * This forces non-global middleware to always be in the given order. 73 | * 74 | * @var array 75 | */ 76 | protected $middlewarePriority = [ 77 | \Illuminate\Session\Middleware\StartSession::class, 78 | \Illuminate\View\Middleware\ShareErrorsFromSession::class, 79 | \App\Http\Middleware\Authenticate::class, 80 | \Illuminate\Routing\Middleware\ThrottleRequests::class, 81 | \Illuminate\Session\Middleware\AuthenticateSession::class, 82 | \Illuminate\Routing\Middleware\SubstituteBindings::class, 83 | \Illuminate\Auth\Middleware\Authorize::class, 84 | ]; 85 | } 86 | -------------------------------------------------------------------------------- /config/cache.php: -------------------------------------------------------------------------------- 1 | env('CACHE_DRIVER', 'file'), 22 | 23 | /* 24 | |-------------------------------------------------------------------------- 25 | | Cache Stores 26 | |-------------------------------------------------------------------------- 27 | | 28 | | Here you may define all of the cache "stores" for your application as 29 | | well as their drivers. You may even define multiple stores for the 30 | | same cache driver to group types of items stored in your caches. 31 | | 32 | */ 33 | 34 | 'stores' => [ 35 | 36 | 'apc' => [ 37 | 'driver' => 'apc', 38 | ], 39 | 40 | 'array' => [ 41 | 'driver' => 'array', 42 | 'serialize' => false, 43 | ], 44 | 45 | 'database' => [ 46 | 'driver' => 'database', 47 | 'table' => 'cache', 48 | 'connection' => null, 49 | ], 50 | 51 | 'file' => [ 52 | 'driver' => 'file', 53 | 'path' => storage_path('framework/cache/data'), 54 | ], 55 | 56 | 'memcached' => [ 57 | 'driver' => 'memcached', 58 | 'persistent_id' => env('MEMCACHED_PERSISTENT_ID'), 59 | 'sasl' => [ 60 | env('MEMCACHED_USERNAME'), 61 | env('MEMCACHED_PASSWORD'), 62 | ], 63 | 'options' => [ 64 | // Memcached::OPT_CONNECT_TIMEOUT => 2000, 65 | ], 66 | 'servers' => [ 67 | [ 68 | 'host' => env('MEMCACHED_HOST', '127.0.0.1'), 69 | 'port' => env('MEMCACHED_PORT', 11211), 70 | 'weight' => 100, 71 | ], 72 | ], 73 | ], 74 | 75 | 'redis' => [ 76 | 'driver' => 'redis', 77 | 'connection' => 'cache', 78 | ], 79 | 80 | 'dynamodb' => [ 81 | 'driver' => 'dynamodb', 82 | 'key' => env('AWS_ACCESS_KEY_ID'), 83 | 'secret' => env('AWS_SECRET_ACCESS_KEY'), 84 | 'region' => env('AWS_DEFAULT_REGION', 'us-east-1'), 85 | 'table' => env('DYNAMODB_CACHE_TABLE', 'cache'), 86 | 'endpoint' => env('DYNAMODB_ENDPOINT'), 87 | ], 88 | 89 | ], 90 | 91 | /* 92 | |-------------------------------------------------------------------------- 93 | | Cache Key Prefix 94 | |-------------------------------------------------------------------------- 95 | | 96 | | When utilizing a RAM based store such as APC or Memcached, there might 97 | | be other applications utilizing the same cache. So, we'll specify a 98 | | value to get prefixed to all our keys so we can avoid collisions. 99 | | 100 | */ 101 | 102 | 'prefix' => env('CACHE_PREFIX', Str::slug(env('APP_NAME', 'laravel'), '_').'_cache'), 103 | 104 | ]; 105 | -------------------------------------------------------------------------------- /public/dashboard/assets/scss/paper-dashboard/_cards.scss: -------------------------------------------------------------------------------- 1 | .card{ 2 | border-radius: $border-radius-extreme; 3 | box-shadow: 0 6px 10px -4px rgba(0, 0, 0, 0.15); 4 | background-color: #FFFFFF; 5 | color: $card-black-color; 6 | margin-bottom: 20px; 7 | position: relative; 8 | border: 0 none; 9 | 10 | -webkit-transition: transform 300ms cubic-bezier(0.34, 2, 0.6, 1), box-shadow 200ms ease; 11 | -moz-transition: transform 300ms cubic-bezier(0.34, 2, 0.6, 1), box-shadow 200ms ease; 12 | -o-transition: transform 300ms cubic-bezier(0.34, 2, 0.6, 1), box-shadow 200ms ease; 13 | -ms-transition: transform 300ms cubic-bezier(0.34, 2, 0.6, 1), box-shadow 200ms ease; 14 | transition: transform 300ms cubic-bezier(0.34, 2, 0.6, 1), box-shadow 200ms ease; 15 | 16 | .card-body{ 17 | padding: 15px 15px 10px 15px; 18 | 19 | &.table-full-width{ 20 | padding-left: 0; 21 | padding-right: 0; 22 | } 23 | } 24 | 25 | .card-header{ 26 | &:not([data-background-color]){ 27 | background-color: transparent; 28 | } 29 | padding: 15px 15px 0; 30 | border: 0; 31 | 32 | .card-title{ 33 | margin-top: 10px; 34 | } 35 | } 36 | 37 | .map{ 38 | border-radius: $border-radius-small; 39 | 40 | &.map-big{ 41 | height: 400px; 42 | } 43 | } 44 | 45 | &[data-background-color="orange"]{ 46 | background-color: $primary-color; 47 | 48 | .card-header{ 49 | background-color: $primary-color; 50 | } 51 | 52 | .card-footer{ 53 | .stats{ 54 | color: $white-color; 55 | } 56 | } 57 | } 58 | 59 | &[data-background-color="red"]{ 60 | background-color: $danger-color; 61 | } 62 | 63 | &[data-background-color="yellow"]{ 64 | background-color: $warning-color; 65 | } 66 | 67 | &[data-background-color="blue"]{ 68 | background-color: $info-color; 69 | } 70 | 71 | &[data-background-color="green"]{ 72 | background-color: $success-color; 73 | } 74 | 75 | .image{ 76 | overflow: hidden; 77 | height: 200px; 78 | position: relative; 79 | } 80 | 81 | .avatar{ 82 | width: 30px; 83 | height: 30px; 84 | overflow: hidden; 85 | border-radius: 50%; 86 | margin-bottom: 15px; 87 | } 88 | 89 | .numbers { 90 | font-size: 2em; 91 | } 92 | 93 | .big-title { 94 | font-size: 12px; 95 | text-align: center; 96 | font-weight: 500; 97 | padding-bottom: 15px; 98 | } 99 | 100 | label{ 101 | font-size: $font-size-small; 102 | margin-bottom: 5px; 103 | color: $dark-gray; 104 | } 105 | 106 | .card-footer{ 107 | background-color: transparent; 108 | border: 0; 109 | 110 | 111 | .stats{ 112 | i{ 113 | margin-right: 5px; 114 | position: relative; 115 | top: 0px; 116 | color: $default-color; 117 | } 118 | } 119 | 120 | .btn{ 121 | margin: 0; 122 | } 123 | } 124 | 125 | &.card-plain{ 126 | background-color: transparent; 127 | box-shadow: none; 128 | border-radius: 0; 129 | 130 | 131 | .card-body{ 132 | padding-left: 5px; 133 | padding-right: 5px; 134 | } 135 | 136 | img{ 137 | border-radius: $border-radius-extreme; 138 | } 139 | } 140 | } 141 | -------------------------------------------------------------------------------- /app/Http/Controllers/Admin/PermissionsController.php: -------------------------------------------------------------------------------- 1 | middleware('role:admin'); 20 | } 21 | 22 | /** 23 | * Display a listing of Permission. 24 | * 25 | * @return \Illuminate\Http\Response 26 | */ 27 | public function index() 28 | { 29 | $permissions = Permission::all(); 30 | return view('admin.permissions.index',compact('permissions')); 31 | } 32 | 33 | /** 34 | * Show the form for creating new Permission. 35 | * 36 | * @return \Illuminate\Http\Response 37 | */ 38 | public function create() 39 | { 40 | return view('admin.permissions.create'); 41 | } 42 | 43 | /** 44 | * Store a newly created Permission in storage. 45 | * 46 | * @param \App\Http\Requests\StorePermissionsRequest $request 47 | * @return \Illuminate\Http\Response 48 | */ 49 | public function store(Request $request) 50 | { 51 | $request->validate([ 52 | 'name' => ['required','unique:permissions','max:20'], 53 | ]); 54 | 55 | $permission = Permission::create($request->all()); 56 | 57 | return redirect()->route('permissions.index')->with('success', "The $permission->name was saved successfully"); 58 | } 59 | 60 | 61 | /** 62 | * Show the form for editing Permission. 63 | * 64 | * @param int $id 65 | * @return \Illuminate\Http\Response 66 | */ 67 | public function edit($id) 68 | { 69 | $permission = Permission::findOrFail($id); 70 | 71 | return view('admin.permissions.edit', compact('permission')); 72 | } 73 | 74 | /** 75 | * Update Permission in storage. 76 | * 77 | * @param \App\Http\Requests\UpdatePermissionsRequest $request 78 | * @param int $id 79 | * @return \Illuminate\Http\Response 80 | */ 81 | public function update(Request $request, $id) 82 | { 83 | $request->validate([ 84 | 'name' => ['required','unique:permissions','max:20'], 85 | ]); 86 | 87 | $permission = Permission::findOrFail($id); 88 | $permission->update($request->all()); 89 | 90 | return redirect()->route('permissions.index')->with('warning', "The $permission->name was updated successfully"); 91 | } 92 | 93 | 94 | /** 95 | * Remove Permission from storage. 96 | * 97 | * @param int $id 98 | * @return \Illuminate\Http\Response 99 | */ 100 | public function destroy($id) 101 | { 102 | $permission = Permission::findOrFail($id); 103 | $permission->delete(); 104 | 105 | return redirect()->route('permissions.index')->with('danger', "The $permission->name was deleted successfully"); 106 | } 107 | 108 | /** 109 | * Delete all selected Permission at once. 110 | * 111 | * @param Request $request 112 | */ 113 | public function massDestroy(Request $request) 114 | { 115 | if ($request->input('ids')) { 116 | $entries = Permission::whereIn('id', $request->input('ids'))->get(); 117 | 118 | foreach ($entries as $entry) { 119 | $entry->delete(); 120 | } 121 | } 122 | } 123 | 124 | } 125 | -------------------------------------------------------------------------------- /resources/views/layouts/app.blade.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | Dashboard 11 | @yield('title') 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | @yield('extra-css') 34 | 35 | 36 | 37 | @yield('content') 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 76 | @yield('extra-script') 77 | 78 | 79 | 80 | -------------------------------------------------------------------------------- /public/dashboard/assets/datatable/responsive.dataTables.min.css: -------------------------------------------------------------------------------- 1 | table.dataTable.dtr-inline.collapsed>tbody>tr>td.child,table.dataTable.dtr-inline.collapsed>tbody>tr>th.child,table.dataTable.dtr-inline.collapsed>tbody>tr>td.dataTables_empty{cursor:default !important}table.dataTable.dtr-inline.collapsed>tbody>tr>td.child:before,table.dataTable.dtr-inline.collapsed>tbody>tr>th.child:before,table.dataTable.dtr-inline.collapsed>tbody>tr>td.dataTables_empty:before{display:none !important}table.dataTable.dtr-inline.collapsed>tbody>tr[role="row"]>td:first-child,table.dataTable.dtr-inline.collapsed>tbody>tr[role="row"]>th:first-child{position:relative;padding-left:30px;cursor:pointer}table.dataTable.dtr-inline.collapsed>tbody>tr[role="row"]>td:first-child:before,table.dataTable.dtr-inline.collapsed>tbody>tr[role="row"]>th:first-child:before{top:9px;left:4px;height:14px;width:14px;display:block;position:absolute;color:white;border:2px solid white;border-radius:14px;box-shadow:0 0 3px #444;box-sizing:content-box;text-align:center;text-indent:0 !important;font-family:'Courier New', Courier, monospace;line-height:14px;content:'+';background-color:#31b131}table.dataTable.dtr-inline.collapsed>tbody>tr.parent>td:first-child:before,table.dataTable.dtr-inline.collapsed>tbody>tr.parent>th:first-child:before{content:'-';background-color:#d33333}table.dataTable.dtr-inline.collapsed.compact>tbody>tr>td:first-child,table.dataTable.dtr-inline.collapsed.compact>tbody>tr>th:first-child{padding-left:27px}table.dataTable.dtr-inline.collapsed.compact>tbody>tr>td:first-child:before,table.dataTable.dtr-inline.collapsed.compact>tbody>tr>th:first-child:before{top:5px;left:4px;height:14px;width:14px;border-radius:14px;line-height:14px;text-indent:3px}table.dataTable.dtr-column>tbody>tr>td.control,table.dataTable.dtr-column>tbody>tr>th.control{position:relative;cursor:pointer}table.dataTable.dtr-column>tbody>tr>td.control:before,table.dataTable.dtr-column>tbody>tr>th.control:before{top:50%;left:50%;height:16px;width:16px;margin-top:-10px;margin-left:-10px;display:block;position:absolute;color:white;border:2px solid white;border-radius:14px;box-shadow:0 0 3px #444;box-sizing:content-box;text-align:center;text-indent:0 !important;font-family:'Courier New', Courier, monospace;line-height:14px;content:'+';background-color:#31b131}table.dataTable.dtr-column>tbody>tr.parent td.control:before,table.dataTable.dtr-column>tbody>tr.parent th.control:before{content:'-';background-color:#d33333}table.dataTable>tbody>tr.child{padding:0.5em 1em}table.dataTable>tbody>tr.child:hover{background:transparent !important}table.dataTable>tbody>tr.child ul.dtr-details{display:inline-block;list-style-type:none;margin:0;padding:0}table.dataTable>tbody>tr.child ul.dtr-details>li{border-bottom:1px solid #efefef;padding:0.5em 0}table.dataTable>tbody>tr.child ul.dtr-details>li:first-child{padding-top:0}table.dataTable>tbody>tr.child ul.dtr-details>li:last-child{border-bottom:none}table.dataTable>tbody>tr.child span.dtr-title{display:inline-block;min-width:75px;font-weight:bold}div.dtr-modal{position:fixed;box-sizing:border-box;top:0;left:0;height:100%;width:100%;z-index:100;padding:10em 1em}div.dtr-modal div.dtr-modal-display{position:absolute;top:0;left:0;bottom:0;right:0;width:50%;height:50%;overflow:auto;margin:auto;z-index:102;overflow:auto;background-color:#f5f5f7;border:1px solid black;border-radius:0.5em;box-shadow:0 12px 30px rgba(0,0,0,0.6)}div.dtr-modal div.dtr-modal-content{position:relative;padding:1em}div.dtr-modal div.dtr-modal-close{position:absolute;top:6px;right:6px;width:22px;height:22px;border:1px solid #eaeaea;background-color:#f9f9f9;text-align:center;border-radius:3px;cursor:pointer;z-index:12}div.dtr-modal div.dtr-modal-close:hover{background-color:#eaeaea}div.dtr-modal div.dtr-modal-background{position:fixed;top:0;left:0;right:0;bottom:0;z-index:101;background:rgba(0,0,0,0.6)}@media screen and (max-width: 767px){div.dtr-modal div.dtr-modal-display{width:95%}} 2 | -------------------------------------------------------------------------------- /public/dashboard/assets/demo/demo.css: -------------------------------------------------------------------------------- 1 | .tim-row { 2 | margin-bottom: 20px; 3 | } 4 | 5 | .tim-white-buttons { 6 | background-color: #777777; 7 | } 8 | 9 | .typography-line { 10 | padding-left: 25%; 11 | margin-bottom: 35px; 12 | position: relative; 13 | display: block; 14 | width: 100%; 15 | } 16 | 17 | .typography-line span { 18 | bottom: 10px; 19 | color: #c0c1c2; 20 | display: block; 21 | font-weight: 400; 22 | font-size: 13px; 23 | line-height: 13px; 24 | left: 0; 25 | position: absolute; 26 | width: 260px; 27 | text-transform: none; 28 | } 29 | 30 | .tim-row { 31 | padding-top: 60px; 32 | } 33 | 34 | .tim-row h3 { 35 | margin-top: 0; 36 | } 37 | 38 | .offline-doc .page-header { 39 | display: flex; 40 | align-items: center; 41 | } 42 | 43 | .offline-doc .footer { 44 | position: absolute; 45 | width: 100%; 46 | background: transparent; 47 | bottom: 0; 48 | color: #fff; 49 | z-index: 1; 50 | } 51 | 52 | @media all and (min-width: 992px) { 53 | .sidebar .nav>li.active-pro { 54 | position: absolute; 55 | width: 100%; 56 | bottom: 10px; 57 | } 58 | } 59 | 60 | .card.card-upgrade .card-category { 61 | max-width: 530px; 62 | margin: 0 auto; 63 | } 64 | 65 | /* Nucleo Style */ 66 | 67 | .demo-iconshtml { 68 | font-size: 62.5%; 69 | } 70 | 71 | .demo-icons body { 72 | font-size: 1.6rem; 73 | font-family: sans-serif; 74 | color: #333333; 75 | background: white; 76 | } 77 | 78 | .demo-icons a { 79 | color: #608CEE; 80 | text-decoration: none; 81 | } 82 | 83 | .demo-icons header { 84 | text-align: center; 85 | padding: 100px 0 0; 86 | } 87 | 88 | .demo-icons header h1 { 89 | font-size: 2.8rem; 90 | } 91 | 92 | .demo-icons header p { 93 | font-size: 1.4rem; 94 | margin-top: 1em; 95 | } 96 | 97 | .demo-icons header a:hover { 98 | text-decoration: underline; 99 | } 100 | 101 | .demo-icons .nc-icon { 102 | font-size: 34px; 103 | } 104 | 105 | .demo-icons section h2 { 106 | border-bottom: 1px solid #e2e2e2; 107 | padding: 0 0 1em .2em; 108 | margin-bottom: 1em; 109 | } 110 | 111 | .demo-icons ul { 112 | padding-left: 0; 113 | } 114 | 115 | .demo-icons ul::after { 116 | clear: both; 117 | content: ""; 118 | display: table; 119 | } 120 | 121 | .demo-icons ul li { 122 | width: 20%; 123 | float: left; 124 | padding: 16px 0; 125 | text-align: center; 126 | border-radius: .25em; 127 | -webkit-transition: background 0.2s; 128 | -moz-transition: background 0.2s; 129 | transition: background 0.2s; 130 | -webkit-user-select: none; 131 | -moz-user-select: none; 132 | -ms-user-select: none; 133 | user-select: none; 134 | overflow: hidden; 135 | } 136 | 137 | .demo-icons ul li:hover { 138 | background: #f4f4f4; 139 | } 140 | 141 | .demo-icons ul p, 142 | .demo-icons ul em, 143 | .demo-icons ul input { 144 | display: inline-block; 145 | font-size: 1rem; 146 | color: #999999; 147 | -webkit-user-select: auto; 148 | -moz-user-select: auto; 149 | -ms-user-select: auto; 150 | user-select: auto; 151 | white-space: nowrap; 152 | width: 100%; 153 | overflow: hidden; 154 | text-overflow: ellipsis; 155 | cursor: pointer; 156 | } 157 | 158 | .demo-icons ul p { 159 | padding: 20px 0 0; 160 | font-size: 12px; 161 | margin: 0; 162 | } 163 | 164 | .demo-icons ul p::selection, 165 | .demo-icons ul em::selection { 166 | background: #608CEE; 167 | color: #efefef; 168 | } 169 | 170 | .demo-icons ul em { 171 | font-size: 12px; 172 | } 173 | 174 | .demo-icons ul em::before { 175 | content: '['; 176 | } 177 | 178 | .demo-icons ul em::after { 179 | content: ']'; 180 | } 181 | 182 | .demo-icons ul input { 183 | text-align: center; 184 | background: transparent; 185 | border: none; 186 | box-shadow: none; 187 | outline: none; 188 | display: none; 189 | } -------------------------------------------------------------------------------- /config/mail.php: -------------------------------------------------------------------------------- 1 | env('MAIL_MAILER', 'smtp'), 17 | 18 | /* 19 | |-------------------------------------------------------------------------- 20 | | Mailer Configurations 21 | |-------------------------------------------------------------------------- 22 | | 23 | | Here you may configure all of the mailers used by your application plus 24 | | their respective settings. Several examples have been configured for 25 | | you and you are free to add your own as your application requires. 26 | | 27 | | Laravel supports a variety of mail "transport" drivers to be used while 28 | | sending an e-mail. You will specify which one you are using for your 29 | | mailers below. You are free to add additional mailers as required. 30 | | 31 | | Supported: "smtp", "sendmail", "mailgun", "ses", 32 | | "postmark", "log", "array" 33 | | 34 | */ 35 | 36 | 'mailers' => [ 37 | 'smtp' => [ 38 | 'transport' => 'smtp', 39 | 'host' => env('MAIL_HOST', 'smtp.mailgun.org'), 40 | 'port' => env('MAIL_PORT', 587), 41 | 'encryption' => env('MAIL_ENCRYPTION', 'tls'), 42 | 'username' => env('MAIL_USERNAME'), 43 | 'password' => env('MAIL_PASSWORD'), 44 | 'timeout' => null, 45 | ], 46 | 47 | 'ses' => [ 48 | 'transport' => 'ses', 49 | ], 50 | 51 | 'mailgun' => [ 52 | 'transport' => 'mailgun', 53 | ], 54 | 55 | 'postmark' => [ 56 | 'transport' => 'postmark', 57 | ], 58 | 59 | 'sendmail' => [ 60 | 'transport' => 'sendmail', 61 | 'path' => '/usr/sbin/sendmail -bs', 62 | ], 63 | 64 | 'log' => [ 65 | 'transport' => 'log', 66 | 'channel' => env('MAIL_LOG_CHANNEL'), 67 | ], 68 | 69 | 'array' => [ 70 | 'transport' => 'array', 71 | ], 72 | ], 73 | 74 | /* 75 | |-------------------------------------------------------------------------- 76 | | Global "From" Address 77 | |-------------------------------------------------------------------------- 78 | | 79 | | You may wish for all e-mails sent by your application to be sent from 80 | | the same address. Here, you may specify a name and address that is 81 | | used globally for all e-mails that are sent by your application. 82 | | 83 | */ 84 | 85 | 'from' => [ 86 | 'address' => env('MAIL_FROM_ADDRESS', 'hello@example.com'), 87 | 'name' => env('MAIL_FROM_NAME', 'Example'), 88 | ], 89 | 90 | /* 91 | |-------------------------------------------------------------------------- 92 | | Markdown Mail Settings 93 | |-------------------------------------------------------------------------- 94 | | 95 | | If you are using Markdown based email rendering, you may configure your 96 | | theme and component paths here, allowing you to customize the design 97 | | of the emails. Or, you may simply stick with the Laravel defaults! 98 | | 99 | */ 100 | 101 | 'markdown' => [ 102 | 'theme' => 'default', 103 | 104 | 'paths' => [ 105 | resource_path('views/vendor/mail'), 106 | ], 107 | ], 108 | 109 | ]; 110 | -------------------------------------------------------------------------------- /resources/views/auth/login.blade.php: -------------------------------------------------------------------------------- 1 | @extends('layouts.app') 2 | 3 | @section('content') 4 |



    5 |
    6 |
    7 |
    8 |
    9 |

    MS

    10 |
    11 |
    12 |

    {{ __('Login') }}

    13 |
    14 | 15 | 16 |
    17 |
    18 | @csrf 19 | 20 |
    21 | 22 | 23 |
    24 | 25 | 26 | @error('email') 27 | 28 | {{ $message }} 29 | 30 | @enderror 31 |
    32 |
    33 | 34 |
    35 | 36 | 37 |
    38 | 39 | 40 | @error('password') 41 | 42 | {{ $message }} 43 | 44 | @enderror 45 |
    46 |
    47 | 48 | 59 | 60 |
    61 |
    62 | 65 | 66 | @if (Route::has('password.request')) 67 | 68 | {{ __('Forgot Your Password?') }} 69 | 70 | @endif 71 |
    72 |
    73 |
    74 |
    75 |
    76 |
    77 |
    78 |
    79 | @endsection 80 | --------------------------------------------------------------------------------