├── public ├── favicon.ico ├── robots.txt ├── js │ └── app.js ├── .htaccess ├── web.config ├── index.php └── css │ └── app.css ├── database ├── .gitignore ├── seeds │ ├── DatabaseSeeder.php │ ├── GendersTableSeeder.php │ └── AdminsTableSeeder.php ├── migrations │ ├── 2018_03_06_123354_create_states_table.php │ ├── 2018_03_07_164659_create_genders_table.php │ ├── 2018_03_06_115649_create_salaries_table.php │ ├── 2018_03_05_132536_create_countries_table.php │ ├── 2018_03_06_131623_create_divisions_table.php │ ├── 2018_03_01_045640_create_departments_table.php │ ├── 2018_06_25_150148_password_resets.php │ ├── 2018_03_05_170530_create_cities_table.php │ ├── 2018_03_13_165135_create_admins_table.php │ └── 2018_03_08_133020_create_employees_table.php └── factories │ └── UserFactory.php ├── bootstrap ├── cache │ └── .gitignore └── app.php ├── storage ├── logs │ └── .gitignore ├── app │ ├── .gitignore │ └── public │ │ └── .gitignore ├── framework │ ├── cache │ │ └── .gitignore │ ├── testing │ │ └── .gitignore │ ├── views │ │ └── .gitignore │ ├── sessions │ │ └── .gitignore │ └── .gitignore └── fonts │ ├── 2df510fd6a1e9aab9c540b2adb81277a.ttf │ └── dompdf_font_family_cache.php ├── screenshot └── ems.PNG ├── .gitattributes ├── app ├── Gender.php ├── City.php ├── Salary.php ├── State.php ├── Country.php ├── Division.php ├── Department.php ├── Http │ ├── Middleware │ │ ├── EncryptCookies.php │ │ ├── VerifyCsrfToken.php │ │ ├── TrimStrings.php │ │ ├── TrustProxies.php │ │ └── RedirectIfAuthenticated.php │ ├── Controllers │ │ ├── Controller.php │ │ ├── ResetPassword │ │ │ ├── ForgotPasswordController.php │ │ │ └── ResetPasswordController.php │ │ ├── AuthController.php │ │ ├── ReportsController.php │ │ ├── DashboardController.php │ │ ├── SalariesController.php │ │ ├── StatesController.php │ │ ├── CountriesController.php │ │ ├── DivisionsController.php │ │ └── CitiesController.php │ └── Kernel.php ├── Providers │ ├── BroadcastServiceProvider.php │ ├── AppServiceProvider.php │ ├── AuthServiceProvider.php │ ├── EventServiceProvider.php │ └── RouteServiceProvider.php ├── User.php ├── Admin.php ├── Console │ └── Kernel.php ├── Exceptions │ └── Handler.php └── Employee.php ├── tests ├── TestCase.php ├── Unit │ └── ExampleTest.php ├── Feature │ └── ExampleTest.php └── CreatesApplication.php ├── resources ├── views │ ├── inc │ │ ├── footer.blade.php │ │ ├── message.blade.php │ │ ├── navbar.blade.php │ │ └── sidenav.blade.php │ ├── layouts │ │ ├── auth.blade.php │ │ └── app.blade.php │ ├── auth │ │ ├── passwords │ │ │ ├── email.blade.php │ │ │ └── reset.blade.php │ │ ├── show.blade.php │ │ └── index.blade.php │ ├── sys_mg │ │ ├── inc │ │ │ └── search.blade.php │ │ ├── states │ │ │ ├── create.blade.php │ │ │ ├── edit.blade.php │ │ │ └── index.blade.php │ │ ├── salaries │ │ │ ├── create.blade.php │ │ │ ├── edit.blade.php │ │ │ └── index.blade.php │ │ ├── countries │ │ │ ├── create.blade.php │ │ │ ├── edit.blade.php │ │ │ └── index.blade.php │ │ ├── divisions │ │ │ ├── create.blade.php │ │ │ ├── edit.blade.php │ │ │ └── index.blade.php │ │ ├── departments │ │ │ ├── edit.blade.php │ │ │ └── create.blade.php │ │ └── cities │ │ │ ├── create.blade.php │ │ │ ├── edit.blade.php │ │ │ └── index.blade.php │ ├── vendor │ │ └── pagination │ │ │ └── default.blade.php │ ├── reports │ │ ├── report.blade.php │ │ └── index.blade.php │ ├── employee │ │ ├── show.blade.php │ │ └── index.blade.php │ └── admin │ │ ├── create.blade.php │ │ └── edit.blade.php └── lang │ └── en │ ├── pagination.php │ ├── auth.php │ └── passwords.php ├── .gitignore ├── routes ├── channels.php ├── api.php ├── console.php └── web.php ├── config ├── hashing.php ├── view.php ├── services.php ├── broadcasting.php ├── logging.php ├── filesystems.php ├── queue.php ├── cache.php ├── auth.php ├── mail.php └── database.php ├── webpack.mix.js ├── server.php ├── .env.example ├── LICENSE ├── phpunit.xml ├── package.json ├── composer.json ├── artisan └── readme.md /public/favicon.ico: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /database/.gitignore: -------------------------------------------------------------------------------- 1 | *.sqlite 2 | -------------------------------------------------------------------------------- /bootstrap/cache/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /storage/logs/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /public/robots.txt: -------------------------------------------------------------------------------- 1 | User-agent: * 2 | Disallow: 3 | -------------------------------------------------------------------------------- /storage/app/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !public/ 3 | !.gitignore 4 | -------------------------------------------------------------------------------- /storage/framework/cache/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /storage/framework/testing/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /storage/framework/views/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /storage/framework/sessions/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /storage/app/public/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !admins/no_image.png 3 | !.gitignore 4 | -------------------------------------------------------------------------------- /screenshot/ems.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SagarMaheshwary/Employee/HEAD/screenshot/ems.PNG -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | * text=auto 2 | *.css linguist-vendored 3 | *.scss linguist-vendored 4 | *.js linguist-vendored 5 | CHANGELOG.md export-ignore 6 | -------------------------------------------------------------------------------- /app/Gender.php: -------------------------------------------------------------------------------- 1 | 2 |
7 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | /node_modules 2 | /public/hot 3 | /public/storage 4 | /storage/*.key 5 | /vendor 6 | /.idea 7 | /.vscode 8 | /nbproject 9 | /.vagrant 10 | Homestead.json 11 | Homestead.yaml 12 | npm-debug.log 13 | yarn-error.log 14 | .env 15 | .phpunit.result.cache 16 | -------------------------------------------------------------------------------- /database/seeds/DatabaseSeeder.php: -------------------------------------------------------------------------------- 1 | call(GendersTableSeeder::class); 15 | $this->call(AdminsTableSeeder::class); 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /app/Http/Middleware/EncryptCookies.php: -------------------------------------------------------------------------------- 1 | assertTrue(true); 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /app/Http/Middleware/VerifyCsrfToken.php: -------------------------------------------------------------------------------- 1 | get('/'); 18 | 19 | $response->assertStatus(200); 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /app/Providers/BroadcastServiceProvider.php: -------------------------------------------------------------------------------- 1 | gender_name = 'Male'; 17 | $gender->save(); 18 | $gender = new Gender(); 19 | $gender->gender_name = 'Female'; 20 | $gender->save(); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /public/js/app.js: -------------------------------------------------------------------------------- 1 | //Initialize sideNav 2 | var sideNav = document.querySelector('.sidenav'); 3 | M.Sidenav.init(sideNav); 4 | 5 | //Initialize Modal 6 | var modal = document.querySelector('.modal'); 7 | M.Modal.init(modal); 8 | 9 | //initialize Form Select 10 | $(document).ready(function(){ 11 | $('select').formSelect(); 12 | $('.datepicker').datepicker(); 13 | $(".dropdown-trigger").dropdown(); 14 | $('.collapsible').collapsible(); 15 | }); 16 | if(document.getElementById('address')){ 17 | M.textareaAutoResize($('#address')); 18 | } -------------------------------------------------------------------------------- /app/Http/Middleware/TrustProxies.php: -------------------------------------------------------------------------------- 1 | 3 | 12 | @endif -------------------------------------------------------------------------------- /routes/channels.php: -------------------------------------------------------------------------------- 1 | id === (int) $id; 16 | }); 17 | -------------------------------------------------------------------------------- /tests/CreatesApplication.php: -------------------------------------------------------------------------------- 1 | make(Kernel::class)->bootstrap(); 20 | 21 | Hash::driver('bcrypt')->setRounds(4); 22 | 23 | return $app; 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /routes/api.php: -------------------------------------------------------------------------------- 1 | get('/user', function (Request $request) { 17 | return $request->user(); 18 | }); 19 | -------------------------------------------------------------------------------- /config/hashing.php: -------------------------------------------------------------------------------- 1 | 'bcrypt', 19 | 20 | ]; 21 | -------------------------------------------------------------------------------- /webpack.mix.js: -------------------------------------------------------------------------------- 1 | let mix = require('laravel-mix'); 2 | 3 | /* 4 | |-------------------------------------------------------------------------- 5 | | Mix Asset Management 6 | |-------------------------------------------------------------------------- 7 | | 8 | | Mix provides a clean, fluent API for defining some Webpack build steps 9 | | for your Laravel application. By default, we are compiling the Sass 10 | | file for the application as well as bundling up all the JS files. 11 | | 12 | */ 13 | 14 | mix.js('resources/assets/js/app.js', 'public/js') 15 | .sass('resources/assets/sass/app.scss', 'public/css'); 16 | -------------------------------------------------------------------------------- /app/Providers/AppServiceProvider.php: -------------------------------------------------------------------------------- 1 | '« Previous', 17 | 'next' => 'Next »', 18 | 19 | ]; 20 | -------------------------------------------------------------------------------- /routes/console.php: -------------------------------------------------------------------------------- 1 | comment(Inspiring::quote()); 18 | })->describe('Display an inspiring quote'); 19 | -------------------------------------------------------------------------------- /app/User.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/Http/Middleware/RedirectIfAuthenticated.php: -------------------------------------------------------------------------------- 1 | check()) { 21 | return redirect('/dashboard'); 22 | } 23 | 24 | return $next($request); 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /database/seeds/AdminsTableSeeder.php: -------------------------------------------------------------------------------- 1 | first_name = 'John'; 18 | $admin->last_name = 'Doe'; 19 | $admin->username = 'admin'; 20 | $admin->email = 'admin@admin.com'; 21 | $admin->password = bcrypt('password'); 22 | $admin->picture = 'no_image.png'; 23 | $admin->save(); 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /public/.htaccess: -------------------------------------------------------------------------------- 1 |person{{Auth::user()->username}}
17 |email{{Auth::user()->email}}
18 || ID | 30 |Name | 31 |Phone | 33 |Zip Code | 34 |Country | 35 |Salary | 36 |City | 37 |Salary | 38 |Department | 39 |Division | 40 |age | 41 |address | 42 |Join Date | 43 |Birth Date | 44 ||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| {{$employee->id}} | 50 |{{$employee->first_name}} {{$employee->last_name}} | 51 |{{$employee->email}} | 52 |{{$employee->phone}} | 53 |{{$employee->empCity->zip_code}} | 54 |{{$employee->empCountry->country_name}} | 55 |{{$employee->empState->state_name}} | 56 |{{$employee->empCity->city_name}} | 57 |{{$employee->empSalary->s_amount}} | 58 |{{$employee->empDepartment->dept_name}} | 59 |{{$employee->empDivision->division_name}} | 60 |{{$employee->age}} | 61 |{{$employee->address}} | 62 |{{$employee->join_date}} | 63 |{{$employee->birth_date}} | 64 |
| ID | 38 |Image | 39 |Name | 40 |Department | 41 |Division | 42 |Join Date | 43 |Options | 44 |
|---|---|---|---|---|---|---|
| {{$employee->id}} | 52 |
53 | |
55 | {{$employee->first_name}} {{$employee->last_name}} | 56 |{{$employee->empDepartment->dept_name}} | 57 |{{$employee->empDivision->division_name}} | 58 |{{$employee->join_date}} | 59 |60 | list 61 | | 62 |
No Employees Found! |
68 | ||||||
location_city{{$employee->address}}
17 |location_on{{$employee->empCity->city_name}}, {{$employee->empState->state_name}}, {{$employee->empCountry->country_name}}
18 |person_outline{{$employee->empGender->gender_name}}
19 |Age :{{$employee->age}}
28 |Phone :{{$employee->phone}}
31 |Zip Code :{{$employee->empCity->zip_code}}
34 |Department :{{$employee->empDepartment->dept_name}}
37 |Division :{{$employee->empDivision->division_name}}
40 |Email :{{$employee->email}}
43 |Salary :${{$employee->empSalary->s_amount}}/-
46 |Joined Date :{{$employee->join_date}}
49 |Date of Birth :{{$employee->birth_date}}
52 || ID | 21 |State Name | 22 |Created at | 23 |Updated at | 24 |Options | 25 |
|---|---|---|---|---|
| {{$state->id}} | 33 |{{$state->state_name}} | 34 |{{$state->created_at}} | 35 |{{$state->updated_at}} | 36 |
37 |
38 |
49 |
39 | mode_edit
40 |
41 |
42 |
47 |
48 | |
50 |
No States have been found yet! |
56 | ||||
| 61 | Show All 62 | | 63 |||||
| ID | 21 |Country Name | 22 |Created at | 23 |Updated at | 24 |Options | 25 |
|---|---|---|---|---|
| {{$country->id}} | 33 |{{$country->country_name}} | 34 |{{$country->created_at}} | 35 |{{$country->updated_at}} | 36 |
37 |
38 |
49 |
39 | mode_edit
40 |
41 |
42 |
47 |
48 | |
50 |
No Countries Found! |
56 | ||||
| 61 | Show All 62 | | 63 |||||
| ID | 21 |Salary Amount | 22 |Created at | 23 |Updated at | 24 |Options | 25 |
|---|---|---|---|---|
| {{$salary->id}} | 33 |{{$salary->s_amount}} | 34 |{{$salary->created_at}} | 35 |{{$salary->updated_at}} | 36 |
37 |
38 |
49 |
39 | mode_edit
40 |
41 |
42 |
47 |
48 | |
50 |
No Salaries found yet! |
56 | ||||
| 61 | Show All 62 | | 63 |||||
| ID | 21 |Division Name | 22 |Created at | 23 |Updated at | 24 |Options | 25 |
|---|---|---|---|---|
| {{$division->id}} | 33 |{{$division->division_name}} | 34 |{{$division->created_at}} | 35 |{{$division->updated_at}} | 36 |
37 |
38 |
49 |
39 | mode_edit
40 |
41 |
42 |
47 |
48 | |
50 |
No Divisions found yet! |
56 | ||||
| 61 | Show All 62 | | 63 |||||
| ID | 21 |City Name | 22 |Zip Code | 23 |Created at | 24 |Updated at | 25 |Options | 26 |
|---|---|---|---|---|---|
| {{$city->id}} | 34 |{{$city->city_name}} | 35 |{{$city->zip_code}} | 36 |{{$city->created_at}} | 37 |{{$city->updated_at}} | 38 |
39 |
40 |
51 |
41 | mode_edit
42 |
43 |
44 |
49 |
50 | |
52 |
No Cities found! |
58 | |||||
| 63 | Show All 64 | | 65 ||||||
| ID | 52 |Image | 53 |Name | 54 |Department | 55 |Division | 56 |Join Date | 57 |Options | 58 |
|---|---|---|---|---|---|---|
| {{$employee->id}} | 66 |
67 | |
69 | {{$employee->first_name}} {{$employee->last_name}} | 70 |{{$employee->empDepartment->dept_name}} | 71 |{{$employee->empDivision->division_name}} | 72 |{{$employee->join_date}} | 73 |74 | list 75 | | 76 |
| 81 | Show All 82 | | 83 |||||||
No Employees Found! |
89 | ||||||