Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
simlitabmas
Overview
Overview
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
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Farendi Giotivano R.P
simlitabmas
Commits
fbb1fc17
Commit
fbb1fc17
authored
4 years ago
by
Muhammad Iskandar Java
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
hapus
parent
bede6672
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
1 deletions
+16
-1
app/Http/Controllers/User/KekayaanIntelController.php
+7
-0
resources/views/user/kekayaan/index.blade.php
+9
-1
No files found.
app/Http/Controllers/User/KekayaanIntelController.php
View file @
fbb1fc17
...
...
@@ -121,5 +121,12 @@ class KekayaanIntelController extends Controller
*/
public
function
destroy
(
$id
)
{
try
{
$kekayaan
=
KekayaanIntelektual
::
query
()
->
findOrFail
(
decrypt
(
$id
));
$kekayaan
->
delete
();
}
catch
(
Exception
$ex
)
{
}
return
redirect
()
->
route
(
'kekayaanintelek.index'
);
}
}
This diff is collapsed.
Click to expand it.
resources/views/user/kekayaan/index.blade.php
View file @
fbb1fc17
...
...
@@ -41,7 +41,12 @@
{{
$item->nidn
}}
</td>
<td>
<a class="
btn
btn
-
warning
" href="
{{
route
(
'kekayaanintelek.edit'
,
[
'kekayaanintelek'
=>
encrypt
(
$item
->
id
)])
}}
"> Edit</a>
<a class="
btn
btn
-
warning
" href="
{{
route
(
'kekayaanintelek.edit'
,
[
'kekayaanintelek'
=>
encrypt
(
$item
->
id
)])
}}
">Hapus</a>
<button class="
btn
btn
-
danger
" type="
button
" onclick="
hapus
(
'form_kekayaan_{{ $loop->iteration }}'
)
">Hapus</button>
<form id="
form_kekayaan_
{{
$loop
->
iteration
}}
" action="
{{
route
(
'kekayaanintelek.destroy'
,
[
'kekayaanintelek'
=>
encrypt
(
$item
->
id
)])
}}
" method="
POST
">
{{ method_field('DELETE') }}
@csrf
</form>
</td>
</tr>
@endforeach
...
...
@@ -70,6 +75,9 @@
"
lengthMenu
": [10, 20, 50],
"
pageLength
": 10
});
function hapus(id){
$('#'+id).submit();
}
</script>
@endsection
This diff is collapsed.
Click to expand it.
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