Commit b92469b1 by Farendi Giotivano R.P

ganti status

parent bb453243
...@@ -56,7 +56,7 @@ class ProposalController extends Controller ...@@ -56,7 +56,7 @@ class ProposalController extends Controller
$proposal = Proposal::query()->find(decrypt($proId['id'])); $proposal = Proposal::query()->find(decrypt($proId['id']));
$proposal->status = 2; $proposal->status = 1;
$proposal->date_approval = now(); $proposal->date_approval = now();
$proposal->save(); $proposal->save();
......
...@@ -70,7 +70,7 @@ class ProposalController extends Controller ...@@ -70,7 +70,7 @@ class ProposalController extends Controller
$kelompok = Kelompok::where('created_user', auth()->user()->id) $kelompok = Kelompok::where('created_user', auth()->user()->id)
->where('periode_id', $periode->periode_id) ->where('periode_id', $periode->periode_id)
->where('status', '1') ->where('status', '0')
->first(); ->first();
if(is_null($kelompok)){ if(is_null($kelompok)){
......
...@@ -83,7 +83,7 @@ ...@@ -83,7 +83,7 @@
Upload proposal pada : -<br> Upload proposal pada : -<br>
Disetujui proposal pada : -<br> Disetujui proposal pada : -<br>
@else @else
@if($item->status == '2') @if($item->status == '1')
<span class="badge bg-success">Sudah Disetujui Dosen</span> <br> <span class="badge bg-success">Sudah Disetujui Dosen</span> <br>
<strong> Keterangan : </strong> <br> <strong> Keterangan : </strong> <br>
Upload proposal pada : <h6 class="text-primary"> {{ $item->date_upload }} </h6> Upload proposal pada : <h6 class="text-primary"> {{ $item->date_upload }} </h6>
......
...@@ -78,10 +78,24 @@ ...@@ -78,10 +78,24 @@
<td>{{ $item->rJenis->nama }}</td> <td>{{ $item->rJenis->nama }}</td>
<td>{{ $item->judul }}</td> <td>{{ $item->judul }}</td>
<td> <td>
@if(is_null($item->status)) @if(is_null($item->upload_dokumen))
<span class="badge bg-danger">Menunggu Persetujuan Dosen</span> <span class="badge bg-danger">Belum Upload Proposal</span>
<strong> Keterangan : </strong> <br>
Upload proposal pada : -<br>
Disetujui proposal pada : -<br>
@else
@if($item->status == '0')
<span class="badge bg-warning">Menunggu Persetujuan Dosen</span>
<strong> Keterangan : </strong> <br>
Upload proposal pada : <h6 class="text-primary"> {{ $item->date_upload }} </h6>
Disetujui proposal pada : <h6 class="text-primary"> {{ $item->date_approval }} </h6>
@else @else
<span class="badge bg-success">Sudah Disetujui Dosen</span> <span class="badge bg-success">Sudah Disetujui Dosen</span>
<span class="badge bg-warning">Menunggu Persetujuan Dosen</span> <br>
<strong> Keterangan : </strong> <br>
Upload proposal pada : <h6 class="text-primary"> {{ $item->date_upload }} </h6>
Disetujui proposal pada :
@endif
@endif @endif
</td> </td>
<td> <td>
......
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