Commit f5dc457a by Alfiro Pratama

Hide Nilai Seleksi Internal & Fix Table Responsive

parent 326181fb
......@@ -13,6 +13,7 @@ use App\Models\Kelompok;
use App\Models\Periode;
use App\Models\MonevInternal;
use App\Models\JadwalKegiatan;
use App\Models\BuktiAnggaran;
use Session;
use Alert;
......@@ -28,7 +29,7 @@ class MonevController extends Controller
$periode = Periode::query()->get();
$year = !is_null($request->year) ? $request->year : now()->year;
$jadwal = JadwalKegiatan::where('periode_id', $periode->where('status', 1)->first()->periode_id)
->where('nama','Monev Internal '.$id)->first();
->where('nama','Monev Internal '.$id)->first();
$title = 'Monev Internal '.$id;
$proposal = MonevInternal::with(['rProposal', 'rJenisMonev', 'rNilaiMonevAll'])
......@@ -67,7 +68,9 @@ class MonevController extends Controller
if($id[1] == 'logbook'){ $title = 'Upload Logbook'; }
elseif($id[1] == 'kemajuan'){ $title = 'Upload Laporan Kemajuan';}
elseif($id[1] == 'produk'){ $title = 'Upload Video Produk Akhir';}
elseif($id[1] == 'akhir'){ $title = 'Upload Laporan Akhir'; }
elseif($id[2] == 'II'){ $title = 'Upload Revisi Proposal Monev II'; }
else{$title = 'Upload Revisi Proposal Monev I';}
$data = [
......@@ -84,18 +87,35 @@ class MonevController extends Controller
{
//
$id = explode('__', decrypt($id));
$proposal = MonevInternal::with(['rProposal'])->find($id[0]);
// $proposal = MonevInternal::with(['rProposal'])->find($id[0]);
$proposal = MonevInternal::with(['rProposal'])->where('proposal_id', $id[0])->first();
if($id[1] == 'logbook'){ $title = 'Upload Logbook'; }
elseif($id[1] == 'kemajuan'){ $title = 'Upload Laporan Kemajuan';}
elseif($id[1] == 'produk'){ $title = 'Upload Produk Akhir';}
elseif($id[1] == 'akhir'){ $title = 'Upload Laporan Akhir'; }
elseif($id[2] == 'II'){ $title = 'Upload Revisi Proposal Monev II'; }
else{$title = 'Upload Revisi Proposal Monev I';}
$label = '';
if ($id[1] == 'logbook') {
$label = 'Upload Logbook';
} elseif ($id[1] == 'produk') {
$label = 'Upload Video Produk Akhir';
} elseif ($id[1] == 'akhir') {
$label = 'Upload Laporan Akhir';
} elseif ($id[2] == 'II') {
$label = 'Upload Revisi Proposal Monev II';
} else {
$label = 'Upload Revisi Proposal Monev I';
}
$data = [
'proposal' => $proposal,
'title' => $title,
'type' => $id[1],
'monev' => $id[2],
'label' => $label,
];
return view('backend.mahasiswa.monev.upload_monev', $data);
......@@ -131,6 +151,12 @@ class MonevController extends Controller
}elseif($pro['type'] == 'akhir'){
$proposal->akhir_file = $file_nama;
$proposal->akhir_date = now();
}elseif($pro['type'] == 'produk'){
$request->validate([
'produk_url' => 'required|url', // Validasi bahwa produk_url harus berupa URL yang valid
]);
$proposal->produk_url = $request->produk_url;
$proposal->produk_date = now();
}elseif($pro['type'] == 'proposal'){
$proposal->upload_dokumen = $file_nama;
$proposal->date_upload = now();
......@@ -141,4 +167,35 @@ class MonevController extends Controller
return redirect()->route('mahasiswa.monev-index', $pro['monev'])->with('success', 'Proposal Berhasil revisi');
}
public function buktiAnggaran($id)
{
$monev = decrypt($id);
$title = 'Bukti Penggunaan Anggaran';
$anggaran = BuktiAnggaran::with(['rProposal', 'rMonev'])
->where('monev_id', $monev)
// ->paginate(10);
->get();
$data = [
'title' => $title,
'anggaran' => $anggaran
];
return view('backend.mahasiswa.monev.anggaran.index', $data);
}
public function storeAnggaran()
{
$title = 'Bukti Penggunaan Anggaran';
// $proposal = Proposal::with(['rluaran', 'rPeriode'])->find(decrypt($id));
$data = [
// 'proposal' => $proposal,
'title' => $title
];
return view('backend.mahasiswa.monev.anggaran.index', $data);
}
}
......@@ -72,16 +72,18 @@ class ProposalController extends Controller
$proposal = null;
$kelompok = Kelompok::where('created_user', auth()->user()->id)
->where('periode_id', $periode->periode_id)
->where('status', '1')
->first();
->where('periode_id', $periode->periode_id)
->where('status', '1')
->first();
$cekproposal = Proposal::where('created_user', auth()->user()->id)
->where('periode_id', $periode->periode_id)
->first();
$jadwal = JadwalKegiatan::where('periode_id', $periode->where('status', 1)->first()->periode_id)
->where('nama','Upload Proposal Seleksi Internal')->first();
->where('nama','Upload Proposal Seleksi Internal')->first();
// dd($jadwal->tanggal_sekesai);
if(($jadwal->tanggal_mulai <= Carbon::now()) && ($jadwal->tanggal_selesai <= Carbon::now())){
return redirect()->route('mahasiswa.proposal.index')->with('warning', 'Batas Pengajuan telah berakhir!');
......@@ -92,7 +94,6 @@ class ProposalController extends Controller
}
if(is_null($kelompok)){
return redirect()->route('mahasiswa.proposal.index')->with('warning', 'Belum ada kelompok!');
}
......@@ -160,8 +161,8 @@ class ProposalController extends Controller
'url' => $proposal['url'],
'deskripsi' => $proposal['deskripsi'],
'proposal_id' => $kel->proposal_id,
'created_at' => null,
'updated_at' => null
'created_at' => $kel->date_upload,
'updated_at' => $kel->date_upload
]);
}
......
......@@ -188,35 +188,41 @@ class SeleksiController extends Controller
$data .= "
<tr>
<td>Judul Proposal</td>
<td>".$item->judul."</td>
<td>" . $item->judul . "</td>
</tr>
<tr>
<td>Kategori PMW</td>
<td>".$item->jenis_pkm."</td>
<td>" . $item->jenis_pkm . "</td>
</tr>
<tr>
<td>Status</td>
<td>".$status."</td>
<td>" . $status . "</td>
</tr>
<tr>
<td>Proposal</td>
<td>".$dokumen."</td>
<td>" . $dokumen . "</td>
</tr>
<tr>
<td>Komentar</td>
<td>
<h4 class='card-title mb-4'>Nilai Total </h4>
<p class='text-muted mb-3 pb-4'>". $rata ."</p>
<h4 class='card-title mb-4'>Status Nilai</h4>";
if (!is_null($rata)) {
$data .= "<p class='mb-4 pb-4'><span class='badge bg-success'>Telah direview.</span></p>";
} else {
$data .= "<p class='mb-4 pb-4'><span class='badge bg-danger'>Belum ada review.</span></p>";
}
<h4 class='card-title mb-4'>Reviewer 1 </h4>
<p class='text-muted mb-3 pb-4'>".$item->reviewer_komentar_1."</p>
<h4 class='card-title mb-4'>Reviewer 2 </h4>
<p class='text-muted mb-3 pb-4'>".$item->reviewer_komentar_2."</p>
</td>
</tr>
";
$data .= "
<h4 class='card-title mb-4'>Reviewer 1</h4>
<p class='text-muted mb-3 pb-4'>" . $item->reviewer_komentar_1 . "</p>
<h4 class='card-title mb-4'>Reviewer 2</h4>
<p class='text-muted mb-3 pb-4'>" . $item->reviewer_komentar_2 . "</p>
</td>
</tr>
";
// <p class='text-muted mb-3 pb-4'>" . $rata . "</p>
$response['html'] = $data;
echo json_encode($response);
......
......@@ -54,62 +54,63 @@
</div>
</form>
<br>
<table id="datatable" class="table table-bordered dt-responsive" style="border-collapse: collapse; border-spacing: 0; width: 100%;">
<thead>
<tr>
<th>No</th>
<th>Kode Kelompok</th>
<th>Ketua</th>
<th>NIM</th>
<th>Dosen Pembimbing</th>
<th>NIDN</th>
<th>Status</th>
<th>Aksi</th>
</tr>
</thead>
<tbody>
@foreach ($kelompok as $item)
@php $token = Str::random(30); @endphp
<tr id="row-{{ $token }}">
<td>{{ $loop->iteration }}</td>
<td>{{ $item->kode }}</td>
<td>{{ $item->rAnggota->where('status_ketua', 1)->count() > 0 ? $item->rAnggota->where('status_ketua', 1)[0]->nama : '' }}</td>
<td>{{ $item->rAnggota->where('status_ketua', 1)->count() > 0 ? $item->rAnggota->where('status_ketua', 1)[0]->nim : ''}}</td>
<td>{{ $item->nama_dosen }}</td>
<td>{{ $item->nidn_dosen }}</td>
<td>
@if(!is_null($item->kirim))
@if($item->status == 0)
<span class="badge bg-danger">Menunggu Persetujuan Dosen</span>
@else
<span class="badge bg-success">Sudah Disetujui Dosen</span>
<div class="table-responsive">
<table id="datatable" class="table table-bordered dt-responsive" style="border-collapse: collapse; border-spacing: 0; width: 100%;">
<thead>
<tr>
<th>No</th>
<th>Kode Kelompok</th>
<th>Ketua</th>
<th>NIM</th>
<th>Dosen Pembimbing</th>
<th>NIDN</th>
<th>Status</th>
<th>Aksi</th>
</tr>
</thead>
<tbody>
@foreach ($kelompok as $item)
@php $token = Str::random(30); @endphp
<tr id="row-{{ $token }}">
<td>{{ $loop->iteration }}</td>
<td>{{ $item->kode }}</td>
<td>{{ $item->rAnggota->where('status_ketua', 1)->count() > 0 ? $item->rAnggota->where('status_ketua', 1)[0]->nama : '' }}</td>
<td>{{ $item->rAnggota->where('status_ketua', 1)->count() > 0 ? $item->rAnggota->where('status_ketua', 1)[0]->nim : ''}}</td>
<td>{{ $item->nama_dosen }}</td>
<td>{{ $item->nidn_dosen }}</td>
<td>
@if(!is_null($item->kirim))
@if($item->status == 0)
<span class="badge bg-danger">Menunggu Persetujuan Dosen</span>
@else
<span class="badge bg-success">Sudah Disetujui Dosen</span>
@endif
@endif
@endif
</td>
<td>
{{-- <button data-bs-toggle="modal" data-bs-target="{{ '#lihat'.$item->kelompok_id }}" href="{{ URL::to('mahasiswa/kelompok-new', encrypt($item->kelompok_id)) }}" class="btn btn-info btn-sm"><i class="far fa-eye"></i> Lihat</button> --}}
<a data-toggle="tooltip" data-id="{{ $item->kelompok_id }}" data-original-title="Lihat" class="btn btn-info btn-sm lihatDet"><i class="far fa-eye"></i> Lihat</a>
</td>
<td>
@if($item->status == 0)
<a onclick="setuju('{{ encrypt($item->kelompok_id) }}', 'row-{{ $token }}')" class="btn btn-success btn-sm"><i class="fas fa-check"></i> Setuju</a>
<a onclick="tolak('{{ encrypt($item->kelompok_id) }}', 'row-{{ $token }}')" class="btn btn-danger btn-sm"><i class="fas fa-times"></i> Tolak</a>
@endif
{{-- <button data-bs-toggle="modal" data-bs-target="{{ '#lihat'.$item->kelompok_id }}" href="{{ URL::to('mahasiswa/kelompok-new', encrypt($item->kelompok_id)) }}" class="btn btn-info btn-sm"><i class="far fa-eye"></i> Lihat</button> --}}
<a data-toggle="tooltip" data-id="{{ $item->kelompok_id }}" data-original-title="Lihat" class="btn btn-info btn-sm lihatDet"><i class="far fa-eye"></i> Lihat</a>
@if((auth()->user()->id == $item->created_user) && ($item->status == 0))
<a href="{{ URL::to('mahasiswa/kelompok-new', encrypt($item->kelompok_id)) }}" class="btn btn-warning btn-sm">Edit</a>
<a onclick="hapus('{{ encrypt($item->kelompok_id) }}', 'row-{{ $token }}')" class="btn btn-danger btn-sm">Hapus</a>
@endif
@if($item->status == 0)
<a onclick="setuju('{{ encrypt($item->kelompok_id) }}', 'row-{{ $token }}')" class="btn btn-success btn-sm"><i class="fas fa-check"></i> Setuju</a>
<a onclick="tolak('{{ encrypt($item->kelompok_id) }}', 'row-{{ $token }}')" class="btn btn-danger btn-sm"><i class="fas fa-times"></i> Tolak</a>
@endif
@if((auth()->user()->id == $item->created_user) && ($item->status == 0))
<a href="{{ URL::to('mahasiswa/kelompok-new', encrypt($item->kelompok_id)) }}" class="btn btn-warning btn-sm">Edit</a>
<a onclick="hapus('{{ encrypt($item->kelompok_id) }}', 'row-{{ $token }}')" class="btn btn-danger btn-sm">Hapus</a>
@endif
</div>
</td>
</tr>
@endforeach
</tbody>
</table>
</div>
</td>
</tr>
@endforeach
</tbody>
</table>
</div>
</div>
</div>
</div> <!-- end col -->
......@@ -124,21 +125,23 @@
</div>
<div class="modal-body">
<p>
<table class="table table-bordered data-table mb-0" id="tableDetail">
<thead>
<tr>
<th>No</th>
<th>Nama</th>
<th>NIM</th>
<th>Fakultas</th>
<th>Program Studi</th>
<th>Keterangan</th>
</tr>
</thead>
<tbody>
<div class="table-responsive">
<table class="table table-bordered data-table mb-0" id="tableDetail">
<thead>
<tr>
<th>No</th>
<th>Nama</th>
<th>NIM</th>
<th>Fakultas</th>
<th>Program Studi</th>
<th>Keterangan</th>
</tr>
</thead>
<tbody>
</tbody>
</table>
</tbody>
</table>
</div>
</p>
</div>
</div>
......
......@@ -34,30 +34,30 @@
<div class="col-12">
<div class="card">
<div class="card-body">
<table id="datatable" class="table table-bordered dt-responsive nowrap" style="border-collapse: collapse; border-spacing: 0; width: 100%;">
<thead>
<tr>
<th>No</th>
<th>Jenis</th>
<th>Judul</th>
<th>File</th>
</tr>
</thead>
<tbody>
@foreach ($proposal->rLuaran as $item)
@php $token = Str::random(30); @endphp
<tr id="row-{{ $token }}">
<td>{{ $loop->iteration }}</td>
<td>{{ $item->jenis_luaran }}</td>
<td>{{ $item->judul }}</td>
<td><a href="https://statik.unesa.ac.id/simpmw/luaran/{{ $item->jenis_luaran }}/{{ $item->file_luaran }}" target="_blank" title="Logbook" class="btn btn-info btn-sm waves-effect waves-light"> <i class="fas fa-search"></i> Lihat</a></td>
<div class="table-responsive">
<table id="datatable" class="table table-bordered dt-responsive nowrap" style="border-collapse: collapse; border-spacing: 0; width: 100%;">
<thead>
<tr>
<th>No</th>
<th>Jenis</th>
<th>Judul</th>
<th>File</th>
</tr>
@endforeach
</tbody>
</table>
</thead>
<tbody>
@foreach ($proposal->rLuaran as $item)
@php $token = Str::random(30); @endphp
<tr id="row-{{ $token }}">
<td>{{ $loop->iteration }}</td>
<td>{{ $item->jenis_luaran }}</td>
<td>{{ $item->judul }}</td>
<td><a href="https://statik.unesa.ac.id/simpmw/luaran/{{ $item->jenis_luaran }}/{{ $item->file_luaran }}" target="_blank" title="Logbook" class="btn btn-info btn-sm waves-effect waves-light"> <i class="fas fa-search"></i> Lihat</a></td>
</tr>
@endforeach
</tbody>
</table>
</div>
</div>
</div>
</div> <!-- end col -->
......
......@@ -54,53 +54,53 @@
</div>
</form>
<br>
<table id="datatable" class="table table-bordered dt-responsive" style="border-collapse: collapse; border-spacing: 0; width: 100%;">
<thead style="text-align: center; vertical-align: middle;">
<tr>
<th>No</th>
<th>Kode Kelompok</th>
<th>Identitas Ketua</th>
<th>Kategori PMW</th>
<th>Judul Proposal</th>
<th>Usulan Dana</th>
<th>Status</th>
<th>Aksi</th>
</tr>
</thead>
<tbody>
@foreach ($proposal as $item)
@php $token = Str::random(30); @endphp
<tr id="row-{{ $token }}">
<td style="text-align: center;">{{ $loop->iteration }}.</td>
<td style="text-align: center;">{{ $item->rKelompok->kode }}</td>
<td>{{ $item->rKelompok->rBiodata->name }} <br> {{ $item->rKelompok->rBiodata->noidentitas }} <br> {{ $item->rKelompok->rBiodata->fakultas }} <br> {{ $item->rKelompok->rBiodata->prodi }}</td>
<td style="text-align: center;">{{ $item->rJenis->nama }}</td>
<td style="text-align: center;">{{ $item->judul }}</td>
<td style="text-align: center;">
@if(substr(number_format($item->usulan_dana, 2, ',', '.'), -3) === ',00')
Rp{{ substr(number_format($item->usulan_dana, 2, ',', '.'), 0, -3) }},-
@else
Rp{{ number_format($item->usulan_dana, 2, ',', '.') }}
@endif
</td>
<td style="text-align: center;">
@if(is_null($item->rDaftarPro->status_final) || $item->rDaftarPro->status_final == 0)
<span class="badge bg-info">Menunggu Reviewer</span>
@elseif($item->rDaftarPro->status_final == 1)
<span class="badge bg-success">Lolos Seleksi Internal</span>
@else
<span class="badge bg-danger">Tidak Lolos Seleksi Internal</span>
@endif
</td>
<td style="text-align: center;">
<a data-toggle="tooltip" data-id="{{ $item->proposal_id }}" data-original-title="Lihat" class="btn btn-info btn-sm lihatDet"><i class="far fa-eye"></i> Lihat</a>
</div>
</td>
<div class="table-responsive">
<table id="datatable" class="table table-bordered dt-responsive" style="border-collapse: collapse; border-spacing: 0; width: 100%;">
<thead style="text-align: center; vertical-align: middle;">
<tr>
<th>No</th>
<th>Kode Kelompok</th>
<th>Identitas Ketua</th>
<th>Kategori PMW</th>
<th>Judul Proposal</th>
<th>Usulan Dana</th>
<th>Status</th>
<th>Aksi</th>
</tr>
@endforeach
</tbody>
</table>
</thead>
<tbody>
@foreach ($proposal as $item)
@php $token = Str::random(30); @endphp
<tr id="row-{{ $token }}">
<td style="text-align: center;">{{ $loop->iteration }}.</td>
<td style="text-align: center;">{{ $item->rKelompok->kode }}</td>
<td>{{ $item->rKelompok->rBiodata->name }} <br> {{ $item->rKelompok->rBiodata->noidentitas }} <br> {{ $item->rKelompok->rBiodata->fakultas }} <br> {{ $item->rKelompok->rBiodata->prodi }}</td>
<td style="text-align: center;">{{ $item->rJenis->nama }}</td>
<td style="text-align: center;">{{ $item->judul }}</td>
<td style="text-align: center;">
@if(substr(number_format($item->usulan_dana, 2, ',', '.'), -3) === ',00')
Rp{{ substr(number_format($item->usulan_dana, 2, ',', '.'), 0, -3) }},-
@else
Rp{{ number_format($item->usulan_dana, 2, ',', '.') }}
@endif
</td>
<td style="text-align: center;">
@if(is_null($item->rDaftarPro->status_final) || $item->rDaftarPro->status_final == 0)
<span class="badge bg-info">Menunggu Reviewer</span>
@elseif($item->rDaftarPro->status_final == 1)
<span class="badge bg-success">Lolos Seleksi Internal</span>
@else
<span class="badge bg-danger">Tidak Lolos Seleksi Internal</span>
@endif
</td>
<td style="text-align: center;">
<a data-toggle="tooltip" data-id="{{ $item->proposal_id }}" data-original-title="Lihat" class="btn btn-info btn-sm lihatDet"><i class="far fa-eye"></i> Lihat</a>
</td>
</tr>
@endforeach
</tbody>
</table>
</div>
</div>
</div>
</div> <!-- end col -->
......
......@@ -12,9 +12,9 @@
@endsection
@section('contents')
@php
$menu = 'dashboard';
@endphp
@php
$menu = 'dashboard';
@endphp
<!-- start page title -->
<div class="page-title-box">
......@@ -42,8 +42,7 @@
</div>
</div>
</div>
@endsection
@endsection
@section('js')
......
......@@ -34,20 +34,22 @@
</div>
</div>
<br/>
<table class="table table-hover table-centered table-nowrap mb-0">
<tbody>
<tr class="table-light">
<td>Kode Kelompok</td>
<td>NIDN Dosen</td>
<td>Dosen Pembimbing</td>
</tr>
<tr>
<td>{{ $kelompok->kode }}</td>
<td>{{ $kelompok->nidn_dosen }}</td>
<td>{{ $kelompok->nama_dosen }}</td>
</tr>
</tbody>
</table>
<div class="table-responsive">
<table class="table table-hover table-centered table-nowrap mb-0">
<tbody>
<tr class="table-light">
<td>Kode Kelompok</td>
<td>NIDN Dosen</td>
<td>Dosen Pembimbing</td>
</tr>
<tr>
<td>{{ $kelompok->kode }}</td>
<td>{{ $kelompok->nidn_dosen }}</td>
<td>{{ $kelompok->nama_dosen }}</td>
</tr>
</tbody>
</table>
</div>
<br/>
<div class="row">
<div class="col-10">
......@@ -58,38 +60,40 @@
</div>
</div>
<br/>
<table class="table table-hover table-centered table-nowrap mb-0">
<thead>
<tr class="table-light">
<td>No</td>
<td>Nama</td>
<td>NIM</td>
<td>Fakultas</td>
<td>Program Studi</td>
<td>Keterangan</td>
<td></td>
</tr>
<thead>
<tbody>
@foreach ($kelompok->rAnggota as $item)
<tr>
<td>{{ $loop->iteration }}</td>
<td>{{ ucwords(strtolower($item->nama)) }}</td>
<td>{{ $item->nim }}</td>
<td>{{ $item->fakultas }}</td>
<td>{{ $item->prodi }}</td>
<td>
@if($item->status_ketua == 1)
Ketua
@else
Anggota {{ $loop->iteration-1 }}
@endif
</td>
<div class="table-responsive">
<table class="table table-hover table-centered table-nowrap mb-0">
<thead>
<tr class="table-light">
<td>No</td>
<td>Nama</td>
<td>NIM</td>
<td>Fakultas</td>
<td>Program Studi</td>
<td>Keterangan</td>
<td></td>
</tr>
@endforeach
</tbody>
</table>
<thead>
<tbody>
@foreach ($kelompok->rAnggota as $item)
<tr>
<td>{{ $loop->iteration }}</td>
<td>{{ ucwords(strtolower($item->nama)) }}</td>
<td>{{ $item->nim }}</td>
<td>{{ $item->fakultas }}</td>
<td>{{ $item->prodi }}</td>
<td>
@if($item->status_ketua == 1)
Ketua
@else
Anggota {{ $loop->iteration-1 }}
@endif
</td>
<td></td>
</tr>
@endforeach
</tbody>
</table>
</div>
</div>
</div>
</div>
......
......@@ -18,12 +18,13 @@
<h6 class="page-title">{!! $title !!}</h6>
<ol class="breadcrumb m-0">
<li class="breadcrumb-item">Mahasiswa</li>
<li class="breadcrumb-item"><a href="{{ url()->previous() }}">Monev Internal I</a></li>
<li class="breadcrumb-item">{!! $title !!}</li>
</ol>
</div>
<div class="col-md-4">
<div class="float-end d-none d-md-block">
<button type="button" class="btn btn-primary waves-effect waves-light" data-bs-toggle="modal" data-bs-target="#tmbhKel">Tambah Data</button>
<button type="button" class="btn btn-primary waves-effect waves-light" data-bs-toggle="modal" data-bs-target="#tmbhKel"><i class="fas fa-plus-circle me-2"></i> Tambah Data</button>
</div>
</div>
</div>
......@@ -35,37 +36,44 @@
<div class="col-12">
<div class="card">
<div class="card-body">
<table id="datatable" class="table table-bordered dt-responsive nowrap" style="border-collapse: collapse; border-spacing: 0; width: 100%;">
<thead>
<tr>
<th>No</th>
<th>Jenis</th>
<th>Judul</th>
<th>File</th>
<th>Aksi</th>
</tr>
</thead>
<tbody>
@foreach ($proposal->rLuaran as $item)
@php $token = Str::random(30); @endphp
<tr id="row-{{ $token }}">
<td>{{ $loop->iteration }}</td>
<td>{{ $item->jenis_luaran }}</td>
<td>{{ $item->judul }}</td>
<td><a href="https://statik.unesa.ac.id/simpmw/luaran/{{ $item->jenis_luaran }}/{{ $item->file_luaran }}" target="_blank" title="Logbook" class="btn btn-info btn-sm waves-effect waves-light"> <i class="fas fa-search"></i> Lihat</a></td>
<td>
<a onclick="hapus('{{ encrypt($item->id) }}', 'row-{{ $token }}')" class="btn btn-danger btn-sm">Hapus</a>
</td>
</tr>
@endforeach
</tbody>
</table>
<div class="table-responsive">
<table id="datatable" class="table table-bordered dt-responsive nowrap" style="border-collapse: collapse; border-spacing: 0; width: 100%;">
<thead>
<tr align="center" valign="middle">
<th>No</th>
<th>Jenis</th>
<th>Judul</th>
<th>File</th>
<th>Aksi</th>
</tr>
</thead>
<tbody>
@if ($proposal->rLuaran->count())
@foreach ($proposal->rLuaran as $item)
@php $token = Str::random(30); @endphp
<tr id="row-{{ $token }}">
<td>{{ $loop->iteration }}</td>
<td>{{ $item->jenis_luaran }}</td>
<td>{{ $item->judul }}</td>
<td><a href="https://statik.unesa.ac.id/simpmw/luaran/{{ $item->jenis_luaran }}/{{ $item->file_luaran }}" target="_blank" title="Logbook" class="btn btn-info btn-sm waves-effect waves-light"> <i class="fas fa-search"></i> Lihat</a></td>
<td>
<a onclick="hapus('{{ encrypt($item->id) }}', 'row-{{ $token }}')" class="btn btn-danger btn-sm">Hapus</a>
</td>
</tr>
@endforeach
@else
<tr>
<td colspan="5" style="text-align: center; font-style: italic;">Tidak ada data yang dapat diambil.</td>
</tr>
@endif
</tbody>
</table>
</div>
</div>
</div>
</div> <!-- end col -->
</div> <!-- end row -->
<div id="tmbhKel" class="modal fade" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
......
......@@ -25,6 +25,7 @@
</div>
</div>
<!-- end page title -->
<div class="row">
<div class="col-12">
<div class="card">
......@@ -37,16 +38,16 @@
<input class="form-control" type="hidden" id="monev_id" name="monev_id" value="{{ $proposal->id }}" >
<input class="form-control" type="hidden" id="type" name="type" value="{{ $type }}" >
<input class="form-control" type="hidden" id="monev" name="monev" value="{{ $monev }}" >
<label for="kode" class="col-sm-2 col-form-label">Judul</label>
<label class="col-sm-10 col-form-label">{{ $proposal->rProposal->judul }}</label>
<label for="input-form" class="col-sm-2 col-form-label">Judul</label>
<label for="input-form" class="col-sm-10 col-form-label">{{ $proposal->rProposal->judul }}</label>
</div>
<div class=" row mb-3">
<label class="col-sm-2 col-form-label">Kategori PMW</label>
<label class="col-sm-10 col-form-label">{{ $proposal->rProposal->rJenis->nama }}</label>
<label for="input-form" class="col-sm-2 col-form-label">Kategori PMW</label>
<label for="input-form" class="col-sm-10 col-form-label">{{ $proposal->rProposal->rJenis->nama }}</label>
</div>
<div class=" row mb-3">
<label class="col-sm-2 col-form-label">Komentar Review</label>
<label class="col-sm-10 col-form-label">
<label for="input-form" class="col-sm-2 col-form-label">Komentar Review</label>
<label for="input-form" class="col-sm-10 col-form-label">
<h4 class="card-title mb-4">Reviewer 1 - {{ $proposal->rNilaiMonev->rReviewerBio1 ? $proposal->rNilaiMonev->rReviewerBio1->nama : '' }}</h4>
<p class="text-muted mb-3 pb-4">" {{ $proposal->rNilaiMonev->reviewer_komentar_1 }}"</p>
......@@ -55,17 +56,34 @@
</label>
</div>
<div class="row mb-3" class="dropzone">
<label for="kode" class="col-sm-2 col-form-label">Upload Revisi Proposal</label>
<label for="input-form" class="col-sm-2 col-form-label">{{ $label }}</label>
{{-- <label for="kode" class="col-sm-2 col-form-label">Upload Revisi Proposal</label>
<div class="col-sm-10">
@if ($errors->has('file')) <span class="text-danger">{{ $errors->first('file') }}</span> @endif
<input type="file" name="file" class="form-control" id="input-file">
<iframe id="view-pdf" width="80%" height="80%" src="" frameborder="0"></iframe>
</div>
</div> --}}
@if($type == 'produk')
<div class="col-sm-10">
@if ($errors->has('produk_url'))
<span class="text-danger">{{ $errors->first('produk_url') }}</span>
@endif
<input type="text" name="produk_url" class="form-control" id="input-form" value="{{ old('produk_url') }}">
</div>
@else
<div class="col-sm-10">
@if ($errors->has('file'))
<span class="text-danger">{{ $errors->first('file') }}</span>
@endif
<input type="file" name="file" class="form-control" id="input-form">
<iframe id="view-pdf" width="80%" height="80%" src="" frameborder="0"></iframe>
</div>
@endif
</div>
<div class="mb-0">
<div>
<button type="submit" class="btn btn-primary waves-effect waves-light me-1"> Submit </button>
<button type="reset" class="btn btn-secondary waves-effect"> Cancel </button>
<button type="button" onclick="window.location.href='{{ URL::to('/mahasiswa/monev/II') }}'" class="btn btn-secondary waves-effect"> Cancel </button>
</div>
</div>
</form>
......@@ -75,7 +93,6 @@
</div>
</div> <!-- end col -->
</div> <!-- end row -->
@endsection
@section('js')
......
......@@ -125,7 +125,6 @@
</div>
</div>
</div>
@endsection
@section('js')
......
......@@ -200,7 +200,6 @@
</div>
</div> <!-- end col -->
</div> <!-- end row -->
@endsection
@section('js')
......
......@@ -27,7 +27,6 @@
</div>
</div>
</div>
</div>
<!-- end page title -->
......@@ -54,54 +53,55 @@
</div>
</form>
<br>
<table id="datatable" class="table table-bordered dt-responsive nowrap" style="border-collapse: collapse; border-spacing: 0; width: 100%;">
<thead style="text-align: center; vertical-align: middle;">
<tr>
<th>No</th>
<th>Kode Kelompok</th>
<th>Identitas Ketua</th>
<th>Identitas Dosen Pembimbing</th>
<th>Kategori PMW</th>
<th>Judul Proposal</th>
<th>Usulan Anggaran</th>
<th>Status</th>
<th>Aksi</th>
</tr>
</thead>
<tbody>
@foreach ($proposal as $item)
@php $token = Str::random(30); @endphp
<tr id="row-{{ $token }}">
<td style="text-align: center;">{{ $loop->iteration }}.</td>
<td style="text-align: center;">{{ $item->rKelompok->kode }}</td>
<td>{{ $item->rKelompok->rBiodata->name }} <br> {{ $item->rKelompok->rBiodata->noidentitas }} <br> {{ $item->rKelompok->rBiodata->fakultas }} <br> {{ $item->rKelompok->rBiodata->prodi }}</td>
<td>{{ $item->rKelompok->nama_dosen }} <br> {{ $item->rKelompok->nidn_dosen }}</td>
<td style="text-align: center;">{{ $item->rJenis->nama }}</td>
<td style="text-align: center;">{{ $item->judul }}</td>
<td style="text-align: center;">
@if(substr(number_format($item->usulan_dana, 2, ',', '.'), -3) === ',00')
Rp{{ substr(number_format($item->usulan_dana, 2, ',', '.'), 0, -3) }},-
@else
Rp{{ number_format($item->usulan_dana, 2, ',', '.') }}
@endif
</td>
<td style="text-align: center;">
@if(is_null($item->rDaftarPro->status_final) || $item->rDaftarPro->status_final == 0)
<span class="badge bg-info">Menunggu Reviewer</span>
@elseif($item->rDaftarPro->status_final == 1)
<span class="badge bg-success">Lolos Seleksi Internal</span>
@else
<span class="badge bg-danger">Tidak Lolos Seleksi Internal</span>
@endif
</td>
<td style="text-align: center;">
<a data-toggle="tooltip" data-id="{{ $item->proposal_id }}" data-original-title="Lihat" class="btn btn-info btn-sm lihatDet"><i class="far fa-eye"></i> Lihat</a>
</td>
<div class="table-responsive">
<table id="datatable" class="table table-bordered dt-responsive nowrap" style="border-collapse: collapse; border-spacing: 0; width: 100%;">
<thead style="text-align: center; vertical-align: middle;">
<tr>
<th>No</th>
<th>Kode Kelompok</th>
<th>Identitas Ketua</th>
<th>Identitas Dosen Pembimbing</th>
<th>Kategori PMW</th>
<th>Judul Proposal</th>
<th>Usulan Anggaran</th>
<th>Status</th>
<th>Aksi</th>
</tr>
@endforeach
</tbody>
</table>
</thead>
<tbody>
@foreach ($proposal as $item)
@php $token = Str::random(30); @endphp
<tr id="row-{{ $token }}">
<td style="text-align: center;">{{ $loop->iteration }}.</td>
<td style="text-align: center;">{{ $item->rKelompok->kode }}</td>
<td>{{ $item->rKelompok->rBiodata->name }} <br> {{ $item->rKelompok->rBiodata->noidentitas }} <br> {{ $item->rKelompok->rBiodata->fakultas }} <br> {{ $item->rKelompok->rBiodata->prodi }}</td>
<td>{{ $item->rKelompok->nama_dosen }} <br> {{ $item->rKelompok->nidn_dosen }}</td>
<td style="text-align: center;">{{ $item->rJenis->nama }}</td>
<td style="text-align: center;">{{ $item->judul }}</td>
<td style="text-align: center;">
@if(substr(number_format($item->usulan_dana, 2, ',', '.'), -3) === ',00')
Rp{{ substr(number_format($item->usulan_dana, 2, ',', '.'), 0, -3) }},-
@else
Rp{{ number_format($item->usulan_dana, 2, ',', '.') }}
@endif
</td>
<td style="text-align: center;">
@if(is_null($item->rDaftarPro->status_final) || $item->rDaftarPro->status_final == 0)
<span class="badge bg-info">Menunggu Reviewer</span>
@elseif($item->rDaftarPro->status_final == 1)
<span class="badge bg-success">Lolos Seleksi Internal</span>
@else
<span class="badge bg-danger">Tidak Lolos Seleksi Internal</span>
@endif
</td>
<td style="text-align: center;">
<a data-toggle="tooltip" data-id="{{ $item->proposal_id }}" data-original-title="Lihat" class="btn btn-info btn-sm lihatDet"><i class="far fa-eye"></i> Lihat</a>
</td>
</tr>
@endforeach
</tbody>
</table>
</div>
</div>
</div>
</div> <!-- end col -->
......@@ -132,7 +132,6 @@
@section('js')
<script>
function hapus(id, rowId){
Swal.fire({
title: 'Apakah anda yakin untuk menghapus Kelompok?',
......
......@@ -24,6 +24,7 @@
</div>
</div>
<!-- end page title -->
<div class="row">
<div class="col-12">
<div class="card">
......@@ -69,7 +70,6 @@
</div>
</div> <!-- end col -->
</div> <!-- end row -->
@endsection
@section('js')
......
......@@ -79,25 +79,26 @@
</div>
</div>
<br>
<table id="example" class="table table-bordered dt-responsive wrap" style="border-collapse: collapse; border-spacing: 0; width: 100%;">
<thead>
<tr>
<th id</th>
<th width='5%'>Kode Kelompok</th>
<th width='15%'>Jenis PMW</th>
<th width='20%'>Judul Proposal</th>
<th width='10%'>Dosen Pembimbing</th>
<th width='15%'>Reviewer 1</th>
<th width='15%'>Reviewer 2</th>
<th width='5%' >Pendanaan</th>
<th width='5%'>Nilai Akhir</th>
<th width='10%'>Aksi</th>
</tr>
</thead>
<tbody>
</tbody>
</table>
<div class="table-responsive">
<table id="example" class="table table-bordered dt-responsive wrap" style="border-collapse: collapse; border-spacing: 0; width: 100%;">
<thead>
<tr>
<th id</th>
<th width='5%'>Kode Kelompok</th>
<th width='15%'>Jenis PMW</th>
<th width='20%'>Judul Proposal</th>
<th width='10%'>Dosen Pembimbing</th>
<th width='15%'>Reviewer 1</th>
<th width='15%'>Reviewer 2</th>
<th width='5%' >Pendanaan</th>
<th width='5%'>Nilai Akhir</th>
<th width='10%'>Aksi</th>
</tr>
</thead>
<tbody>
</tbody>
</table>
</div>
</div>
</div>
</div> <!-- end col -->
......@@ -106,7 +107,6 @@
@section('js')
<script>
$("#reqJenisPkm, #reqStatus, #reqTahun").select2({
placeholder: "Semua",
allowClear: true
......
......@@ -21,7 +21,7 @@
<div class="col-md-8">
<h6 class="page-title">{!! $title !!}</h6>
<ol class="breadcrumb m-0">
<li class="breadcrumb-item">Seleksi Internal</li>
<li class="breadcrumb-item">Monev Internal I</li>
<li class="breadcrumb-item">{!! $title !!}</li>
</ol>
</div>
......@@ -34,8 +34,6 @@
</div>
<!-- end page title -->
<div class="row">
<div class="col-12">
<div class="card">
......@@ -82,29 +80,30 @@
</div>
</div>
<br>
<table id="example" class="table table-bordered dt-responsive wrap" style="border-collapse: collapse; border-spacing: 0; width: 100%;">
<thead>
<tr>
<th rowspan="2">id</th>
<th rowspan="2">Kode Kelompok</th>
<th rowspan="2">Kategori PMW</th>
<th rowspan="2">Judul Proposal</th>
<th rowspan="2">Dosen Pembimbing</th>
<th rowspan="2">Reviewer 1</th>
<th rowspan="2">Reviewer 2</th>
<th colspan="2" style="text-align: center">Nilai</th>
<th rowspan="2">Nilai Akhir</th>
<th rowspan="2">Aksi</th>
</tr>
<tr>
<th>Reviewer 1</th>
<th>Reviewer 2</th>
</tr>
</thead>
<tbody>
</tbody>
</table>
<div class="table-responsive">
<table id="example" class="table table-bordered dt-responsive wrap" style="border-collapse: collapse; border-spacing: 0; width: 100%;">
<thead>
<tr>
<th rowspan="2">id</th>
<th rowspan="2">Kode Kelompok</th>
<th rowspan="2">Kategori PMW</th>
<th rowspan="2">Judul Proposal</th>
<th rowspan="2">Dosen Pembimbing</th>
<th rowspan="2">Reviewer 1</th>
<th rowspan="2">Reviewer 2</th>
<th colspan="2" style="text-align: center">Nilai</th>
<th rowspan="2">Nilai Akhir</th>
<th rowspan="2">Aksi</th>
</tr>
<tr>
<th>Reviewer 1</th>
<th>Reviewer 2</th>
</tr>
</thead>
<tbody>
</tbody>
</table>
</div>
</div>
</div>
</div> <!-- end col -->
......@@ -113,7 +112,6 @@
@section('js')
<script>
$("#reqJenisPkm, #reqStatus, #reqTahun").select2({
placeholder: "Semua",
allowClear: true
......
......@@ -34,52 +34,49 @@ Dashboard
</div>
<!-- end page title -->
<div class="row">
<div class="col-12">
<div class="card">
<div class="card-body">
{!! Form::open(array('url' => route('operator.jadwal-kegiatan.store'), 'method' => 'POST', 'id' => 'ff', 'class'
=>
'form-horizontal')) !!}
{!! Form::open(array('url' => route('operator.jadwal-kegiatan.store'), 'method' => 'POST', 'id' => 'ff', 'class' => 'form-horizontal')) !!}
{!! csrf_field() !!}
<table id="example" class="table table-bordered dt-responsive nowrap"
style="border-collapse: collapse; border-spacing: 0; width: 100%;">
<div class="table-responsive">
<table id="example" class="table table-bordered dt-responsive nowrap"
style="border-collapse: collapse; border-spacing: 0; width: 100%;">
<thead>
<tr>
<th>Nama Kegiatan</th>
<th style="text-align: center">Tanggal Mulai</th>
<th style="text-align: center">Tanggal Selesai</th>
</tr>
</thead>
<tbody>
@foreach ($data['jadwal_kegiatan'] as $item => $val)
@php
$tgl_awal = Carbon::parse($val->tanggal_mulai)->format('d-m-Y H:i')?:'';
$tgl_akhir = Carbon::parse($val->tanggal_selesai)->format('d-m-Y H:i')?:'';
<thead>
<tr>
<th>Nama Kegiatan</th>
<th style="text-align: center">Tanggal Mulai</th>
<th style="text-align: center">Tanggal Selesai</th>
</tr>
</thead>
<tbody>
@foreach ($data['jadwal_kegiatan'] as $item => $val)
@php
$tgl_awal = Carbon::parse($val->tanggal_mulai)->format('d-m-Y H:i')?:'';
$tgl_akhir = Carbon::parse($val->tanggal_selesai)->format('d-m-Y H:i')?:'';
$tgl = $tgl_awal.' - '.$tgl_akhir;
@endphp
<tr>
<td>{{ $val->nama }}</td>
<td colspan="2">
<div class="input-group" id="reqView">
<input class="form-control" name="viewStart" type="text"
value="{{ $tgl_awal }}" readonly>
<input class="form-control" name="viewEnd" type="text"
value="{{ $tgl_akhir }}" readonly>
</div>
<div class="input-group" id="reqEdit" style="display: none">
<input type="text" class="form-control" name="tanggal[{{ $val->jadwal_kegiatan_id }}]" value="{{ $tgl }}" />
<span class="input-group-text"><i class="mdi mdi-calendar"></i></span>
</div>
</td>
</tr>
@endforeach
</tbody>
</table>
$tgl = $tgl_awal.' - '.$tgl_akhir;
@endphp
<tr>
<td>{{ $val->nama }}</td>
<td colspan="2">
<div class="input-group" id="reqView">
<input class="form-control" name="viewStart" type="text"
value="{{ $tgl_awal }}" readonly>
<input class="form-control" name="viewEnd" type="text"
value="{{ $tgl_akhir }}" readonly>
</div>
<div class="input-group" id="reqEdit" style="display: none">
<input type="text" class="form-control" name="tanggal[{{ $val->jadwal_kegiatan_id }}]" value="{{ $tgl }}" />
<span class="input-group-text"><i class="mdi mdi-calendar"></i></span>
</div>
</td>
</tr>
@endforeach
</tbody>
</table>
</div>
<button type="submit" class="btn btn-primary waves-effect waves-light me-1" style="display: none"
id="btnSubmit">
......@@ -90,7 +87,6 @@ Dashboard
</div>
</div> <!-- end col -->
</div> <!-- end row -->
@endsection
@section('js')
......
......@@ -66,7 +66,6 @@
</div>
</div> <!-- end col -->
</div> <!-- end row -->
@endsection
@section('js')
......
......@@ -70,7 +70,6 @@
</div>
</div> <!-- end col -->
</div> <!-- end row -->
@endsection
@section('js')
......
......@@ -30,31 +30,28 @@
</div>
<!-- end page title -->
<div class="row">
<div class="col-12">
<div class="card">
<div class="card-body">
<table id="example" class="table table-bordered dt-responsive wrap" style="border-collapse: collapse; border-spacing: 0; width: 100%;">
<thead>
<tr>
<th>id</th>
<th>Kategori PMW</th>
<th>Deskripsi</th>
<th>Aksi</th>
</tr>
</thead>
<tbody>
</tbody>
</table>
<div class="table-responsive">
<table id="example" class="table table-bordered dt-responsive wrap" style="border-collapse: collapse; border-spacing: 0; width: 100%;">
<thead>
<tr>
<th>id</th>
<th>Kategori PMW</th>
<th>Deskripsi</th>
<th>Aksi</th>
</tr>
</thead>
<tbody>
</tbody>
</table>
</div>
</div>
</div>
</div> <!-- end col -->
</div> <!-- end row -->
@endsection
@section('js')
......
......@@ -104,7 +104,6 @@
</div>
</div> <!-- end col -->
</div> <!-- end row -->
@endsection
@section('js')
......
......@@ -25,32 +25,29 @@
</div>
<!-- end page title -->
<div class="row">
<div class="col-12">
<div class="card">
<div class="card-body">
<table id="example" class="table table-bordered dt-responsive wrap" style="border-collapse: collapse; border-spacing: 0; width: 100%;">
<thead>
<tr>
<th>id</th>
<th>Kategori PMW</th>
<th>Deskripsi</th>
<th>Jumlah Komponen</th>
<th>Aksi</th>
</tr>
</thead>
<tbody>
</tbody>
</table>
<div class="table-responsive">
<table id="example" class="table table-bordered dt-responsive wrap" style="border-collapse: collapse; border-spacing: 0; width: 100%;">
<thead>
<tr>
<th>id</th>
<th>Kategori PMW</th>
<th>Deskripsi</th>
<th>Jumlah Komponen</th>
<th>Aksi</th>
</tr>
</thead>
<tbody>
</tbody>
</table>
</div>
</div>
</div>
</div> <!-- end col -->
</div> <!-- end row -->
@endsection
@section('js')
......
......@@ -60,24 +60,24 @@
</div>
<br>
{!! csrf_field() !!}
<table id="example" class="table table-bordered dt-responsive wrap" style="border-collapse: collapse; border-spacing: 0; width: 100%;">
<thead>
<tr>
<th>No</th>
<th>Kode Kelompok</th>
<th>Ketua</th>
<th>NIM</th>
<th>Dosen Pembimbing</th>
<th>NIDN</th>
<th>Status</th>
<th>Aksi</th>
</tr>
</thead>
<tbody>
</tbody>
</table>
<div class="table-responsive">
<table id="example" class="table table-bordered dt-responsive wrap" style="border-collapse: collapse; border-spacing: 0; width: 100%;">
<thead>
<tr>
<th>No</th>
<th>Kode Kelompok</th>
<th>Ketua</th>
<th>NIM</th>
<th>Dosen Pembimbing</th>
<th>NIDN</th>
<th>Status</th>
<th>Aksi</th>
</tr>
</thead>
<tbody>
</tbody>
</table>
</div>
</div>
</div>
</div> <!-- end col -->
......@@ -91,19 +91,21 @@
<button type="button" class="btn-close" data-bs-dismiss="modal"></button>
</div>
<div class="modal-body">
<table class="w-100" id="tblempinfo">
<thead>
<tr>
<th>No</th>
<th>Nama</th>
<th>NIM</th>
<th>Fakultas</th>
<th>Program Studi</th>
<th>Keterangan</th>
</tr>
</thead>
<tbody></tbody>
</table>
<div class="table-responsive">
<table class="w-100" id="tblempinfo">
<thead>
<tr>
<th>No</th>
<th>Nama</th>
<th>NIM</th>
<th>Fakultas</th>
<th>Program Studi</th>
<th>Keterangan</th>
</tr>
</thead>
<tbody></tbody>
</table>
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-danger" data-bs-dismiss="modal">Close</button>
......@@ -115,7 +117,6 @@
@section('js')
<script>
$("#reqStatus, #reqTahun").select2({
placeholder: "Semua",
allowClear: true
......
......@@ -60,14 +60,11 @@
</div>
</div> <!-- end col -->
</div> <!-- end row -->
@endsection
@section('js')
<script src="{{ asset('theme/libs/tinymce/tinymce.min.js') }}"></script>
<script src="{{ asset('theme/js/pages/form-editor.init.js') }}"></script>
<script>
$(function(){
$('#input-file').change(function(){
......
......@@ -29,8 +29,6 @@
</div>
<!-- end page title -->
<div class="row">
<div class="col-12">
<div class="card">
......@@ -78,24 +76,24 @@
</div>
</div>
<br>
<table id="example" class="table table-bordered dt-responsive wrap" style="border-collapse: collapse; border-spacing: 0; width: 100%;">
<thead>
<tr>
<th>No</th>
<th>Kode Kelompok</th>
<th>Identitas Ketua</th>
<th>Identitas Dosen Pembimbing</th>
<th>Kategori PMW</th>
<th>Judul Proposal</th>
<th>Status</th>
<th>Aksi</th>
</tr>
</thead>
<tbody>
</tbody>
</table>
<div class="table-responsive">
<table id="example" class="table table-bordered dt-responsive wrap" style="border-collapse: collapse; border-spacing: 0; width: 100%;">
<thead>
<tr>
<th>No</th>
<th>Kode Kelompok</th>
<th>Identitas Ketua</th>
<th>Identitas Dosen Pembimbing</th>
<th>Kategori PMW</th>
<th>Judul Proposal</th>
<th>Status</th>
<th>Aksi</th>
</tr>
</thead>
<tbody>
</tbody>
</table>
</div>
</div>
</div>
</div> <!-- end col -->
......@@ -104,7 +102,6 @@
@section('js')
<script>
$("#reqJenisPkm, #reqStatus, #reqTahun").select2({
placeholder: "Semua",
allowClear: true
......
......@@ -33,8 +33,6 @@
</div>
<!-- end page title -->
<div class="row">
<div class="col-12">
<div class="card">
......@@ -56,23 +54,23 @@
</div>
</div>
<br>
<table id="example" class="table table-bordered dt-responsive nowrap" style="border-collapse: collapse; border-spacing: 0; width: 100%;">
<thead>
<tr>
<th>id</th>
<th>Nama Reviewer</th>
<th>NIDN</th>
<th>Fakultas</th>
<th>Jumlah Yang Harus direview</th>
<th>Jumlah Yang Sudah direview</th>
<th>Aksi</th>
</tr>
</thead>
<tbody>
</tbody>
</table>
<div class="table-responsive">
<table id="example" class="table table-bordered dt-responsive nowrap" style="border-collapse: collapse; border-spacing: 0; width: 100%;">
<thead>
<tr>
<th>id</th>
<th>Nama Reviewer</th>
<th>NIDN</th>
<th>Fakultas</th>
<th>Jumlah Yang Harus direview</th>
<th>Jumlah Yang Sudah direview</th>
<th>Aksi</th>
</tr>
</thead>
<tbody>
</tbody>
</table>
</div>
</div>
</div>
</div> <!-- end col -->
......@@ -99,18 +97,20 @@
</select>
</div>
</div><br>
<table id="example1" class="table table-bordered dt-responsive wrap" style="border-collapse: collapse; border-spacing: 0; width: 100%;">
<thead>
<tr>
<th>Nama Reviewer</th>
<th>NIDN</th>
<th>Fakultas</th>
<th>Prodi</th>
<th>Tipe</th>
<th>Aksi</th>
</tr>
</thead>
</table>
<div class="table-responsive">
<table id="example1" class="table table-bordered dt-responsive wrap" style="border-collapse: collapse; border-spacing: 0; width: 100%;">
<thead>
<tr>
<th>Nama Reviewer</th>
<th>NIDN</th>
<th>Fakultas</th>
<th>Prodi</th>
<th>Tipe</th>
<th>Aksi</th>
</tr>
</thead>
</table>
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Close</button>
......
......@@ -37,8 +37,6 @@
</div>
<!-- end page title -->
<div class="row">
<div class="col-12">
<div class="card">
......@@ -60,23 +58,23 @@
</div>
</div>
<br>
<table id="example" class="table table-bordered dt-responsive nowrap" style="border-collapse: collapse; border-spacing: 0; width: 100%;">
<thead>
<tr>
<th>id</th>
<th>Nama Reviewer</th>
<th>NIDN</th>
<th>Fakultas</th>
<th>Jumlah Yang Harus direview</th>
<th>Jumlah Yang Sudah direview</th>
<th>Aksi</th>
</tr>
</thead>
<tbody>
</tbody>
</table>
<div class="table-responsive">
<table id="example" class="table table-bordered dt-responsive nowrap" style="border-collapse: collapse; border-spacing: 0; width: 100%;">
<thead>
<tr>
<th>id</th>
<th>Nama Reviewer</th>
<th>NIDN</th>
<th>Fakultas</th>
<th>Jumlah Yang Harus direview</th>
<th>Jumlah Yang Sudah direview</th>
<th>Aksi</th>
</tr>
</thead>
<tbody>
</tbody>
</table>
</div>
</div>
</div>
</div> <!-- end col -->
......@@ -93,17 +91,19 @@
aria-label="Close"></button>
</div>
<div class="modal-body" style="min-height: 500px !important">
<table id="example1" class="table table-bordered dt-responsive wrap" style="border-collapse: collapse; border-spacing: 0; width: 100%;">
<thead>
<tr>
<th>Nama Reviewer</th>
<th>NIDN</th>
<th>Fakultas</th>
<th>Prodi</th>
<th>Aksi</th>
</tr>
</thead>
</table>
<div class="table-responsive">
<table id="example1" class="table table-bordered dt-responsive wrap" style="border-collapse: collapse; border-spacing: 0; width: 100%;">
<thead>
<tr>
<th>Nama Reviewer</th>
<th>NIDN</th>
<th>Fakultas</th>
<th>Prodi</th>
<th>Aksi</th>
</tr>
</thead>
</table>
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Close</button>
......
......@@ -34,74 +34,72 @@
<div class="col-12">
<div class="card">
<div class="card-body">
<table id="datatable" class="table table-bordered dt-responsive wrap" style="border-collapse: collapse; border-spacing: 0; width: 100%;">
<thead>
<tr>
<th>No.</th>
<th>Nama</th>
<th>Email</th>
<th>Roles</th>
</tr>
</thead>
<tbody>
@foreach ($users as $item)
@php
$userToken = Str::random(30);
@endphp
<div class="table-responsive">
<table id="datatable" class="table table-bordered dt-responsive wrap" style="border-collapse: collapse; border-spacing: 0; width: 100%;">
<thead>
<tr>
<td>{{ $loop->iteration }}</td>
<td>
{{ $item->name }} <br>
{{ $item->rBiodata->noidentitas }}
</td>
<td>
{{ $item->email }}
</td>
<td>
@foreach ($item->rolesCustom as $role)
<div id="{{ $userToken }}">
<div class="row mb-2">
<div class="col-md-4">
{{ $role->name }}
</div>
<div class="col-md-6">
<button type="button" onclick="removeRole('{{ encrypt($item->id) }}', '{{ encrypt($role->id) }}', this)" style="padding: 8px" class="btn btn-sm btn-danger"><i class="fa fa-times"></i></button>
<th>No.</th>
<th>Nama</th>
<th>Email</th>
<th>Roles</th>
</tr>
</thead>
<tbody>
@foreach ($users as $item)
@php
$userToken = Str::random(30);
@endphp
<tr>
<td>{{ $loop->iteration }}</td>
<td>
{{ $item->name }} <br>
{{ $item->rBiodata->noidentitas }}
</td>
<td>
{{ $item->email }}
</td>
<td>
@foreach ($item->rolesCustom as $role)
<div id="{{ $userToken }}">
<div class="row mb-2">
<div class="col-md-4">
{{ $role->name }}
</div>
<div class="col-md-6">
<button type="button" onclick="removeRole('{{ encrypt($item->id) }}', '{{ encrypt($role->id) }}', this)" style="padding: 8px" class="btn btn-sm btn-danger"><i class="fa fa-times"></i></button>
</div>
</div>
</div>
</div>
@endforeach
<div class="row">
<div class="col-md-7">
<div class="input-group mb-3">
<select class="form-select" name="" id="select_{{ $userToken }}">
@foreach ($roles as $role)
<option value="{{ encrypt($role->id) }}">{{ $role->name }}</option>
@endforeach
</select>
<div class="input-group-append">
<button style="padding: 8px" onclick="addRole('{{ $userToken }}', '{{ encrypt($item->id) }}')" class="btn btn-sm btn-success" type="button">Tambah</button>
@endforeach
<div class="row">
<div class="col-md-7">
<div class="input-group mb-3">
<select class="form-select" name="" id="select_{{ $userToken }}">
@foreach ($roles as $role)
<option value="{{ encrypt($role->id) }}">{{ $role->name }}</option>
@endforeach
</select>
<div class="input-group-append">
<button style="padding: 8px" onclick="addRole('{{ $userToken }}', '{{ encrypt($item->id) }}')" class="btn btn-sm btn-success" type="button">Tambah</button>
</div>
</div>
</div>
</div>
</div>
</td>
</tr>
@endforeach
</tbody>
</table>
</td>
</tr>
@endforeach
</tbody>
</table>
</div>
</div>
</div>
</div> <!-- end col -->
</div> <!-- end row -->
@endsection
@section('js')
<script src="{{ asset('theme/js/pages/datatables.init.js') }}"></script>
<script>
$("body").on("click", ".delete", function (e) {
e.preventDefault();
var id = $(this).data('id');
......
......@@ -93,7 +93,6 @@
</div>
</div> <!-- end col -->
</div> <!-- end row -->
@endsection
@section('js')
......
......@@ -101,94 +101,93 @@
@section('js')
<script src="{{ asset('theme/js/pages/jquery.validate.min.js') }}"></script>
<script>
$('.check').on('focusout', function() {
var info = $(this).data('info');
if(info == 'email')
var url = "{{url('/operator/checkemail')}}";
else if(info == 'nidn')
var url = "{{url('/operator/checknidn')}}";
var value = $(this).val();
var _token = $('input[name="_token"]').val();
$.ajax({
url: url,
method:"POST",
data:{value:value, _token:_token},
success: function(data) {
if(data == '1') {
$('#email').focus();
$('#email').val('');
Swal.fire({
icon: 'error',
text: "Email telah terdaftar!",
});
// return false;
}
else if(data == '2') {
$('#nidn').focus();
$('#nidn').val('');
Swal.fire({
icon: 'error',
text: "NIDN telah terdaftar!",
});
// return false;
$('.check').on('focusout', function() {
var info = $(this).data('info');
if(info == 'email')
var url = "{{url('/operator/checkemail')}}";
else if(info == 'nidn')
var url = "{{url('/operator/checknidn')}}";
var value = $(this).val();
var _token = $('input[name="_token"]').val();
$.ajax({
url: url,
method:"POST",
data:{value:value, _token:_token},
success: function(data) {
if(data == '1') {
$('#email').focus();
$('#email').val('');
Swal.fire({
icon: 'error',
text: "Email telah terdaftar!",
});
// return false;
}
else if(data == '2') {
$('#nidn').focus();
$('#nidn').val('');
Swal.fire({
icon: 'error',
text: "NIDN telah terdaftar!",
});
// return false;
}
},
error: function(data){
//error
}
},
error: function(data){
//error
}
});
});
});
$(document).ready(function() {
$(function() {
// [ Initialize validation ]
$('#ff').validate({
ignore: '.ignore, .select2-input',
focusInvalid: false,
rules: {
'email': {
required: true,
email: true
},
'password': {
required: true,
minlength: 6,
maxlength: 20
$(document).ready(function() {
$(function() {
// [ Initialize validation ]
$('#ff').validate({
ignore: '.ignore, .select2-input',
focusInvalid: false,
rules: {
'email': {
required: true,
email: true
},
'password': {
required: true,
minlength: 6,
maxlength: 20
},
},
},
// Errors //
// Errors //
errorPlacement: function errorPlacement(error, element) {
var $parent = $(element).parents('.input');
errorPlacement: function errorPlacement(error, element) {
var $parent = $(element).parents('.input');
// Do not duplicate errors
if ($parent.find('.jquery-validation-error').length) {
return;
}
// Do not duplicate errors
if ($parent.find('.jquery-validation-error').length) {
return;
}
$parent.append(
error.addClass('jquery-validation-error small form-text invalid-feedback')
);
},
highlight: function(element) {
var $el = $(element);
var $parent = $el.parents('.form-group');
$parent.append(
error.addClass('jquery-validation-error small form-text invalid-feedback')
);
},
highlight: function(element) {
var $el = $(element);
var $parent = $el.parents('.form-group');
$el.addClass('is-invalid');
$el.addClass('is-invalid');
// Select2 and Tagsinput
if ($el.hasClass('select2-hidden-accessible') || $el.attr('data-role') === 'tagsinput') {
$el.parent().addClass('is-invalid');
// Select2 and Tagsinput
if ($el.hasClass('select2-hidden-accessible') || $el.attr('data-role') === 'tagsinput') {
$el.parent().addClass('is-invalid');
}
},
unhighlight: function(element) {
$(element).parents('.form-group').find('.is-invalid').removeClass('is-invalid');
}
},
unhighlight: function(element) {
$(element).parents('.form-group').find('.is-invalid').removeClass('is-invalid');
}
});
});
});
});
</script>
@endsection
......@@ -34,42 +34,41 @@
<div class="col-12">
<div class="card">
<div class="card-body">
<table id="datatable" class="table table-bordered dt-responsive wrap" style="border-collapse: collapse; border-spacing: 0; width: 100%;">
<thead>
<tr>
<th>No.</th>
{{-- <th>NIDN</th> --}}
<th>Nama</th>
<th>Akun</th>
<th>Aksi</th>
</tr>
</thead>
<tbody>
@foreach ($users as $item)
<div class="table-responsive">
<table id="datatable" class="table table-bordered dt-responsive wrap" style="border-collapse: collapse; border-spacing: 0; width: 100%;">
<thead>
<tr>
<td>{{ $loop->iteration }}</td>
{{-- <td>{{ $item->rBiodata->noidentitas }}</td> --}}
<td>{{ $item->name }}</td>
<td>
Email : <b>{{ $item->email }}</b><br>
Password : <b>{{ $item->password_decrypt }}</b>
</td>
<td>
<a href="{{ URL::to('operator/user-external/'.Crypt::encrypt($item->id).'/edit') }}" class="btn btn-icon-sm btn-primary"><i class="fas fa-edit"></i></a>
<a href="#!" class="btn btn-icon-sm btn-danger" onclick="confirmDelete('{{ Crypt::encrypt($item->id) }}')"><i class="fas fa-trash"></i></a>
</td>
<th>No.</th>
{{-- <th>NIDN</th> --}}
<th>Nama</th>
<th>Akun</th>
<th>Aksi</th>
</tr>
@endforeach
</tbody>
</table>
</thead>
<tbody>
@foreach ($users as $item)
<tr>
<td>{{ $loop->iteration }}</td>
{{-- <td>{{ $item->rBiodata->noidentitas }}</td> --}}
<td>{{ $item->name }}</td>
<td>
Email : <b>{{ $item->email }}</b><br>
Password : <b>{{ $item->password_decrypt }}</b>
</td>
<td>
<a href="{{ URL::to('operator/user-external/'.Crypt::encrypt($item->id).'/edit') }}" class="btn btn-icon-sm btn-primary"><i class="fas fa-edit"></i></a>
<a href="#!" class="btn btn-icon-sm btn-danger" onclick="confirmDelete('{{ Crypt::encrypt($item->id) }}')"><i class="fas fa-trash"></i></a>
</td>
</tr>
@endforeach
</tbody>
</table>
</div>
</div>
</div>
</div> <!-- end col -->
</div> <!-- end row -->
@endsection
@section('js')
......
......@@ -28,31 +28,31 @@
</div>
<!-- end page title -->
<div class="row">
<div class="col-12">
<div class="card">
<div class="card-body">
@if((($jadwal->tanggal_mulai <= Carbon\Carbon::now()) && ($jadwal->tanggal_selesai >= Carbon\Carbon::now())) || $jadwal->tanggal_mulai <= Carbon\Carbon::now())
<table id="example" class="table table-bordered dt-responsive wrap" style="border-collapse: collapse; border-spacing: 0; width: 100%;">
<thead>
<tr>
<th>id</th>
<th>Kode Kelompok</th>
<th>Identitas Ketua</th>
<th>Identitas <br>Dosen Pembimbing</th>
<th>Jenis <br>PMW</th>
<th>Judul Proposal</th>
<th>Catatan Harian <br>(Logbook)</th>
<th>Laporan <br>Kemajuan</th>
<th>Laporan <br>Luaran</th>
<th>Nilai</th>
</tr>
</thead>
<tbody>
</tbody>
</table>
<div class="table-responsive">
<table id="example" class="table table-bordered dt-responsive wrap" style="border-collapse: collapse; border-spacing: 0; width: 100%;">
<thead>
<tr>
<th>id</th>
<th>Kode Kelompok</th>
<th>Identitas Ketua</th>
<th>Identitas <br>Dosen Pembimbing</th>
<th>Jenis <br>PMW</th>
<th>Judul Proposal</th>
<th>Catatan Harian <br>(Logbook)</th>
<th>Laporan <br>Kemajuan</th>
<th>Laporan <br>Luaran</th>
<th>Nilai</th>
</tr>
</thead>
<tbody>
</tbody>
</table>
</div>
@else
<div class="alert alert-success alert-dismissible fade show" role="alert">
<strong>Informasi!</strong> {!! $title !!} dilaksanakan pada : <strong>Tanggal {{ Carbon\Carbon::parse($jadwal->tanggal_mulai)->isoFormat('D MMMM Y HH:mm:ss'); }}</strong> sampai dengan <strong>Tanggal {{ Carbon\Carbon::parse($jadwal->tanggal_selesai)->isoFormat('D MMMM Y HH:mm:ss'); }}.</strong>
......@@ -62,7 +62,6 @@
</div>
</div> <!-- end col -->
</div> <!-- end row -->
@endsection
@section('js')
......@@ -148,7 +147,5 @@
})
}
</script>
@endsection
......@@ -47,7 +47,7 @@
</div>
<div class="row mb-3">
<label for="kode" class="col-sm-2 col-form-label">Komponen Penilaian : </label>
<div class="col-sm-10">
<div class="col-sm-10 table-responsive">
<table class="table table-striped">
<thead>
<tr style="text-align: center">
......@@ -121,11 +121,9 @@
</div>
</div> <!-- end col -->
</div> <!-- end row -->
@endsection
@section('js')
<script>
$(function(){
$('#input-file').change(function(){
......@@ -155,5 +153,4 @@
$('#varTotalNilai').text(sum);
}
</script>
@endsection
......@@ -73,28 +73,29 @@
</div>
</div>
<br>
<table id="example" class="table table-bordered dt-responsive wrap" style="border-collapse: collapse; border-spacing: 0; width: 100%;">
<thead>
<tr>
<th>id</th>
<th>Kode Kelompok</th>
<th>Kategori PMW</th>
<th>Judul Proposal</th>
<th>Status</th>
<th>Proposal</th>
<th>Administrasi</th>
<th>Nilai Subtansi Proposal</th>
</tr>
</thead>
<tbody>
</tbody>
</table>
<div class="table-responsive">
<table id="example" class="table table-bordered dt-responsive wrap" style="border-collapse: collapse; border-spacing: 0; width: 100%;">
<thead>
<tr>
<th>id</th>
<th>Kode Kelompok</th>
<th>Kategori PMW</th>
<th>Judul Proposal</th>
<th>Status</th>
<th>Proposal</th>
{{-- <th>Video Produk</th> --}}
<th>Administrasi</th>
<th>Nilai Subtansi Proposal</th>
</tr>
</thead>
<tbody>
</tbody>
</table>
</div>
</div>
</div>
</div> <!-- end col -->
</div> <!-- end row -->
@endsection
@section('js')
......@@ -120,6 +121,7 @@
{ data: 'judul' },
{ data: 'status' },
{ data: 'proposal' },
// { data: 'video' },
{ data: 'administrasi' },
{ data: 'aksi' },
],
......@@ -218,7 +220,5 @@
})
}
</script>
@endsection
......@@ -72,7 +72,7 @@
</div>
<div class="row mb-3">
<label for="kode" class="col-sm-2 col-form-label">Komponen Penilaian : </label>
<div class="col-sm-10">
<div class="col-sm-10 table-responsive">
<table class="table table-striped">
<thead>
<tr style="text-align: center">
......@@ -142,14 +142,12 @@
</div>
</div> <!-- end col -->
</div> <!-- end row -->
@endsection
@section('js')
<script>
// sum();
$(function(){
$('#input-file').change(function(){
var input = this;
......@@ -178,5 +176,4 @@
$('#varTotalNilai').text(sum);
}
</script>
@endsection
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