Commit 39d9172c by Novan Bagus Setiawan

tambahan ketika ditolak oleh dosen dapat memilih kembali. ditolak dosen status 2…

tambahan ketika ditolak oleh dosen dapat memilih kembali. ditolak dosen status 2 ditolak operator status 3
parent cdbdc681
...@@ -118,7 +118,7 @@ class KelompokController extends Controller ...@@ -118,7 +118,7 @@ class KelompokController extends Controller
$kelompok = $request->except('_token'); $kelompok = $request->except('_token');
$periode_aktif = Periode::where('status', 1)->first(); $periode_aktif = Periode::where('status', 1)->first();
$cekKel = Kelompok::where('created_user', auth()->user()->id)->where('periode_id', $periode_aktif->periode_id)->count(); $cekKel = Kelompok::where('created_user', auth()->user()->id)->where('periode_id', $periode_aktif->periode_id)->whereIn('status', [0,1])->count();
if($cekKel){ if($cekKel){
return redirect()->route('mahasiswa.kelompok.index')->with('danger', 'Kelompok sudah ada !'); return redirect()->route('mahasiswa.kelompok.index')->with('danger', 'Kelompok sudah ada !');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment