Commit 42df44c1 by Farendi Giotivano R.P

cek proposal periode

parent 69c84aa7
......@@ -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