benerin pemutihan
All checks were successful
Run Action to Production / run pull to sync on target message (push) Has been skipped
All checks were successful
Run Action to Production / run pull to sync on target message (push) Has been skipped
This commit is contained in:
parent
42d409e829
commit
7d3cd66416
|
@ -119,18 +119,19 @@ public function selesai($caseid, Request $request){
|
|||
return redirect()->route('layanan-pemutihan.index')->with('error','Gagal Memproses, Data tidak ditemukan');
|
||||
}
|
||||
$data->status_operator = Carbon::now();
|
||||
$data->keterangan_operator = 0;
|
||||
$data->save();
|
||||
return redirect()->route('layanan-pemutihan.index')->with('success','Data Berhasil Disimpan, status akan diupdate menjadi selesai');
|
||||
}
|
||||
|
||||
function tolak($caseid, Request $request){
|
||||
dd($request->all());
|
||||
$data = PengajuanPemutihan::where('caseid', $caseid)->first();
|
||||
if($data==null){
|
||||
return redirect()->route('layanan-pemutihan.index')->with('error','Gagal Memproses, Data tidak ditemukan');
|
||||
}
|
||||
$data->status_operator = 0;
|
||||
$data->status_operator = Carbon::now();
|
||||
$data->keterangan_operator = $request->keterangan_operator;
|
||||
$data->save();
|
||||
return redirect()->route('layanan-pemutihan.index')->with('success','Data Berhasil Disimpan, status akan diupdate menjadi selesai');
|
||||
return redirect()->route('layanan-pemutihan.index')->with('success','Data Berhasil Disimpan, status akan diupdate menjadi Ditolak');
|
||||
}
|
||||
}
|
||||
|
|
|
@ -71,7 +71,7 @@ public function selesai(Request $request){
|
|||
return redirect()->route('layanan-aduan.tambah')->with('error','Gagal Menyelesaikan Laporan aduan, silahkan coba klik selesaikan kembali');
|
||||
}
|
||||
|
||||
public function destroy(Request $request){
|
||||
public function tolak(Request $request){
|
||||
dd($request->all());
|
||||
}
|
||||
|
||||
|
|
|
@ -0,0 +1,28 @@
|
|||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
return new class extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*/
|
||||
public function up(): void
|
||||
{
|
||||
Schema::table('pengajuan_pemutihans', function (Blueprint $table) {
|
||||
$table->text('keterangan_operator')->nullable()->after('bukti_izin_dosen');
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::table('pengajuan_pemutihans', function (Blueprint $table) {
|
||||
$table->dropColumn('keterangan_operator');
|
||||
});
|
||||
}
|
||||
};
|
|
@ -105,8 +105,18 @@
|
|||
<h5><i class="icon fas fa-info"></i> Perhatian!</h5>
|
||||
<span >Alasan yang Dimasukkan Disini, Akan dikirimkan melalui Email Kepada Mahasiswa Terkait.</span>
|
||||
</div>
|
||||
<form action="{{ route('layanan-pemutihan.tolak') }}" method="post">
|
||||
<form action="{{ route('layanan-pemutihan.tolak',$datas->caseid) }}" method="post">
|
||||
@csrf
|
||||
<input type="hidden" name="id" value="{{$datas->id}}">
|
||||
<div class="row">
|
||||
<div class="col">
|
||||
<label for="keterangan_operator">Alasan:</label>
|
||||
<textarea name="keterangan_operator" class="form-control" id="keterangan_operator" cols="30" rows="10"
|
||||
placeholder="Masukkan Alasan Disini
|
||||
Masukkan Alasan Disini"></textarea>
|
||||
<input type="hidden" name="id" value="{{$datas->id}}">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="modal-footer justify-content-between">
|
||||
<button type="button" class="btn btn-default" data-dismiss="modal">Batal</button>
|
||||
|
|
|
@ -66,8 +66,35 @@
|
|||
<td>{{$item->dosen_pengampu}}</td>
|
||||
<td>{{$item->ruang_kelas}}</td>
|
||||
<td>{{$item->tanggal_kelas}}</td>
|
||||
<td>@if($item->status_operator === null)<span class="badge badge-warning">Diproses</span> @else <span class="badge badge-success">Selesai</span> @endif</td>
|
||||
<td>@if($item->status_operator === null)<span class="badge badge-warning">Diproses</span> @elseif($item->keterangan_operator != "0")<span class="badge badge-danger"><a data-toggle="modal" data-target="#alasan{{ $item->caseid }}">Ditolak</a></span> @else <span class="badge badge-success">Selesai</span> @endif</td>
|
||||
</tr>
|
||||
<div class="modal fade" id="alasan{{$item->caseid}}">
|
||||
<div class="modal-dialog modal-lg">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<h4 class="modal-title">Alasan Penolakan <b>{{ $item->caseid }}</b></h4>
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
||||
<span aria-hidden="true">×</span>
|
||||
</button>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<div class="row">
|
||||
<div class="col">
|
||||
<label for="keterangan_operator">Alasan:</label>
|
||||
<textarea disabled name="keterangan_operator" class="form-control" id="keterangan_operator" cols="30" rows="10"
|
||||
>{{$item->keterangan_operator}}</textarea>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="modal-footer justify-content-between">
|
||||
<button type="button" class="btn btn-default" data-dismiss="modal">Tutup</button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
<!-- /.modal-content -->
|
||||
</div>
|
||||
<!-- /.modal-dialog -->
|
||||
</div>
|
||||
@endforeach
|
||||
</tbody>
|
||||
<tfoot>
|
||||
|
|
|
@ -48,9 +48,8 @@
|
|||
Route::get('/logout', [SesiLoginController::class, 'logout'])->name('admin.logout');
|
||||
//layanan Pemutihan kelas
|
||||
Route::get('/layanan-pemutihan', [LayananPemutihanController::class, 'index'])->name('layanan-pemutihan.index');
|
||||
Route::DELETE('/layanan-pemutihan', [LayananPemutihanController::class, 'destroy'])->name('layanan-pemutihan.destroy');
|
||||
Route::POST('/layanan-pemutihan', [LayananPemutihanController::class, 'terima'])->name('layanan-pemutihan.terima');
|
||||
Route::POST('/pemutihan/tolak', [LayananPemutihanController::class, 'store'])->name('layanan-pemutihan.tolak');
|
||||
Route::POST('/layanan-pemutihan/tolak/{caseid}', [LayananPemutihanController::class, 'tolak'])->name('layanan-pemutihan.tolak');
|
||||
Route::POST('/layanan-pemutihan/selesai/{caseid}', [LayananPemutihanController::class, 'selesai'])->name('layanan-pemutihan.selesai');
|
||||
//layanan Pengajuan DPU DPA
|
||||
Route::get('/layanan-dpudpa', [LayananPengajuanDpuDpaController::class, 'index'])->name('layanan-dpudpa.index');
|
||||
|
@ -80,7 +79,7 @@
|
|||
Route::POST('/layanan-wisuda/resend/', [LayananPengajuanWisudaController::class, 'resendsubmit'])->name('layanan-wisuda.resendsubmit');
|
||||
//layanan Aduan
|
||||
Route::get('/layanan-aduan', [LayananPengajuanAduanController::class, 'index'])->name('layanan-aduan.index');
|
||||
Route::DELETE('/layanan-aduan', [LayananPengajuanAduanController::class, 'destroy'])->name('layanan-aduan.destroy');
|
||||
Route::POST('/layanan-aduan/tolak', [LayananPengajuanAduanController::class, 'tolak'])->name('layanan-aduan.tolak');
|
||||
Route::POST('/layanan-aduan', [LayananPengajuanAduanController::class, 'selesai'])->name('layanan-aduan.selesai');
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user