Commit f5dc457a by Alfiro Pratama

Hide Nilai Seleksi Internal & Fix Table Responsive

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