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
Expand all
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
This diff is collapsed.
Click to expand it.
resources/views/Employees/index.blade.php
View file @
ee38070a
@
extends
(
'Layout.Employeesmaster'
)
@
extends
(
'Layout.Employeesmaster'
)
@
section
(
'title'
,
'Employees'
)
@
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
(
'content'
)
<
section
id
=
"content"
>
<
section
id
=
"content"
>
<
section
class
="
scrollable
padder
">
<
section
class
="
scrollable
padder
">
<ul class="
breadcrumb
no
-
border
no
-
radius
b
-
b
b
-
light
pull
-
in
">
<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="
.
"><i class="
fa
fa
-
home
"></i> Home</a></li>
<li><a href="
/
employees
">Employees</a></li>
<li class="
active
">Employees</li>
<li class="
active
">Export/Import</li>
</ul>
</ul>
<h2 class="
text
-
center
">
Laravel Excel/CSV Import
</h2>
@if ( session('success') )
@if ( session('success') )
<div class="
alert
alert
-
success
alert
-
dismissible
" role="
alert
">
<div class="
alert
alert
-
success
alert
-
dismissible
" role="
alert
">
<button type="
button
" class="
close
" data-dismiss="
alert
" aria-label="
Close
">
<button type="
button
" class="
close
" data-dismiss="
alert
" aria-label="
Close
">
...
@@ -43,24 +59,72 @@
...
@@ -43,24 +59,72 @@
</
div
>
</
div
>
</
div
>
</
div
>
@
endif
@
endif
<
div
class
="
panel
-
body
">
<
div
class
=
container
-
fluid
>
<a href="
{{
route
(
'export'
)
}}
"><button class="
btn
btn
-
success
">Download Excel xls</button></a>
<
div
class
=
row
style
=
"float:right;position:relative"
>
<!-- <a href="
{{
url
(
'export/xlsx'
)
}}
"><button class="
btn
btn
-
success
">Download Excel xlsx</button></a>
<
div
class
=
col
-
md
-
3
style
=
width
:
49.5
%>
<a href="
{{
url
(
'export/csv'
)
}}
"><button class="
btn
btn
-
success
">Download CSV</button></a> -->
<
a
href
=
"{{ route('export') }}"
><
button
class
="
btn
btn
-
success
">Download Excel xls</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>
</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>
</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
@endsection
@section('footer-include')
@section('footer-include')
<!-- fuelux -->
<!-- fuelux -->
...
...
resources/views/Layout/Employeesmaster.blade.php
View file @
ee38070a
...
@@ -139,8 +139,8 @@
...
@@ -139,8 +139,8 @@
<span
class=
"caret"
></span>
<span
class=
"caret"
></span>
</button>
</button>
<ul
class=
"dropdown-menu text-left"
>
<ul
class=
"dropdown-menu text-left"
>
<li><a
href=
"allowances"
>
Payroll
</a></li>
<li><a
href=
"
/
allowances"
>
Payroll
</a></li>
<li><a
href=
"employees"
>
Employees
</a></li>
<li><a
href=
"
/
employees"
>
Employees
</a></li>
</ul>
</ul>
</div>
</div>
</div>
</div>
...
@@ -169,32 +169,44 @@
...
@@ -169,32 +169,44 @@
<i
class=
"fa fa-angle-up text-active"
></i>
<i
class=
"fa fa-angle-up text-active"
></i>
</span>
</span>
<span>
Employees
</span>
<span>
Employees
</span>
</a>
</a>
<ul
class=
"nav lt"
>
<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"
>
<li
class=
"active"
>
<a
href=
"#"
class=
"active"
>
<a
href=
"#"
class=
"active"
>
<i
class=
"fa fa-angle-down text"
></i>
<i
class=
"fa fa-angle-down text"
></i>
<i
class=
"fa fa-angle-up text-active"
></i>
<i
class=
"fa fa-angle-up text-active"
></i>
<span>
Other
s
</span>
<span>
Employee Configuration
s
</span>
</a>
</a>
<ul
class=
"nav bg"
>
<ul
class=
"nav bg"
>
<li>
<li>
<a
href=
"
/employees
"
>
<a
href=
""
>
<i
class=
"fa fa-angle-right"
></i>
<i
class=
"fa fa-angle-right"
></i>
<span>
E
xport/Import Tool
</span>
<span>
E
mployment Status
</span>
</a>
</a>
</li>
</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>
</ul>
</li>
<li>
<a
href=
"/registration"
>
<i
class=
"fa fa-angle-right"
></i>
<span>
Employees
</span>
</a>
</li>
</ul>
</ul>
</li>
</li>
</ul>
</nav>
</nav>
<!-- / nav -->
<!-- / nav -->
</div>
</div>
...
...
resources/views/Layout/Payslipmaster.blade.php
View file @
ee38070a
...
@@ -139,8 +139,8 @@
...
@@ -139,8 +139,8 @@
<span
class=
"caret"
></span>
<span
class=
"caret"
></span>
</button>
</button>
<ul
class=
"dropdown-menu text-left"
>
<ul
class=
"dropdown-menu text-left"
>
<li><a
href=
"allowances"
>
Payroll
</a></li>
<li><a
href=
"
/
allowances"
>
Payroll
</a></li>
<li><a
href=
"
{{route('employees')}}
"
>
Employees
</a></li>
<li><a
href=
"
/employees
"
>
Employees
</a></li>
</ul>
</ul>
</div>
</div>
</div>
</div>
...
...
routes/web.php
View file @
ee38070a
...
@@ -58,20 +58,11 @@ Route::get('/payslip', 'PayslipController@index');
...
@@ -58,20 +58,11 @@ Route::get('/payslip', 'PayslipController@index');
Route
::
post
(
'/payslip/view_payslip'
,
'PayslipController@view_payslip'
);
Route
::
post
(
'/payslip/view_payslip'
,
'PayslipController@view_payslip'
);
#EmployeesController
#EmployeesController
Route
::
get
(
'/employees'
,
'EmployeesController@index'
)
->
name
(
'employees'
)
;
Route
::
get
(
'/employees'
,
'EmployeesController@index'
);
Route
::
get
(
'/employees/export'
,
'EmployeesController@export'
)
->
name
(
'export'
);
Route
::
get
(
'/employees/export'
,
'EmployeesController@export'
)
->
name
(
'export'
);
Route
::
post
(
'/employees/import'
,
'EmployeesController@import'
)
->
name
(
'import'
);
Route
::
post
(
'/employees/import'
,
'EmployeesController@import'
)
->
name
(
'import'
);
Route
::
get
(
'/registration'
,
'EmployeesController@form'
)
->
name
(
'registration'
);
Route
::
get
(
'/employees/add'
,
'EmployeesController@form'
)
->
name
(
'/employees/add'
);
Route
::
post
(
'/registration'
,
'EmployeesController@store'
);
Route
::
get
(
'/payfrequency'
,
'PayfrequencyController@index'
);
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'
);
});
...
...
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