Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
simpkm
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
simpkm
Commits
0134c52b
Commit
0134c52b
authored
Mar 06, 2026
by
Farendi Giotivano R.P
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
hapus anggota
parent
ea0f79b0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
48 additions
and
1 deletions
+48
-1
resources/views/backend/mahasiswa/kelompok/createkel.blade.php
+48
-1
No files found.
resources/views/backend/mahasiswa/kelompok/createkel.blade.php
View file @
0134c52b
...
...
@@ -72,6 +72,7 @@
<thead>
<tbody>
@foreach (
$kelompok->rAnggota
as
$item
)
@php
$token
= Str::random(30); @endphp
<tr>
<td>{{
$loop->iteration
}}</td>
<td>{{
$item->nama
}}</td>
...
...
@@ -85,7 +86,11 @@
Anggota {{
$loop->iteration
-1 }}
@endif
</td>
<td></td>
<td>
@if(
$item->status_ketua
!= 1)
<a onclick="
hapusanggota
(
'{{ encrypt($item->kelompok_detil_id.'
_
'.$item->kelompok_id) }}'
,
'row-{{ $token }}'
)
" class="
btn
btn
-
danger
btn
-
sm
">Hapus</a>
@endif
</td>
</tr>
@endforeach
</tbody>
...
...
@@ -128,5 +133,47 @@
$
(
"#addKelompok"
)
.
submit
();
});
function
hapusanggota
(
id
,
rowId
){
Swal
.
fire
({
title
:
'Apakah anda yakin untuk menghapus anggota Kelompok?'
,
text
:
"Anggota kelompok ini akan di hapus dari kelompok ini"
,
icon
:
'warning'
,
showCancelButton
:
true
,
confirmButtonText
:
'OK'
,
})
.
then
((
result
)
=>
{
if
(
result
.
isConfirmed
)
{
var
token
=
'{{ csrf_token() }}'
;
var
request
=
$
.
ajax
({
url
:
'{{ route('
mahasiswa
.
anggota
.
hapus
') }}'
,
type
:
'POST'
,
dataType
:
'html'
,
data
:
{
id
:
id
,
_token
:
token
},
success
:
function
(
data
){
Swal
.
fire
({
title
:
'Data Berhasil Di Hapus'
,
icon
:
'success'
,
showConfirmButton
:
false
,
timer
:
1500
})
.
then
(()
=>
{
location
.
reload
();
$
(
'#'
+
rowId
)
.
remove
();
});
$
(
'#'
+
rowId
)
.
remove
();
},
error
:
function
(
xhr
,
status
,
error
){
Swal
.
fire
({
position
:
'top-end'
,
icon
:
'error'
,
title
:
xhr
.
responseText
,
showConfirmButton
:
false
,
timer
:
3500
});
}
});
}
})
}
</
script
>
@
endsection
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