Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Sign in / Register
Toggle navigation
K
Kinetic_2.0
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
David Mburu
Kinetic_2.0
Commits
ee38070a
Commit
ee38070a
authored
Mar 06, 2019
by
David Mburu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Second commit
parent
b125d0de
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
647 additions
and
142 deletions
+647
-142
PayfrequencyController.php
app/Http/Controllers/PayfrequencyController.php
+84
-0
JobtitleConfig.blade.php
resources/views/Employees/JobtitleConfig.blade.php
+120
-0
PayfrequencyConfig.blade.php
resources/views/Employees/PayfrequencyConfig.blade.php
+198
-0
Registration.blade.php
resources/views/Employees/Registration.blade.php
+128
-92
index.blade.php
resources/views/Employees/index.blade.php
+85
-21
Employeesmaster.blade.php
resources/views/Layout/Employeesmaster.blade.php
+27
-15
Payslipmaster.blade.php
resources/views/Layout/Payslipmaster.blade.php
+2
-2
web.php
routes/web.php
+3
-12
No files found.
app/Http/Controllers/PayfrequencyController.php
0 → 100644
View file @
ee38070a
<?php
namespace
App\Http\Controllers
;
use
Illuminate\Http\Request
;
class
PayfrequencyController
extends
Controller
{
/**
* Display a listing of the resource.
*
* @return \Illuminate\Http\Response
*/
public
function
index
()
{
return
view
(
'Employees.PayfrequencyConfig'
);
}
/**
* Show the form for creating a new resource.
*
* @return \Illuminate\Http\Response
*/
public
function
create
()
{
//
}
/**
* Store a newly created resource in storage.
*
* @param \Illuminate\Http\Request $request
* @return \Illuminate\Http\Response
*/
public
function
store
(
Request
$request
)
{
//
}
/**
* Display the specified resource.
*
* @param int $id
* @return \Illuminate\Http\Response
*/
public
function
show
(
$id
)
{
//
}
/**
* Show the form for editing the specified resource.
*
* @param int $id
* @return \Illuminate\Http\Response
*/
public
function
edit
(
$id
)
{
//
}
/**
* Update the specified resource in storage.
*
* @param \Illuminate\Http\Request $request
* @param int $id
* @return \Illuminate\Http\Response
*/
public
function
update
(
Request
$request
,
$id
)
{
//
}
/**
* Remove the specified resource from storage.
*
* @param int $id
* @return \Illuminate\Http\Response
*/
public
function
destroy
(
$id
)
{
//
}
}
resources/views/Employees/JobtitleConfig.blade.php
0 → 100644
View file @
ee38070a
@
extends
(
'Layout.Employeesmaster'
)
@
section
(
'title'
,
'Employees'
)
<
style
>
.
choose_file
{
position
:
relative
;
display
:
inline
-
block
;
font
:
normal
14
px
Myriad
Pro
,
Verdana
,
Geneva
,
sans
-
serif
;
color
:
#7f7f7f;
margin
-
top
:
2
px
;
background
:
white
}
#import_file{
-
webkit
-
appearance
:
none
;
position
:
absolute
;
top
:
0
;
left
:
0
;
opacity
:
0
;
width
:
100
%
;
height
:
100
%
;
}
</
style
>
@
section
(
'content'
)
<
section
id
=
"content"
>
<
section
class
="
scrollable
padder
">
<ul class="
breadcrumb
no
-
border
no
-
radius
b
-
b
b
-
light
pull
-
in
">
<li><a href="
.
"><i class="
fa
fa
-
home
"></i> Home</a></li>
<li class="
active
">Pay Frequency</li>
</ul>
@if ( session('success') )
<div class="
alert
alert
-
success
alert
-
dismissible
" role="
alert
">
<button type="
button
" class="
close
" data-dismiss="
alert
" aria-label="
Close
">
<span aria-hidden="
true
">×</span>
<span class="
sr
-
only
">Close</span>
</button>
<strong>{{ session('success') }}</strong>
</div>
@endif
@if (session('error'))
<div class="
alert
alert
-
danger
alert
-
dismissible
" role="
alert
">
<button type="
button
" class="
close
" data-dismiss="
alert
" aria-label="
Close
">
<span aria-hidden="
true
">×</span>
<span class="
sr
-
only
">Close</span>
</button>
<strong>{{ session('error') }}</strong>
</div>
@endif
@if (count(
$errors
) > 0)
<div class="
alert
alert
-
danger
">
<a href="
#" class="close" data-dismiss="alert" aria-label="close">×</a>
<
div
>
@
foreach
(
$errors
->
all
()
as
$error
)
<
p
>
{{
$error
}}
</
p
>
@
endforeach
</
div
>
</
div
>
@
endif
<
div
class
=
container
-
fluid
>
<
div
class
=
row
>
<
legend
style
=
"padding:25px 5px 5px 10px"
>
Pay
Frequency
</
legend
>
<
div
class
="
pull
-
right
" style="
margin
:
5
px
20
px
5
px
10
px
;
">
<a href="" class="
btn
btn
-
info
btn
-
sm
"><i class="
fa
fa
-
plus
"></i></a>
</div>
</div>
<div class=row style="
padding
:
0
px
5
px
5
px
10
px
">
<div class="
table
-
responsive
" style="
padding
:
0
px
5
px
5
px
10
px
">
<table class="
table
table
-
striped
m
-
b
-
sm
datagrid
">
<thead>
<tr>
<th>Action</th>
<th>Pay Frequency</th>
<th>Short Code</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td>
<a href=""><span class="
btn
btn
-
default
btn
-
sm
"><i class="
fa
fa
-
eye
no
-
margin
"></i></span></a>
<a href=""><span class="
btn
btn
-
default
btn
-
sm
"><i class="
fa
fa
-
edit
no
-
margin
"></i></span></a>
<a href=""><span class="
btn
btn
-
danger
btn
-
sm
"><i class="
fa
fa
-
trash
no
-
margin
"></i></span></a>
</td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td colspan="
2
" class="
text
-
center
">Nothing to display</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</section>
@endsection
@section('footer-include')
<!-- fuelux -->
<script src="
/
js
/
libs
/
underscore
-
min
.
js
"></script>
<script src="
/
js
/
fuelux
/
fuelux
.
js
"></script>
{{--<script src="
js
/
fuelux
/
demo
.
datagrid
.
js
"></script>--}}
<!-- select2 -->
@endsection
@section('j-script')
<!-- Jquery -->
<script>
$(document).on('ready', function(){
});
</script>
@endsection
\ No newline at end of file
resources/views/Employees/PayfrequencyConfig.blade.php
0 → 100644
View file @
ee38070a
@
extends
(
'Layout.Employeesmaster'
)
@
section
(
'title'
,
'Employees'
)
<
style
>
.
info
p
{
text
-
align
:
center
;
color
:
#999;
text
-
transform
:
none
;
font
-
weight
:
600
;
font
-
size
:
15
px
;
margin
-
top
:
2
px
}
.
info
i
{
color
:
#F6AA93;
}
form
{
border
-
radius
:
5
px
;
width
:
100
%
;
background
-
color
:
#FFFFFF;
overflow
:
hidden
;
}
p
span
{
color
:
#F00;
}
p
{
margin
:
0
px
;
font
-
weight
:
500
;
line
-
height
:
2
;
color
:
#333;
}
a
{
text
-
decoration
:
inherit
}
.
form
-
group
{
overflow
:
hidden
;
clear
:
both
;
}
.
form
-
control
{
position
:
relative
;
clear
:
both
;
margin
-
top
:
2
px
;
display
:
inline
-
block
;
margin
-
right
:
10
px
;
}
</
style
>
@
section
(
'content'
)
<
section
id
=
"content"
>
<
section
class
="
scrollable
padder
">
<ul class="
breadcrumb
no
-
border
no
-
radius
b
-
b
b
-
light
pull
-
in
">
<li><a href="
.
"><i class="
fa
fa
-
home
"></i> Home</a></li>
<li class="
active
">Pay Frequency</li>
</ul>
@if ( session('success') )
<div class="
alert
alert
-
success
alert
-
dismissible
" role="
alert
">
<button type="
button
" class="
close
" data-dismiss="
alert
" aria-label="
Close
">
<span aria-hidden="
true
">×</span>
<span class="
sr
-
only
">Close</span>
</button>
<strong>{{ session('success') }}</strong>
</div>
@endif
@if (session('error'))
<div class="
alert
alert
-
danger
alert
-
dismissible
" role="
alert
">
<button type="
button
" class="
close
" data-dismiss="
alert
" aria-label="
Close
">
<span aria-hidden="
true
">×</span>
<span class="
sr
-
only
">Close</span>
</button>
<strong>{{ session('error') }}</strong>
</div>
@endif
@if (count(
$errors
) > 0)
<div class="
alert
alert
-
danger
">
<a href="
#" class="close" data-dismiss="alert" aria-label="close">×</a>
<
div
>
@
foreach
(
$errors
->
all
()
as
$error
)
<
p
>
{{
$error
}}
</
p
>
@
endforeach
</
div
>
</
div
>
@
endif
<
div
class
=
container
-
fluid
>
<
div
class
=
row
>
<
legend
style
=
"padding:25px 5px 5px 10px"
>
Pay
Frequency
</
legend
>
<
div
class
="
pull
-
right
" style="
margin
:
5
px
20
px
5
px
10
px
;
">
<a href="" class="
btn
btn
-
info
btn
-
sm
" data-toggle="
modal
" data-target="
#createPayfrequency"><i class="fa fa-plus"></i></a>
</
div
>
</
div
>
<
div
class
=
row
style
=
"padding:0px 5px 5px 10px"
>
<
div
class
="
table
-
responsive
" style="
padding
:
0
px
5
px
5
px
10
px
">
<table class="
table
table
-
striped
m
-
b
-
sm
datagrid
">
<thead>
<tr>
<th>Action</th>
<th>Pay Frequency</th>
<th>Short Code</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td>
<a href=""><span class="
btn
btn
-
default
btn
-
sm
"><i class="
fa
fa
-
eye
no
-
margin
"></i></span></a>
<a href=""><span class="
btn
btn
-
default
btn
-
sm
"><i class="
fa
fa
-
edit
no
-
margin
"></i></span></a>
<a href=""><span class="
btn
btn
-
danger
btn
-
sm
"><i class="
fa
fa
-
trash
no
-
margin
"></i></span></a>
</td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td colspan="
2
" class="
text
-
center
">Nothing to display</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</section>
</section>
<!-- Modal -->
<div class="
modal
fade
" id="
createPayfrequency
" role="
dialog
">
<div class="
modal
-
dialog
">
<!-- Modal content-->
<div class="
modal
-
content
">
<div class="
modal
-
header
">
<button type="
button
" class="
close
" data-dismiss="
modal
">×</button>
<h4 class="
modal
-
title
">Pay Frequency</h4>
</div>
<div class="
modal
-
body
">
<form method="
post
" action="" enctype="
multipart
/
form
-
data
" class="
form
-
inline
" style="
padding
-
top
:
10
px
;
">
<div class=form-group style="
padding
-
left
:
20
px
">
<p>Pay Frequency<span>*</span></p>
<input name="
payfrequency
" type="
text
" class="
form
-
control
" id="
payfrequency
" style="
border
-
radius
:
0
px
5
px
5
px
0
px
;
border
:
1
px
solid
#eee;margin-bottom: 15px;width: 10em;height: 30px;float: left;padding: 0px 15px;"
required
>
</
div
>
<
div
class
=
form
-
group
style
=
"padding-left:20px"
>
<
p
>
Short
Code
<
span
>*</
span
></
p
>
<
input
name
=
"shortcode"
type
=
"text"
class
="
form
-
control
" id="
shortcode
" style="
border
-
radius
:
0
px
5
px
5
px
0
px
;
border
:
1
px
solid
#eee;margin-bottom: 15px;width: 10em;height: 30px;float: left;padding: 0px 15px;"
required
>
</
div
>
<
div
class
=
form
-
group
style
=
"padding-left:20px"
>
<
p
>
Description
<
span
>*</
span
></
p
>
<
input
name
=
"description"
type
=
"text"
class
="
form
-
control
" id="
description
" style="
border
-
radius
:
0
px
5
px
5
px
0
px
;
border
:
1
px
solid
#eee;margin-bottom: 15px;width: 10em;height: 30px;float: left;padding: 0px 15px;"
required
>
</
div
>
</
form
>
</
div
>
<
div
class
="
modal
-
footer
">
<button type="
button
" onclick="
form_submit
()
" class="
btn
btn
-
primary
">Save changes</button>
<button type="
button
" class="
btn
btn
-
default
" data-dismiss="
modal
">Close</button>
</div>
</div>
</div>
</div>
<script type="
text
/
javascript
">
function form_submit() {
document.getElementById("
my_form
").submit();
}
</script>
@endsection
@section('footer-include')
<!-- fuelux -->
<script src="
/
js
/
libs
/
underscore
-
min
.
js
"></script>
<script src="
/
js
/
fuelux
/
fuelux
.
js
"></script>
{{--<script src="
js
/
fuelux
/
demo
.
datagrid
.
js
"></script>--}}
<!-- select2 -->
@endsection
@section('j-script')
<!-- Jquery -->
<script>
$(document).on('ready', function(){
});
</script>
@endsection
\ No newline at end of file
resources/views/Employees/Registration.blade.php
View file @
ee38070a
...
...
@@ -60,7 +60,7 @@ a {
<ul class="
breadcrumb
no
-
border
no
-
radius
b
-
b
b
-
light
pull
-
in
">
<li><a href="
.
"><i class="
fa
fa
-
home
"></i> Home</a></li>
<li><a href="
/
employees
">Employees</a></li>
<li class="
active
">
Employee info
</li>
<li class="
active
">
Add
</li>
</ul>
@include('Layout.errors')
@if ( session('success') )
...
...
@@ -72,17 +72,18 @@ a {
<strong>{{ session('success') }}</strong>
</div>
@endif
<div class="
container
-
fluid
" style="
margin
-
bottom
:
0
px
;
">
<div class=col-md-3 style="
width
:
13.5
%
">
<div class=col-md-3
id=tabLinks
style="
width
:
13.5
%
">
<ul class="
list
-
group
">
<li class="
list
-
group
-
item
active
" ><a href="
#employeeinfo" class="tab
Link employeeinfo
" onclick="tabswitch(this)">Employee Info</a></li>
<
li
class
="
list
-
group
-
item
"><a href="
#personal" class="tab
Link documents
" onclick="tabswitch(this)">Personal</a></li>
<li class="
list
-
group
-
item
active
" ><a href="
#employeeinfo" class="tab" onclick="tabswitch(this)">Employee Info</a></li>
<
li
class
="
list
-
group
-
item
"><a href="
#personal" class="tab" onclick="tabswitch(this)">Personal</a></li>
<
li
class
="
list
-
group
-
item
">Salary</li>
<li class="
list
-
group
-
item
"><a href="
#
personal" class="tabLink training
" onclick="tabswitch(this)">Training and Certification</a></li>
<li class="
list
-
group
-
item
"><a href="
#
training" class="tab
" onclick="tabswitch(this)">Training and Certification</a></li>
</
ul
>
</
div
>
<
div
class
=
col
-
md
-
6
style
=
"width:86.5%"
>
<
form
method
=
"post"
action
=
"{{ route('
registration
') }}"
enctype
=
"multipart/form-data"
class
="
form
-
inline
" style="
padding
-
top
:
10
px
;
">
<
form
method
=
"post"
action
=
"{{ route('
/employees/add
') }}"
enctype
=
"multipart/form-data"
class
="
form
-
inline
" style="
padding
-
top
:
10
px
;
">
{{ csrf_field() }}
<div class="
tabcontainer
employeeinfo
" id=employeeinfo>
<fieldset>
...
...
@@ -93,8 +94,9 @@ a {
<div class="
wrapper
" style="
width
:
10
%
;
padding
:
0
px
0
px
5
px
0
px
;
">
<select name="
employeecode
" id="
employeecode
" class="
form
-
control
"style="
width
:
15
em
;
" onfocus='this.size=5;' onblur='this.size=1;' onchange='this.size=1; this.blur();'>
<option value="
0
">Select Employee Code</option>
<option value="
1
">NA</option>
<option value="
2
">ATL</option>
<option value="
1
">Branch Code</option>
<option value="
2
">Department Code</option>
<option value="
3
">None</option>
</select>
</div>
<div style="
float
:
left
;
margin
-
top
:
2
px
;
text
-
align
:
left
;
font
-
family
:
'Roboto Regular'
,
sans
-
serif
;
color
:
#208BBD;font-size: 12px;cursor: pointer;">
...
...
@@ -368,7 +370,7 @@ a {
<!-- PersonalInfo Div -->
<div class="
col
-
md
-
6
tabcontainer
personal
" id=personal style="
display
:
none
;
width
:
86.5
%
">
<form method="
post
" action="
{{
route
(
'
registration
'
)
}}
" enctype="
multipart
/
form
-
data
" class="
form
-
inline
" style="
padding
-
top
:
10
px
;
">
<form method="
post
" action="
{{
route
(
'
/employees/add
'
)
}}
" enctype="
multipart
/
form
-
data
" class="
form
-
inline
" style="
padding
-
top
:
10
px
;
">
{{ csrf_field() }}
<fieldset>
<legend>Personal Info</legend>
...
...
@@ -423,7 +425,7 @@ a {
<
div
class
=
row
style
=
"padding:0px 5px 5px 10px"
>
<
div
class
=
col
-
md
-
4
style
=
"width:20%"
>
<
p
>
Identity
Documents
</
p
>
<
p
>
Identity
Documents
<
span
>*</
span
>
</
p
>
<
div
class
="
wrapper
" style="
width
:
10
%
;
padding
:
0
px
0
px
5
px
0
px
;
float
:
left
;
">
<select name="
identitydocument
" onchange="
inputfieldVisibility
(
this
);
" id="
identitydocument
" class="
form
-
control
" style="
width
:
15
em
;
" onfocus='this.size=5;' onblur='this.size=1;' onchange='this.size=1; this.blur();'>
<option value="">Select Identification</option>
...
...
@@ -474,7 +476,7 @@ a {
<fieldset>
<div class=row style="
padding
:
5
px
5
px
5
px
10
px
">
<h3 style="
padding
:
5
px
5
px
5
px
10
px
">Contact info</h3>
<legend style="
padding
:
5
px
5
px
5
px
10
px
">P
hysic
al Address</legend>
<legend style="
padding
:
5
px
5
px
5
px
10
px
">P
ost
al Address</legend>
<div class=col-md-4 style="
width
:
20
%
">
<p>Country <span>*</span></p>
<input name="
country
" type="
text
" class="
form
-
control
" id="
country
" style="
border
-
radius
:
0
px
5
px
5
px
0
px
;
border
:
1
px
solid
#eee;margin-bottom: 15px;width: 15em;height: 40px;float: left;padding: 0px 15px;"
...
...
@@ -500,13 +502,9 @@ a {
<
input
name
=
"postalcode"
type
=
"text"
class
="
form
-
control
" id="
postalcode
" style="
border
-
radius
:
0
px
5
px
5
px
0
px
;
border
:
1
px
solid
#eee;margin-bottom: 15px;width: 15em;height: 40px;float: left;padding: 0px 15px;">
</
div
>
</
div
><!--
End
of
third
row
-->
<
div
class
=
row
style
=
"padding:0px 5px 5px 20px"
>
<
input
type
=
"checkbox"
class
="
addressCheckbox
" style="
font
-
size
:
45
px
;
"/>
Check this box if Physical Address and Postal Address are the same.
</div>
<
div
class
=
row
style
=
"padding:0px 5px 5px 10px"
>
<legend style="
padding
:
25
px
5
px
5
px
10
px
">
Postal
Address</legend>
<
legend
style
=
"padding:25px 5px 5px 10px"
>
Current
Address
</
legend
>
<
div
class
=
col
-
md
-
4
style
=
"width:20%"
>
<
p
>
Country
<
span
>*</
span
></
p
>
<
input
name
=
"postalCountry"
type
=
"text"
class
="
form
-
control
" id="
postalCountry
" style="
border
-
radius
:
0
px
5
px
5
px
0
px
;
border
:
1
px
solid
#eee;margin-bottom: 15px;width: 15em;height: 40px;float: left;padding: 0px 15px;"
...
...
@@ -535,29 +533,40 @@ a {
</
div
><!--
End
of
fourth
row
-->
<
div
class
=
row
style
=
"padding:0px 5px 5px 10px"
>
<
legend
style
=
"padding:25px 5px 5px 10px"
>
Emergency
Contacts
</
legend
>
<
div
class
=
col
-
md
-
4
style
=
"width:20%"
>
<
p
>
Name
<
span
>*</
span
></
p
>
<
input
name
=
"emergencyName"
type
=
"text"
class
="
form
-
control
" id="
emergencyName
" style="
border
-
radius
:
0
px
5
px
5
px
0
px
;
border
:
1
px
solid
#eee;margin-bottom: 15px;width: 15em;height: 40px;float: left;padding: 0px 15px;"
required
>
</
div
>
<
div
class
=
col
-
md
-
4
style
=
"width:20%"
>
<
p
>
Email
<
span
>*</
span
></
p
>
<
input
name
=
"emergencyEmail"
type
=
"text"
class
="
form
-
control
" id="
emergencyEmail
" style="
border
-
radius
:
0
px
5
px
5
px
0
px
;
border
:
1
px
solid
#eee;margin-bottom: 15px;width: 15em;height: 40px;float: left;padding: 0px 15px;"
required
>
</
div
>
<
div
class
=
col
-
md
-
4
style
=
"width:20%"
>
<
p
>
PhoneNo
.
<
span
>*</
span
></
p
>
<
input
name
=
"emergencyPhoneno"
type
=
"text"
class
="
form
-
control
" id="
emergencyPhoneno
" style="
border
-
radius
:
0
px
5
px
5
px
0
px
;
border
:
1
px
solid
#eee;margin-bottom: 15px;width: 15em;height: 40px;float: left;padding: 0px 15px;"
required
>
</
div
>
<
div
class
=
col
-
md
-
4
style
=
"width:20%"
>
<
p
>
Relation
<
span
>*</
span
></
p
>
<
input
name
=
"emergencyRelation"
type
=
"text"
class
="
form
-
control
" id="
emergencyRelation
" style="
border
-
radius
:
0
px
5
px
5
px
0
px
;
border
:
1
px
solid
#eee;margin-bottom: 15px;width: 15em;height: 40px;float: left;padding: 0px 15px;"
required
>
</
div
>
</
div
><!--
End
of
fifth
row
-->
<
div
class
="
pull
-
right
" style="
margin
:
5
px
20
px
5
px
10
px
;
">
<a href="" class="
btn
btn
-
info
btn
-
sm
"><i class="
fa
fa
-
plus
"></i>Add Emergency Contact</a>
</div>
</div>
<div class=row style="
padding
:
0
px
5
px
5
px
10
px
">
<div class="
table
-
responsive
" style="
padding
:
0
px
5
px
5
px
10
px
">
<table class="
table
table
-
striped
m
-
b
-
sm
datagrid
">
<thead>
<tr>
<th>Name</th>
<th>Phone No.</th>
<th>Email</th>
<th>Relation</th>
<th>Action</th>
</tr>
</thead>
<tbody>
<tr id="">
<td></td>
<td></td>
<td></td>
<td></td>
<td>
<a href=""><span class="
btn
btn
-
default
btn
-
sm
"><i class="
fa
fa
-
edit
no
-
margin
"></i></span></a>
<a href=""><span class="
btn
btn
-
danger
btn
-
sm
" ><i class="
fa
fa
-
trash
no
-
margin
"></i></span></a>
</td>
</tr>
<tr>
<td colspan="
2
" class="
text
-
center
">Nothing to display</td>
</tr>
</tbody>
</table>
</div>
</div><!-- End of fifth row -->
<div class=row style="
padding
:
0
px
5
px
15
px
10
px
">
<div class=col-md-4 style="
width
:
20
%
;
padding
-
top
:
15
px
">
<button class="
btn
btn
-
info
" style="
padding
:
5
px
25
px
5
px
25
px
">Save</button>
...
...
@@ -565,34 +574,67 @@ a {
<div class=col-md-4 style="
width
:
20
%
;
padding
-
top
:
15
px
">
<button class=btn style="
padding
:
5
px
25
px
5
px
25
px
">Cancel</button>
</div>
</div> <!-- End of button row -->
</div> <!-- End of button row -->
</form> <!-- End of form -->
</div> <!--End of column -->
</div> <!--End of column -->
<div class="
col
-
md
-
6
tabcontainer
training
" id=training style="
display
:
none
;
width
:
86.5
%
">
<div class=row style="
padding
:
0
px
5
px
5
px
10
px
">
<legend style="
padding
:
25
px
5
px
5
px
10
px
">Training and Certification</legend>
<div class="
pull
-
right
" style="
margin
:
5
px
20
px
5
px
10
px
;
">
<a href="" class="
btn
btn
-
info
btn
-
sm
"><i class="
fa
fa
-
plus
"></i>Add Certification</a>
</div>
</div>
<div class=row style="
padding
:
0
px
5
px
5
px
10
px
">
<div class="
table
-
responsive
" style="
padding
:
0
px
5
px
5
px
10
px
">
<table class="
table
table
-
striped
m
-
b
-
sm
datagrid
">
<thead>
<tr>
<th>Course Name</th>
<th>Course Level</th>
<th>Name of Institution</th>
<th>Cerification Name</th>
<th>Action</th>
</tr>
</thead>
<tbody>
<tr id="">
<td></td>
<td></td>
<td></td>
<td></td>
<td>
<a href=""><span class="
btn
btn
-
default
btn
-
sm
"><i class="
fa
fa
-
edit
no
-
margin
"></i></span></a>
<a href=""><span class="
btn
btn
-
danger
btn
-
sm
" ><i class="
fa
fa
-
trash
no
-
margin
"></i></span></a>
</td>
</tr>
<tr>
<td colspan="
2
" class="
text
-
center
">Nothing to display</td>
</tr>
</tbody>
</table>
</div>
</div><!-- End of fifth row -->
</div><!--- End of training and Certification -->
</div> <!-- End of container -->
</section>
</section>
<script src="
http
://
ajax
.
googleapis
.
com
/
ajax
/
libs
/
jquery
/
1.10
.
2
/
jquery
.
min
.
js
"></script>
<script src="
https
://
ajax
.
googleapis
.
com
/
ajax
/
libs
/
jquery
/
3.3
.
1
/
jquery
.
min
.
js
"></script>
<link href="
https
://
cdnjs
.
cloudflare
.
com
/
ajax
/
libs
/
select2
/
4.0
.
6
-
rc
.
0
/
css
/
select2
.
min
.
css
" rel="
stylesheet
" />
<script src="
https
://
cdnjs
.
cloudflare
.
com
/
ajax
/
libs
/
select2
/
4.0
.
6
-
rc
.
0
/
js
/
select2
.
min
.
js
"></script>
<script src="
/
js
/
jquery
.
min
.
js
"></script>
<script>
$(document).ready(function(){
$("
input
").click(function(){
$(this).next().show();
$(this).next().hide();
});
});
</script>
<!-- Javascript for rendering disability form if checkbox is checked -->
<script type="
text
/
javascript
">
$(document).ready(function(){
$('#disabilitycheckbox').change(function(){
if($(this).is("
:
checked
"))
$('#disabilityformrow').fadeIn('slow');
...
...
@@ -600,20 +642,38 @@ $("input").click(function(){
$('#disabilityformrow').fadeOut('slow');
});
});
</script>
<!--Javascript for rendering tablinks-->
<script>
function tabswitch(item) {
var divs = document.getElementsByClassName("
tabcontainer
");
for (var i = 0; i < divs.length; i++) {
divs[i].style.display = 'none';
}
var myDiv = item.href;
var target = myDiv.split("
#");
document
.
getElementById
(
target
[
1
])
.
style
.
display
=
"block"
;
$('#tabLinks').on('click', '.list-group a', function (e) {
clickEvent = true;
$('.list-group li').removeClass('active');
$(this).parent().addClass('active');
localStorage.setItem('tab', $(e.currentTarget).attr('href'));
});
$(function() {
var slide = localStorage.getItem('tab');
console.log(slide);
if (slide) {
$("
a
[
href
=
'" + slide + "'
]
").click().tab('show');
}
});
function tabswitch(item) {
var divs = document.getElementsByClassName("
tabcontainer
");
for (var i = 0; i < divs.length; i++) {
divs[i].style.display = 'none';
}
var myDiv = item.href;
var target = myDiv.split("
#");
document
.
getElementById
(
target
[
1
])
.
style
.
display
=
"block"
;
}
</
script
>
<!--
Javascript
for
rendering
input
fields
on
set
conditions
-->
<
script
>
function
inputfieldVisibility
(
that
)
{
if
(
that
.
value
==
"national"
)
{
...
...
@@ -636,35 +696,11 @@ $("input").click(function(){
}
else
{
document
.
getElementById
(
"ethnicfield"
)
.
style
.
display
=
"none"
;
}
}
</
script
>
<
script
>
$
(
'.addressCheckbox'
)
.
change
(
function
()
{
var
country
=
document
.
getElementById
(
"country"
)
.
value
;
var
state
=
document
.
getElementById
(
"state"
)
.
value
;
var
city
=
document
.
getElementById
(
"city"
)
.
value
;
var
address
=
document
.
getElementById
(
"streetaddress"
)
.
value
;
var
code
=
document
.
getElementById
(
"postalcode"
)
.
value
;
if
(
$
(
this
)
.
is
(
':checked'
))
{
$
(
'input[name="postalCountry"]'
)
.
prop
(
'disabled'
,
true
)
.
val
(
country
);
$
(
'input[name="postalState"]'
)
.
prop
(
'disabled'
,
true
)
.
val
(
country
);
$
(
'input[name="postalCity"]'
)
.
prop
(
'disabled'
,
true
)
.
val
(
country
);
$
(
'input[name="postalStreetAddress"]'
)
.
prop
(
'disabled'
,
true
)
.
val
(
country
);
$
(
'input[name="postalNo"]'
)
.
prop
(
'disabled'
,
true
)
.
val
(
country
);
}
else
{
$
(
'input[name="postalCountry"]'
)
.
prop
(
'disabled'
,
false
)
.
val
(
''
);
$
(
'input[name="postalState"]'
)
.
prop
(
'disabled'
,
false
)
.
val
(
''
);
$
(
'input[name="postalCity"]'
)
.
prop
(
'disabled'
,
false
)
.
val
(
''
);
$
(
'input[name="postalStreetAddress"]'
)
.
prop
(
'disabled'
,
false
)
.
val
(
''
);
$
(
'input[name="postalNo"]'
)
.
prop
(
'disabled'
,
false
)
.
val
(
''
);
}
});
}
}
</
script
>
}
</
script
>
@
endsection
@
section
(
'footer-include'
)
<!--
fuelux
-->
...
...
resources/views/Employees/index.blade.php
View file @
ee38070a
@
extends
(
'Layout.Employeesmaster'
)
@
section
(
'title'
,
'Employees'
)
<
style
>
.
choose_file
{
position
:
relative
;
display
:
inline
-
block
;
font
:
normal
14
px
Myriad
Pro
,
Verdana
,
Geneva
,
sans
-
serif
;
color
:
#7f7f7f;
margin
-
top
:
2
px
;
background
:
white
}
#import_file{
-
webkit
-
appearance
:
none
;
position
:
absolute
;
top
:
0
;
left
:
0
;
opacity
:
0
;
width
:
100
%
;
height
:
100
%
;
}
</
style
>
@
section
(
'content'
)
<
section
id
=
"content"
>
<
section
class
="
scrollable
padder
">
<ul class="
breadcrumb
no
-
border
no
-
radius
b
-
b
b
-
light
pull
-
in
">
<li><a href="
.
"><i class="
fa
fa
-
home
"></i> Home</a></li>
<li><a href="
/
employees
">Employees</a></li>
<li class="
active
">Export/Import</li>
<li class="
active
">Employees</li>
</ul>
<h2 class="
text
-
center
">
Laravel Excel/CSV Import
</h2>
@if ( session('success') )
<div class="
alert
alert
-
success
alert
-
dismissible
" role="
alert
">
<button type="
button
" class="
close
" data-dismiss="
alert
" aria-label="
Close
">
...
...
@@ -43,24 +59,72 @@
</
div
>
</
div
>
@
endif
<
div
class
="
panel
-
body
">
<a href="
{{
route
(
'export'
)
}}
"><button class="
btn
btn
-
success
">Download Excel xls</button></a>
<!-- <a href="
{{
url
(
'export/xlsx'
)
}}
"><button class="
btn
btn
-
success
">Download Excel xlsx</button></a>
<a href="
{{
url
(
'export/csv'
)
}}
"><button class="
btn
btn
-
success
">Download CSV</button></a> -->
</div>
<div class="
col
-
sm
-
9
">
<form action="
{{
route
(
'import'
)
}}
" method="
POST
" enctype="
multipart
/
form
-
data
">
{{ csrf_field() }}
Choose your xls/csv File : <input type="
file
" name="
file
" class="
form
-
control
">
<input type="
submit
" class="
btn
btn
-
primary
btn
-
lg
" style="
margin
-
top
:
3
%
">
</form>
</div>
<
div
class
=
container
-
fluid
>
<
div
class
=
row
style
=
"float:right;position:relative"
>
<
div
class
=
col
-
md
-
3
style
=
width
:
49.5
%>
<
a
href
=
"{{ route('export') }}"
><
button
class
="
btn
btn
-
success
">Download Excel xls</button></a>
</div>
<div class=col-md-3 style=width:49.5%>
<form action="
{{
route
(
'import'
)
}}
" method="
POST
" enctype="
multipart
/
form
-
data
" id="
importForm
">
{{ csrf_field() }}
<input type="
file
" name="
file
" class="
form
-
control
" id="
import_file
" >
<input type="
submit
" class="
btn
btn
-
success
" value="
Import
File
" >
</form>
</div>
</div>
<div class=row>
<legend style="
padding
:
25
px
5
px
5
px
10
px
">Employees</legend>
<div class="
pull
-
right
" style="
margin
:
5
px
20
px
5
px
10
px
;
">
<a href="
/
employees
/
add
" class="
btn
btn
-
info
btn
-
sm
"><i class="
fa
fa
-
plus
"></i>Add Employee</a>
</div>
</div>
<div class=row style="
padding
:
0
px
5
px
5
px
10
px
">
<div class="
table
-
responsive
" style="
padding
:
0
px
5
px
5
px
10
px
">
<table class="
table
table
-
striped
m
-
b
-
sm
datagrid
">
<thead>
<tr>
<th>Action</th>
<th>First Name</th>
<th>Last Name</th>
<th>Email</th>
<th>Phone No.</th>
</tr>
</thead>
<tbody>
<tr>
<td>
<a href=""><span class="
btn
btn
-
default
btn
-
sm
"><i class="
fa
fa
-
eye
no
-
margin
"></i></span></a>
<a href=""><span class="
btn
btn
-
default
btn
-
sm
"><i class="
fa
fa
-
edit
no
-
margin
"></i></span></a>
</td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td colspan="
2
" class="
text
-
center
">Nothing to display</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</section>
<script>
var form = document.getElementById('importForm');
var input = document.getElementById('import_file');
var change_running = false;
input.addEventListener('change', function(){
if(!change_running){
setTimeout(function(){
change_running = true;
form.submit();
change_running = false;
}, 300);
}
});
</script>
@endsection
@section('footer-include')
<!-- fuelux -->
...
...
resources/views/Layout/Employeesmaster.blade.php
View file @
ee38070a
...
...
@@ -139,8 +139,8 @@
<span
class=
"caret"
></span>
</button>
<ul
class=
"dropdown-menu text-left"
>
<li><a
href=
"allowances"
>
Payroll
</a></li>
<li><a
href=
"employees"
>
Employees
</a></li>
<li><a
href=
"
/
allowances"
>
Payroll
</a></li>
<li><a
href=
"
/
employees"
>
Employees
</a></li>
</ul>
</div>
</div>
...
...
@@ -169,32 +169,44 @@
<i
class=
"fa fa-angle-up text-active"
></i>
</span>
<span>
Employees
</span>
</a>
</a>
<ul
class=
"nav lt"
>
<li
style=
"list-style:none"
>
<a
href=
"/employees"
>
<i
class=
"fa fa-angle-right"
></i>
<span>
Employees
</span>
</a>
</li>
</ul>
<ul
class=
"nav lt"
>
<li
class=
"active"
>
<a
href=
"#"
class=
"active"
>
<i
class=
"fa fa-angle-down text"
></i>
<i
class=
"fa fa-angle-up text-active"
></i>
<span>
Other
s
</span>
<span>
Employee Configuration
s
</span>
</a>
<ul
class=
"nav bg"
>
<ul
class=
"nav bg"
>
<li>
<a
href=
"
/employees
"
>
<a
href=
""
>
<i
class=
"fa fa-angle-right"
></i>
<span>
E
xport/Import Tool
</span>
<span>
E
mployment Status
</span>
</a>
</li>
<li>
<a
href=
""
>
<i
class=
"fa fa-angle-right"
></i>
<span>
Job Title
</span>
</a>
</li>
<li>
<a
href=
"/payfrequency"
>
<i
class=
"fa fa-angle-right"
></i>
<span>
Pay Frequency
</span>
</a>
</li>
</ul>
</li>
<li>
<a
href=
"/registration"
>
<i
class=
"fa fa-angle-right"
></i>
<span>
Employees
</span>
</a>
</li>
</ul>
</li>
</ul>
</nav>
<!-- / nav -->
</div>
...
...
resources/views/Layout/Payslipmaster.blade.php
View file @
ee38070a
...
...
@@ -139,8 +139,8 @@
<span
class=
"caret"
></span>
</button>
<ul
class=
"dropdown-menu text-left"
>
<li><a
href=
"allowances"
>
Payroll
</a></li>
<li><a
href=
"
{{route('employees')}}
"
>
Employees
</a></li>
<li><a
href=
"
/
allowances"
>
Payroll
</a></li>
<li><a
href=
"
/employees
"
>
Employees
</a></li>
</ul>
</div>
</div>
...
...
routes/web.php
View file @
ee38070a
...
...
@@ -58,20 +58,11 @@ Route::get('/payslip', 'PayslipController@index');
Route
::
post
(
'/payslip/view_payslip'
,
'PayslipController@view_payslip'
);
#EmployeesController
Route
::
get
(
'/employees'
,
'EmployeesController@index'
)
->
name
(
'employees'
)
;
Route
::
get
(
'/employees'
,
'EmployeesController@index'
);
Route
::
get
(
'/employees/export'
,
'EmployeesController@export'
)
->
name
(
'export'
);
Route
::
post
(
'/employees/import'
,
'EmployeesController@import'
)
->
name
(
'import'
);
Route
::
get
(
'/registration'
,
'EmployeesController@form'
)
->
name
(
'registration'
);
Route
::
post
(
'/registration'
,
'EmployeesController@store'
);
Route
::
group
([
'prefix'
=>
'laravel-crud-search-sort-ajax-modal-form'
],
function
()
{
Route
::
get
(
'/'
,
'Crud5Controller@index'
);
Route
::
match
([
'get'
,
'post'
],
'create'
,
'Crud5Controller@create'
);
Route
::
match
([
'get'
,
'put'
],
'update/{id}'
,
'Crud5Controller@update'
);
Route
::
delete
(
'delete/{id}'
,
'Crud5Controller@delete'
);
});
Route
::
get
(
'/employees/add'
,
'EmployeesController@form'
)
->
name
(
'/employees/add'
);
Route
::
get
(
'/payfrequency'
,
'PayfrequencyController@index'
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment