update pokok e

This commit is contained in:
Fiky Baharudin 2024-08-30 09:27:44 +07:00
parent d9069d0f69
commit 215f6ae184
18 changed files with 602 additions and 14 deletions

View File

@ -0,0 +1,78 @@
<?php
namespace App\Http\Controllers;
use App\Models\PengajuanAduan;
use App\Models\User;
use Illuminate\Support\Facades\Storage;
use Illuminate\Http\Request;
class LayananPengajuanAduanController extends Controller
{
public function index(){
$data = PengajuanAduan::get();
return view('layanan-aduan.index',['title' => 'Pengajuan Aduan | Admin Dashboard','data' => $data]);
}
public function tambah(){
return view('layanan-aduan.tambah',['title' => 'Pengajuan Aduan']);
}
public function store(Request $request){
$request->validate([
'nama'=>'required',
'nomor_telepon'=>'required|numeric',
'subjek'=>'required',
'lokasi'=>'required',
'kategori'=>'required',
'deskripsi_laporan'=>'required',
'bukti_laporan'=>'required|mimes:pdf,png,jpg|max:4096',
],[
'nomor_telepon.numeric' => 'nomor telepon tidak valid, harap menggunakan format 089xxxxx',
'bukti_laporan.max' => 'Ukuran File Anda lebih dari 4Mb, Cek Ulang File anda',
'bukti_laporan.mimes' => 'Format file tidak valid, pastikan file berupa gambar(JPG/PNG) atau pdf',
]);
//get lastid + 1
$countcaseid = PengajuanAduan::max('id')+1;
$caseid = "A".date_format(date_create(),"Y").$countcaseid;
$data_aduan['caseid'] = $caseid;
$data_aduan['nama'] = $request->nama;
$data_aduan['nomor_telepon'] = $request->nomor_telepon;
$data_aduan['subjek'] = $request->subjek;
$data_aduan['lokasi'] = $request->lokasi;
$data_aduan['kategori'] = $request->kategori;
$data_aduan['deskripsi_laporan'] = $request->deskripsi_laporan;
$bukti_laporan = $request->file('bukti_laporan');
$bukti_laporan_name = $caseid.'_'.str_replace(' ', '_',$bukti_laporan->getClientOriginalName());
$path = 'aduan/'.$bukti_laporan_name;
if(Storage::disk('public')->put($path, file_get_contents($bukti_laporan))){
$data_aduan['bukti_laporan'] = $bukti_laporan_name;
PengajuanAduan::create($data_aduan);
return redirect()->route('layanan-aduan.tambah')->with('success','Sukses Tambah Data, Silahkan Monitoring Pengajuan Anda melalui menu monitoring');
}
return redirect()->route('layanan-aduan.tambah')->with('error','Gagal Tambah data, Cek kembali data yang anda masukkan');
}
public function selesai(Request $request){
$request->validate([
'keterangan_selesai'=>'required',
],[
'keterangan_selesai.required' => 'Alasan Tidak boleh kosong, harap masukkan keterangan penyelesaian',
]);
$data_aduan = PengajuanAduan::where('id',$request->id)->first();
$data_aduan['keterangan_selesai'] = $request->keterangan_selesai;
if($data_aduan->save()){
return redirect()->route('layanan-aduan.index')->with('success','Sukses Menyelesaikan Laporan Aduan');
}
return redirect()->route('layanan-aduan.tambah')->with('error','Gagal Menyelesaikan Laporan aduan, silahkan coba klik selesaikan kembali');
}
public function destroy(Request $request){
dd($request->all());
}
}

View File

@ -0,0 +1,25 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class PengajuanAduan extends Model
{
use HasFactory;
protected $fillable = [
'caseid',
'nama',
'nomor_telepon',
'subjek',
'lokasi',
'kategori',
'bukti_laporan',
'deskripsi_laporan',
];
protected $attributes = [
'status' => 'Diproses',
];
}

View File

@ -15,5 +15,6 @@ class PengajuanWisuda extends Model
'bukti_spp', 'bukti_spp',
'bukti_sertifikat_kkn', 'bukti_sertifikat_kkn',
'bukti_toefl', 'bukti_toefl',
'bukti_bebas_lab',
]; ];
} }

View File

@ -24,7 +24,7 @@ public function down(): void
{ {
Schema::table('users', function (Blueprint $table) { Schema::table('users', function (Blueprint $table) {
// $table->drop('user_roles_id'); // $table->drop('user_roles_id');
$table->drop('about'); $table->dropColumn('about');
}); });
} }
}; };

View File

@ -24,7 +24,7 @@ public function down(): void
{ {
Schema::table('pengajuan_pemutihans', function (Blueprint $table) { Schema::table('pengajuan_pemutihans', function (Blueprint $table) {
// $table->drop('user_roles_id'); // $table->drop('user_roles_id');
$table->drop('status_operator'); $table->dropColumn('status_operator');
}); });
} }
}; };

View File

@ -0,0 +1,36 @@
<?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::create('pengajuan_aduans', function (Blueprint $table) {
$table->id();
$table->string('caseid');
$table->string('status');
$table->string('nama');
$table->string('nomor_telepon');
$table->string('subjek');
$table->string('lokasi');
$table->string('kategori');
$table->string('bukti_laporan');
$table->text('deskripsi_laporan');
$table->timestamps();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('pengajuan_aduans');
}
};

View File

@ -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_wisudas', function (Blueprint $table) {
$table->string('bukti_bebas_lab')->after('bukti_toefl');
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::table('pengajuan_wisudas', function (Blueprint $table) {
$table->dropColumn('bukti_bebas_lab');
});
}
};

View File

@ -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_aduans', function (Blueprint $table) {
$table->string('keterangan_selesai')->nullable()->after('deskripsi_laporan');
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::table('pengajuan_aduans', function (Blueprint $table) {
$table->dropColumn('keterangan_selesai');
});
}
};

View File

@ -0,0 +1,262 @@
<!-- Extend Layout -->
@extends('layout.app')
<!-- Add Custom CSS -->
@push('css')
<link rel="stylesheet" href="{{asset('/')}}plugins/datatables-bs4/css/dataTables.bootstrap4.min.css">
<link rel="stylesheet" href="{{asset('/')}}plugins/datatables-responsive/css/responsive.bootstrap4.min.css">
<link rel="stylesheet" href="{{asset('/')}}plugins/datatables-buttons/css/buttons.bootstrap4.min.css">
@endpush
<!-- Add Content Here -->
@section('content')
<!-- Include Sidebar -->
@include('layout.navbars.sidebar')
<div class="content-wrapper">
<!-- Main content -->
<section class="content-header">
<div class="container-fluid">
<div class="row mb-2">
<div class="col-sm-6">
<h1>Layanan Aduan</h1>
</div>
<div class="col-sm-6">
<ol class="breadcrumb float-sm-right">
<li class="breadcrumb-item"><a href="{{ route('admin.dashboard') }}">Admin</a></li>
<li class="breadcrumb-item active">Layanan Aduan</li>
</ol>
</div>
</div>
</div><!-- /.container-fluid -->
</section>
<section class="content">
<div class="card">
<!-- /.card-header -->
<div class="card-body">
@if ($errors->any())
<div class="alert alert-danger">
<ul>
@foreach ($errors->all() as $error )
<li>{{ $error }}</li>
@endforeach
</ul>
</div>
@endif
@if(session('success'))
<div class="alert alert-success">
<ul>
<li>{{ session('success') }}</li>
</ul>
</div>
@endif
<table id="example1" class="table table-bordered table-striped">
<thead>
<tr>
<th>CaseID</th>
<th>Nama Pelapor</th>
<th>Nomor Pelapor</th>
<th>Kategori</th>
<th>Subjek</th>
<th>Action</th>
</tr>
</thead>
<tbody>
@foreach ($data as $datas)
<tr>
<td>{{ $datas->caseid }}</td>
<td>{{ $datas->nama }} </td>
<td>{{ $datas->nomor_telepon }} </td>
<td>{{ $datas->kategori }}</td>
<td>{{ $datas->subjek }}</td>
<td class="text-center ">
<button class="btn btn-primary" data-toggle="modal" data-target="#A{{ $datas->id }}" >Details</button>
@if($datas->keterangan_selesai==NULL)
| <button class="btn btn-success" data-toggle="modal" data-target="#S{{ $datas->id }}" >Selesai</button> |
<button class="btn btn-danger" data-toggle="modal" data-target="#D{{ $datas->id }}" >Tolak</button>
@endif
</td>
</tr>
<!-- Modal Detail dan Terima -->
<div class="modal fade" id="A{{$datas->id}}">
<div class="modal-dialog modal-lg">
<div class="modal-content">
<div class="modal-header">
<h4 class="modal-title">Details Data <b>{{ $datas->caseid }}</b></h4>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">&times;</span>
</button>
</div>
<div class="modal-body">
<div class="row">
<div class="col">
<label for="subjek">Subjek Laporan:</label>
<input type="text" id="subjek" class="form-control form-control-border" readonly value="{{ $datas->subjek }}">
<label for="kategori">Kategori:</label>
<input type="text" id="kategori" class="form-control form-control-border" readonly value="{{ $datas->kategori }}">
<label for="nama">Nama Pelapor:</label>
<input type="text" id="nama" class="form-control form-control-border" readonly value="{{ $datas->nama }}">
<label for="nomor_telepon">Nomor Telepon Pelapor:</label>
<input type="text" id="nomor_telepon" class="form-control form-control-border" readonly value="{{ $datas->nomor_telepon }}">
<label for="lokasi">Lokasi Permasalahan:</label>
<input type="text" id="lokasi" class="form-control form-control-border" readonly value="{{ $datas->lokasi }}">
<label for="deskripsi_laporan">Deskripsi Permasalahan:</label>
<textarea name="deskripsi_laporan" id="deskripsi_laporan" class="form-control form-control-border" readonly>{{ $datas->deskripsi_laporan }}</textarea>
</div>
</div>
<div class="row mt-3">
<div class="col">
<label for="file_transkrip">Lihat Lampiran<br>
<a href="{{asset('storage')}}/aduan/{{ $datas->bukti_laporan }}" target="_blank" class="btn btn-primary">Klik Disini</a>
</div>
</div>
</div>
<div class="modal-footer justify-content-between">
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
<span>{{$datas->caseid}}</span>
@if($datas->ttd_operator=="-")
<form action="{{ route('layanan-dpudpa.terima')}}" method="post">
@csrf
<input type="hidden" name="id" value="{{$datas->id}}">
<button type="submit" class="btn btn-success">Terima</button>
</form>
@endif
</form>
</div>
</div>
<!-- /.modal-content -->
</div>
<!-- /.modal-dialog -->
</div>
<!-- /.modal-Selesai -->
<div class="modal fade" id="S{{$datas->id}}">
<div class="modal-dialog modal-lg">
<div class="modal-content">
<div class="modal-header">
<h4 class="modal-title">Apa Anda Yakin Menyelesaikan Laporan : <b>{{ $datas->caseid }}</b></h4>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">&times;</span>
</button>
</div>
<div class="modal-body">
<div class="alert alert-info alert-dismissible">
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
<h5><i class="icon fas fa-info"></i> Perhatian!</h5>
<span >Alasan yang Dimasukkan Disini, Dimasukkan Sebagai Lampiran.</span>
</div>
<form action="{{ route('layanan-aduan.selesai') }}" method="post">
@csrf
<div class="row">
<div class="col">
<label for="keterangan_selesai">Keterangan Penyelesaian:</label>
<textarea name="keterangan_selesai" class="form-control" id="alasan" cols="30" rows="10"
placeholder="Masukkan Keterangan Penyelesaian Disini
Masukkan Penyelesaian 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>
<button type="submit" class="btn btn-success">Kirim</button>
</form>
</div>
</div>
<!-- /.modal-content -->
</div>
<!-- /.modal-dialog -->
</div>
<!-- /.modal-Delete -->
<div class="modal fade" id="D{{$datas->id}}">
<div class="modal-dialog modal-lg">
<div class="modal-content">
<div class="modal-header">
<h4 class="modal-title">Apa Anda Yakin Ingin Menghapus Data : <b>{{ $datas->caseid }}</b></h4>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">&times;</span>
</button>
</div>
<div class="modal-body">
<div class="alert alert-info alert-dismissible">
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
<h5><i class="icon fas fa-info"></i> Perhatian!</h5>
<span>Alasan yang Dimasukkan Disini, Dimasukkan Sebagai Lampiran.</span>
</div>
<form action="{{ route('layanan-aduan.destroy') }}" method="post">
@csrf @method('DELETE')
<div class="row">
<div class="col">
<label for="alasan">Alasan:</label>
<textarea name="alasan" class="form-control" id="alasan" 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>
<button type="submit" class="btn btn-danger">Kirim</button>
</form>
</div>
</div>
<!-- /.modal-content -->
</div>
<!-- /.modal-dialog -->
</div>
@endforeach
</tbody>
<tfoot>
<tr>
<th>CaseID</th>
<th>NIM</th>
<th>Nama Mahasiswa</th>
<th>DPU</th>
<th>DPA</th>
<th>Action</th>
</tr>
</tfoot>
</table>
</div>
<!-- /.card-body -->
</div>
<!-- /.card -->
</section>
<!-- /.content -->
</div>
@endsection
<!-- Add Custom JS -->
@push('js')
<!-- DataTables & Plugins -->
<script src="{{asset('/')}}plugins/datatables/jquery.dataTables.min.js"></script>
<script src="{{asset('/')}}plugins/datatables-bs4/js/dataTables.bootstrap4.min.js"></script>
<script src="{{asset('/')}}plugins/datatables-responsive/js/dataTables.responsive.min.js"></script>
<script src="{{asset('/')}}plugins/datatables-responsive/js/responsive.bootstrap4.min.js"></script>
<script src="{{asset('/')}}plugins/datatables-buttons/js/dataTables.buttons.min.js"></script>
<script src="{{asset('/')}}plugins/datatables-buttons/js/buttons.bootstrap4.min.js"></script>
<script src="{{asset('/')}}plugins/jszip/jszip.min.js"></script>
<script src="{{asset('/')}}plugins/pdfmake/pdfmake.min.js"></script>
<script src="{{asset('/')}}plugins/pdfmake/vfs_fonts.js"></script>
<script src="{{asset('/')}}plugins/datatables-buttons/js/buttons.html5.min.js"></script>
<script src="{{asset('/')}}plugins/datatables-buttons/js/buttons.print.min.js"></script>
<script src="{{asset('/')}}plugins/datatables-buttons/js/buttons.colVis.min.js"></script>
<script>
$(function () {
$("#example1").DataTable({
"responsive": true, "lengthChange": false, "autoWidth": false,
"buttons": [{
// New button configuration
text: 'Tambah Data', // Replace with your desired button text
action: function ( e, dt, node, config ) {
// Perform your custom action here, e.g., open a new tab with the external link
window.open("{{ route('layanan-aduan.tambah')}}", '_blank');
}
},"csv", "excel", "pdf", "print", "colvis"]
}).buttons().container().appendTo('#example1_wrapper .col-md-6:eq(0)');
});
</script>
@endpush

View File

@ -0,0 +1,81 @@
<!-- Extend Layout -->
@extends('layout.app_guest',['title' => $title])
@section('content')
<!-- Main content -->
<section class="content">
<div class="container-fluid">
<!-- SELECT2 EXAMPLE -->
<div class="card card-default">
<div class="card-header">
<h3 class="card-title">{{ $title }} </h3>
</div>
<!-- /.card-header -->
<div class="card-body">
@if($errors->any())
<div class="alert alert-danger">
<ul>
@foreach ($errors->all() as $error )
<li>{{ $error }}</li>
@endforeach
</ul>
</div>
@endif
@if(session('success'))
<div class="alert alert-success">
<ul>
<li>{{ session('success') }}</li>
</ul>
</div>
@endif
@if(session('error'))
<div class="alert alert-danger">
<ul>
<li>{{ session('error') }}</li>
</ul>
</div>
@endif
<form action="{{ route('layanan-aduan.store') }}" method="post" enctype="multipart/form-data">
@csrf
<div class="row">
<div class="col">
<label for="nama">Nama</label>
<input type="text" name="nama" id="nama" class="form-control" placeholder="Masukkan Nama Pelapor" value="{{old('nama')}}" required>
<label for="nomor_telepon">Nomor telepon yang dapat dihubungi</label>
<input type="text" name="nomor_telepon" id="nomor_telepon" class="form-control" placeholder="Masukkan Nomor Telepon, Contoh 085xxxxx" value="{{old('nomor_telepon')}}" required>
<label for="subjek">Subjek Laporan</label>
<input type="text" name="subjek" id="subjek" class="form-control" placeholder="Masukkan Subjek Laporan" value="{{old('subjek')}}" required>
<label for="lokasi">Lokasi permasalahan</label>
<input type="text" name="lokasi" id="lokasi" class="form-control" placeholder="Masukkan Lokasi Laporan" value="{{old('lokasi')}}" required>
<label for="kategori">Kategori</label>
<select name="kategori" id="kategori" class="form-control select2">
<option value="" disabled selected>Pilih Disini</option>
<option value="Umum / Perlengkapan">Umum / Perlengkapan</option>
<option value="Keuangan">Keuangan</option>
<option value="Kemahasiswaan">Kemahasiswaan</option>
<option value="Kepegawaian">Kepegawaian</option>
</select>
<label for="bukti_laporan">Masukkan Bukti laporan</label>
<input type="file" name="bukti_laporan" id="bukti_laporan" class="form-control" value="{{old('bukti_laporan')}}" required>
<label for="deskripsi_laporan">Deskripsi laporan</label>
<textarea name="deskripsi_laporan" id="deskripsi_laporan" class="form-control"
placeholder="Masukkan Deskripsi Laporan disini"></textarea>
</div>
<!-- /.col -->
</div>
<!-- /.row -->
<div class="row">
<div class="col py-3">
<button type="submit" class="btn btn-primary">Submit</button>
</div>
</div>
</form>
</div>
</div>
<!-- /.card -->
</div>
<!-- /.container-fluid -->
</section>
<!-- /.content -->
@endsection

