Commit 899a67f2 by novanbagus

Merge branch 'master' of http://git.unesa.ac.id/farendi/simpkm

parents 99df5f19 42df44c1
......@@ -73,6 +73,13 @@ class ProposalController extends Controller
->where('kirim', '1')
->first();
$cekproposal = Proposal::where('created_user', auth()->user()->id)
->where('periode_id', $periode->periode_id)
->first();
if($cekproposal) {
return redirect()->route('mahasiswa.proposal.index')->with('warning', 'Sudah ada Proposal yang di ajukan!');
}
if(is_null($kelompok)){
return redirect()->route('mahasiswa.proposal.index')->with('warning', 'Belum ada kelompok!');
......
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