View File

@ -65,6 +65,7 @@
<thead> <thead>
<tr> <tr>
<th>CaseID</th> <th>CaseID</th>
<th>Tanggal Pengajuan</th>
<th>NIM</th> <th>NIM</th>
<th>Nama Mahasiswa</th> <th>Nama Mahasiswa</th>
<th>DPU</th> <th>DPU</th>
@ -76,6 +77,7 @@
@foreach ($data as $datas) @foreach ($data as $datas)
<tr> <tr>
<td>{{ $datas->caseid }}</td> <td>{{ $datas->caseid }}</td>
<td>{{ \Carbon\Carbon::parse($datas->created_at)->format('d-m-Y') }}</td>
<td>{{ $datas->nim }} </td> <td>{{ $datas->nim }} </td>
<td>{{ $datas->nama }} </td> <td>{{ $datas->nama }} </td>
<td>{{ $datas->dpu_nama_gelar }}</td> <td>{{ $datas->dpu_nama_gelar }}</td>
@ -214,6 +216,7 @@
<tfoot> <tfoot>
<tr> <tr>
<th>CaseID</th> <th>CaseID</th>
<th>Tanggal Pengajuan</th>
<th>NIM</th> <th>NIM</th>
<th>Nama Mahasiswa</th> <th>Nama Mahasiswa</th>
<th>DPU</th> <th>DPU</th>
@ -251,6 +254,7 @@
$(function () { $(function () {
$("#example1").DataTable({ $("#example1").DataTable({
"responsive": true, "lengthChange": false, "autoWidth": false, "responsive": true, "lengthChange": false, "autoWidth": false,
"order":[[1,'asc']],
"buttons": [{ "buttons": [{
// New button configuration // New button configuration
text: 'Tambah Data', // Replace with your desired button text text: 'Tambah Data', // Replace with your desired button text

View File

@ -59,7 +59,7 @@
</select> </select>
<label for="program_studi">Pilih Program Studi :</label> <label for="program_studi">Pilih Program Studi :</label>
<select class="form-control select2" style="width: 100%;" id="program_studi" name="program_studi" required> <select class="form-control select2" style="width: 100%;" id="program_studi" name="program_studi" required>
<option selected>Pilih Program Studi: </option> <option value="" selected disabled>Pilih Program Studi: </option>
<option value="S1 Farmasi" {{ old('program_studi') === "S1 Farmasi" ? 'selected' : '' }}>S1 Farmasi</option> <option value="S1 Farmasi" {{ old('program_studi') === "S1 Farmasi" ? 'selected' : '' }}>S1 Farmasi</option>
<option value="S2 Farmasi" {{ old('program_studi') === "S2 Farmasi" ? 'selected' : '' }}>S2 Farmasi</option> <option value="S2 Farmasi" {{ old('program_studi') === "S2 Farmasi" ? 'selected' : '' }}>S2 Farmasi</option>
<option value="PSPPA" {{ old('program_studi') === "PSPPA" ? 'selected' : '' }}>PSPPA</option> <option value="PSPPA" {{ old('program_studi') === "PSPPA" ? 'selected' : '' }}>PSPPA</option>

View File

@ -65,6 +65,7 @@
<thead> <thead>
<tr> <tr>
<th>CaseID</th> <th>CaseID</th>
<th>Tanggal Pengajuan</th>
<th>NIM</th> <th>NIM</th>
<th>Nama</th> <th>Nama</th>
<th>DPU</th> <th>DPU</th>
@ -76,6 +77,7 @@
@foreach ($data as $datas) @foreach ($data as $datas)
<tr> <tr>
<td>{{ $datas->caseid }}</td> <td>{{ $datas->caseid }}</td>
<td>{{ \Carbon\Carbon::parse($datas->created_at)->format('d-m-Y') }}</td>
<td>{{ $datas->nim }} </td> <td>{{ $datas->nim }} </td>
<td>{{ $datas->nama }} </td> <td>{{ $datas->nama }} </td>
<td>{{ $datas->dpu_nama_gelar }}</td> <td>{{ $datas->dpu_nama_gelar }}</td>
@ -220,6 +222,7 @@
<tfoot> <tfoot>
<tr> <tr>
<th>CaseID</th> <th>CaseID</th>
<th>Tanggal Pengajuan</th>
<th>NIM</th> <th>NIM</th>
<th>Nama</th> <th>Nama</th>
<th>DPU</th> <th>DPU</th>
@ -257,6 +260,7 @@
$(function () { $(function () {
$("#example1").DataTable({ $("#example1").DataTable({
"responsive": true, "lengthChange": false, "autoWidth": false, "responsive": true, "lengthChange": false, "autoWidth": false,
"order":[[1,'asc']],
"buttons": [{ "buttons": [{
// New button configuration // New button configuration
text: 'Tambah Data', // Replace with your desired button text text: 'Tambah Data', // Replace with your desired button text

View File

@ -65,6 +65,7 @@
<thead> <thead>
<tr> <tr>
<th>CaseID</th> <th>CaseID</th>
<th>Tanggal Pengajuan</th>
<th>NIM</th> <th>NIM</th>
<th>Nama</th> <th>Nama</th>
<th>DPU</th> <th>DPU</th>
@ -75,6 +76,7 @@
@foreach ($data as $datas) @foreach ($data as $datas)
<tr> <tr>
<td>{{ $datas->caseid }}</td> <td>{{ $datas->caseid }}</td>
<td>{{ \Carbon\Carbon::parse($datas->created_at)->format('d-m-Y') }}</td>
<td>{{ $datas->nim }} </td> <td>{{ $datas->nim }} </td>
<td>{{ $datas->nama }} </td> <td>{{ $datas->nama }} </td>
<td>{{ $datas->dpu_nama_gelar }}</td> <td>{{ $datas->dpu_nama_gelar }}</td>
@ -222,6 +224,7 @@
<tfoot> <tfoot>
<tr> <tr>
<th>CaseID</th> <th>CaseID</th>
<th>Tanggal Pengajuan</th>
<th>NIM</th> <th>NIM</th>
<th>DPU</th> <th>DPU</th>
<th>DPA</th> <th>DPA</th>
@ -258,6 +261,7 @@
$(function () { $(function () {
$("#example1").DataTable({ $("#example1").DataTable({
"responsive": true, "lengthChange": false, "autoWidth": false, "responsive": true, "lengthChange": false, "autoWidth": false,
"order": [[1, 'asc']],
"buttons": [{ "buttons": [{
// New button configuration // New button configuration
text: 'Tambah Data', // Replace with your desired button text text: 'Tambah Data', // Replace with your desired button text

View File

@ -65,6 +65,7 @@
<thead> <thead>
<tr> <tr>
<th>CaseID</th> <th>CaseID</th>
<th>Tanggal Pengajuan</th>
<th>NIM</th> <th>NIM</th>
<th>Nama</th> <th>Nama</th>
<th>DPU</th> <th>DPU</th>
@ -75,6 +76,7 @@
@foreach ($data as $datas) @foreach ($data as $datas)
<tr> <tr>
<td>{{ $datas->caseid }}</td> <td>{{ $datas->caseid }}</td>
<td>{{ \Carbon\Carbon::parse($datas->created_at)->format('d-m-Y') }}</td>
<td>{{ $datas->nim }} </td> <td>{{ $datas->nim }} </td>
<td>{{ $datas->nama }} </td> <td>{{ $datas->nama }} </td>
<td>{{ $datas->dpu_nama_gelar }}</td> <td>{{ $datas->dpu_nama_gelar }}</td>
@ -222,6 +224,7 @@
<tfoot> <tfoot>
<tr> <tr>
<th>CaseID</th> <th>CaseID</th>
<th>Tanggal Pengajuan</th>
<th>NIM</th> <th>NIM</th>
<th>DPU</th> <th>DPU</th>
<th>DPA</th> <th>DPA</th>
@ -258,6 +261,7 @@
$(function () { $(function () {
$("#example1").DataTable({ $("#example1").DataTable({
"responsive": true, "lengthChange": false, "autoWidth": false, "responsive": true, "lengthChange": false, "autoWidth": false,
"order": [[1, 'asc']],
"buttons": [{ "buttons": [{
// New button configuration // New button configuration
text: 'Tambah Data', // Replace with your desired button text text: 'Tambah Data', // Replace with your desired button text

View File

@ -97,16 +97,27 @@
</p> </p>
</a> </a>
</li> </li>
<li class="nav-header">LAYANAN WISUDA</li> <li class="nav-header text-bold mt-2">LAYANAN WISUDA</li>
<li class="nav-item"> <li class="nav-item">
<a href="{{ route('layanan-wisuda.tambah') }}" class="nav-link {{ Request::is('layanan-wisuda/tambah') ? 'active' : '' }}"> <a href="{{ route('layanan-wisuda.tambah') }}" class="nav-link {{ Request::is('layanan-wisuda/tambah') ? 'active' : '' }}">
<i class="nav-icon fas fa-user-graduate"></i> <i class="nav-icon fas fa-user-graduate"></i>
<p> <p>
Pengajuan Syarat Wisuda Pengajuan Syarat Wisuda
</p> </p>
</a> </a>
</li>
</li> </li>
<li class="nav-header">Monitoring</li> <li class="nav-header text-bold mt-2">LAYANAN UMUM / PERLENGKAPAN</li>
<li class="nav-item">
<a href="{{ route('layanan-aduan.tambah') }}" class="nav-link {{ Request::is('layanan-aduan/tambah') ? 'active' : '' }}">
<i class="nav-icon fas fa-warehouse"></i>
<p>
Pengajuan Aduan
</p>
</a>
</li>
</li>
<li class="nav-header text-bold mt-2">Monitoring</li>
<li class="nav-item"> <li class="nav-item">
<a href="{{ route('monitoring.index') }}" class="nav-link {{ Request::is('monitoring') ? 'active' : '' }}"> <a href="{{ route('monitoring.index') }}" class="nav-link {{ Request::is('monitoring') ? 'active' : '' }}">
<i class="nav-icon fas fa-search"></i> <i class="nav-icon fas fa-search"></i>

View File

@ -44,6 +44,7 @@
</p> </p>
</a> </a>
</li> </li>
@hasanyrole('Super Administrator|Operator Akademik')
<li class="nav-header text-bold">LAYANAN AKADEMIK</li> <li class="nav-header text-bold">LAYANAN AKADEMIK</li>
<li class="nav-item"> <li class="nav-item">
<a href="{{ route('layanan-pemutihan.index') }}" class="nav-link {{ Request::is('admin/layanan-pemutihan') ? 'active' : '' }}"> <a href="{{ route('layanan-pemutihan.index') }}" class="nav-link {{ Request::is('admin/layanan-pemutihan') ? 'active' : '' }}">
@ -102,6 +103,19 @@
</p> </p>
</a> </a>
</li> </li>
@endhasanyrole
@hasanyrole('Super Administrator|Operator Umum Perlengkapan')
<li class="nav-header text-bold mt-2">LAYANAN UMUM / Perlengkapan</li>
<li class="nav-item">
<a href="{{ route('layanan-aduan.index') }}" class="nav-link {{ Request::is('admin/layanan-aduan') ? 'active' : '' }}">
<i class="nav-icon fas fa-warehouse"></i>
<p>
Aduan Umum & Perlengkapan
</p>
</a>
</li>
@endhasanyrole
<li class="nav-header text-bold mt-2">ADMINISTRASI</li> <li class="nav-header text-bold mt-2">ADMINISTRASI</li>
<li class="nav-item"> <li class="nav-item">
<a href="{{ route('users.index') }}" class="nav-link {{ Request::is('admin/users') ? 'active' : '' }}"> <a href="{{ route('users.index') }}" class="nav-link {{ Request::is('admin/users') ? 'active' : '' }}">

View File

@ -6,6 +6,7 @@
use App\Http\Controllers\AdminController; use App\Http\Controllers\AdminController;
use App\Http\Controllers\UserController; use App\Http\Controllers\UserController;
use App\Http\Controllers\LayananPemutihanController; use App\Http\Controllers\LayananPemutihanController;
use App\Http\Controllers\LayananPengajuanAduanController;
use App\Http\Controllers\LayananPengajuanDpuDpaController; use App\Http\Controllers\LayananPengajuanDpuDpaController;
use App\Http\Controllers\LayananPengajuanWisudaController; use App\Http\Controllers\LayananPengajuanWisudaController;
use App\Http\Controllers\LayananRevisiPublikasiController; use App\Http\Controllers\LayananRevisiPublikasiController;
@ -49,6 +50,7 @@
Route::get('/layanan-pemutihan', [LayananPemutihanController::class, 'index'])->name('layanan-pemutihan.index'); Route::get('/layanan-pemutihan', [LayananPemutihanController::class, 'index'])->name('layanan-pemutihan.index');
Route::DELETE('/layanan-pemutihan', [LayananPemutihanController::class, 'destroy'])->name('layanan-pemutihan.destroy'); Route::DELETE('/layanan-pemutihan', [LayananPemutihanController::class, 'destroy'])->name('layanan-pemutihan.destroy');
Route::POST('/layanan-pemutihan', [LayananPemutihanController::class, 'terima'])->name('layanan-pemutihan.terima'); 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/selesai/{caseid}', [LayananPemutihanController::class, 'selesai'])->name('layanan-pemutihan.selesai'); Route::POST('/layanan-pemutihan/selesai/{caseid}', [LayananPemutihanController::class, 'selesai'])->name('layanan-pemutihan.selesai');
//layanan Pengajuan DPU DPA //layanan Pengajuan DPU DPA
Route::get('/layanan-dpudpa', [LayananPengajuanDpuDpaController::class, 'index'])->name('layanan-dpudpa.index'); Route::get('/layanan-dpudpa', [LayananPengajuanDpuDpaController::class, 'index'])->name('layanan-dpudpa.index');
@ -76,6 +78,11 @@
Route::POST('/layanan-wisuda', [LayananPengajuanWisudaController::class, 'terima'])->name('layanan-wisuda.terima'); Route::POST('/layanan-wisuda', [LayananPengajuanWisudaController::class, 'terima'])->name('layanan-wisuda.terima');
Route::get('/layanan-wisuda/resend/', [LayananPengajuanWisudaController::class, 'resend'])->name('layanan-wisuda.resend'); Route::get('/layanan-wisuda/resend/', [LayananPengajuanWisudaController::class, 'resend'])->name('layanan-wisuda.resend');
Route::POST('/layanan-wisuda/resend/', [LayananPengajuanWisudaController::class, 'resendsubmit'])->name('layanan-wisuda.resendsubmit'); 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', [LayananPengajuanAduanController::class, 'selesai'])->name('layanan-aduan.selesai');
//User //User
Route::get('/users', [UserController::class, 'index'])->name('users.index'); Route::get('/users', [UserController::class, 'index'])->name('users.index');
@ -138,8 +145,9 @@
Route::get('/pemutihan/tambah', [LayananPemutihanController::class, 'tambah'])->name('layanan-pemutihan.tambah'); Route::get('/pemutihan/tambah', [LayananPemutihanController::class, 'tambah'])->name('layanan-pemutihan.tambah');
Route::post('/pemutihan/tambah', [LayananPemutihanController::class, 'store'])->name('layanan-pemutihan.store'); Route::post('/pemutihan/tambah', [LayananPemutihanController::class, 'store'])->name('layanan-pemutihan.store');
Route::get('/pemutihan/cetak/{caseid}', [LayananPemutihanController::class, 'cetak'])->name('layanan-pemutihan.cetak'); Route::get('/pemutihan/cetak/{caseid}', [LayananPemutihanController::class, 'cetak'])->name('layanan-pemutihan.cetak');
Route::get('/pemutihan/{url}/{caseid}', [LayananPemutihanController::class, 'ettd'])->name('layanan-pemutihan.ettd'); //Layanan Aduan
Route::POST('/pemutihan/{url}/{caseid}', [LayananPemutihanController::class, 'submitettd'])->name('layanan-pemutihan.submitettd'); Route::get('/aduan/tambah', [LayananPengajuanAduanController::class, 'tambah'])->name('layanan-aduan.tambah');
Route::post('/aduan/tambah', [LayananPengajuanAduanController::class, 'store'])->name('layanan-aduan.store');
Route::get('/monitoring', [MonitoringController::class, 'index'])->name('monitoring.index'); Route::get('/monitoring', [MonitoringController::class, 'index'])->name('monitoring.index');
Route::post('/monitoring', [MonitoringController::class, 'search'])->name('monitoring.search'); Route::post('/monitoring', [MonitoringController::class, 'search'])->name('monitoring.search');