tambah, edit, hapus admin; tampil hasil user+dwld
This commit is contained in:
parent
683d315d7a
commit
0fe205a311
|
@ -16,7 +16,7 @@ public function index()
|
|||
{
|
||||
$results = Hasil::with('user')->with('periode')->get();
|
||||
$results = $results->map(function ($result) {
|
||||
$result->formatted_created_at = Carbon::parse($result->created_at)->format('M d, Y');
|
||||
$result->formatted_created_at = Carbon::parse($result->created_at)->format('d M Y');
|
||||
if ($result->periode->semester == 1) {
|
||||
$result->periode->semester = 'Ganjil';
|
||||
} else {
|
||||
|
@ -33,7 +33,7 @@ public function index()
|
|||
public function show($id)
|
||||
{
|
||||
$result = Hasil::with('user')->findOrFail($id);
|
||||
$result->formatted_created_at = Carbon::parse($result->created_at)->format('M d, Y');
|
||||
$result->formatted_created_at = Carbon::parse($result->created_at)->format('d M Y');
|
||||
return view('admin_backend.admin_pdf_result', compact('result'));
|
||||
}
|
||||
public function cetak_pdf($id)
|
||||
|
|
|
@ -40,30 +40,37 @@ protected function validator(array $data)
|
|||
* @param array $data
|
||||
* @return \App\Models\User
|
||||
*/
|
||||
protected function create(array $data)
|
||||
|
||||
public function store(Request $request)
|
||||
{
|
||||
return User::create([
|
||||
'nama_lengkap' => $data['nama_lengkap'],
|
||||
'nim' => $data['nim'],
|
||||
'email' => $data['email'],
|
||||
'password' => Hash::make($data['password']),
|
||||
User::create([
|
||||
'nama_lengkap' =>$request->nama_lengkap,
|
||||
'nim' => $request->nim,
|
||||
'email' => $request->email,
|
||||
'password' => Hash::make($request->password),
|
||||
'kelas_user' => '2',
|
||||
]);
|
||||
return redirect()->route('adminListAdmin.index')->with('success', 'Admin baru berhasil dibuat');
|
||||
}
|
||||
|
||||
// public function store(Request $request)
|
||||
// {
|
||||
// $user = new User();
|
||||
// $user->nama_lengkap = $request->input('nama_lengkap');
|
||||
// $user->nim = $request->input('nim');
|
||||
// $user->semester = $request->input('semester');
|
||||
// $user->angkatan = $request->input('angkatan');
|
||||
// $user->email = $request->input('email');
|
||||
// $user->password = Hash::make($request->input('email'));
|
||||
// $user->kelas_user = '2';
|
||||
// // Setel atribut-atribut lain yang perlu diisi
|
||||
// $user->save();
|
||||
|
||||
// return response()->json(['message' => 'User ditambahkan'], 201);
|
||||
// }
|
||||
public function update(Request $request, $id)
|
||||
{
|
||||
$nama_lengkap = $request->nama_lengkap;
|
||||
$nim = $request->nim;
|
||||
$email = $request->email;
|
||||
$user = User::findOrFail($id);
|
||||
$user->nama_lengkap = $nama_lengkap;
|
||||
$user->nim = $nim;
|
||||
$user->email = $email;
|
||||
$user->update();
|
||||
return redirect()->route('adminListAdmin.index')->with('success', 'Admin tersebut telah diubah');
|
||||
}
|
||||
|
||||
|
||||
public function destroy($id)
|
||||
{
|
||||
$user = User::findOrFail($id);
|
||||
$user->delete();
|
||||
return redirect()->route('adminListAdmin.index')->with('success', 'Admin tersebut telah dihapus');
|
||||
}
|
||||
}
|
||||
|
|
|
@ -7,6 +7,9 @@
|
|||
use App\Models\Hasil;
|
||||
use App\Models\User;
|
||||
use App\Models\PilihPeriode;
|
||||
use Barryvdh\DomPDF\Facade\Pdf as FacadePdf;
|
||||
use Barryvdh\DomPDF\PDF as DomPDFPDF;
|
||||
use Carbon\Carbon;
|
||||
|
||||
use Illuminate\Support\Facades\DB;
|
||||
|
||||
|
@ -27,7 +30,26 @@ public function index()
|
|||
$idUser = auth()->user()->id;
|
||||
$historiPengisian = Hasil::where('id_user', $idUser)->where('id_periode', $checkPeriod->id_periode)->get();
|
||||
|
||||
return view('backend.dashboard', compact('kmCounts', 'rmCounts', 'historiPengisian'));
|
||||
$results = Hasil::with('user')->with('periode')->get();
|
||||
$results = $results->map(function ($result) {
|
||||
$result->formatted_created_at = Carbon::parse($result->created_at)->format('d M Y');
|
||||
if ($result->periode->semester == 1) {
|
||||
$result->periode->semester = 'Ganjil';
|
||||
} else {
|
||||
$result->periode->semester = 'Genap';
|
||||
}
|
||||
return $result;
|
||||
});
|
||||
return view('backend.dashboard', compact('kmCounts', 'rmCounts', 'historiPengisian', 'results'));
|
||||
}
|
||||
|
||||
public function show($id)
|
||||
{
|
||||
$result = Hasil::with('user')->findOrFail($id);
|
||||
$result->formatted_created_at = Carbon::parse($result->created_at)->format('d M Y');
|
||||
return view('backend.user_pdf_result', compact('result'));
|
||||
}
|
||||
public function cetak_pdf($id)
|
||||
{
|
||||
}
|
||||
}
|
||||
|
|
|
@ -20,8 +20,8 @@
|
|||
<!-- DataTales Example -->
|
||||
<div class="card shadow mb-4">
|
||||
<div class="card-header py-3">
|
||||
<h6 class="m-0 font-weight-bold text-primary">List Admin</h6>
|
||||
<button class="btn btn-primary ellipsis right " id="addUserButton">Tambah Admin</button>
|
||||
<h6 class="m-0 font-weight-bold text-primary">List Admin</h6><br/>
|
||||
<button class="btn btn-primary ellipsis" data-bs-toggle="modal" data-bs-target="#exampleModal">+ Tambah Admin</button>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<div class="table-responsive">
|
||||
|
@ -31,8 +31,6 @@
|
|||
<th>No</th>
|
||||
<th>Nama Lengkap</th>
|
||||
<th>NIP</th>
|
||||
<!-- <th>Semester</th>
|
||||
<th>Angkatan</th> -->
|
||||
<th>E-Mail</th>
|
||||
<th>Role</th>
|
||||
<th>Aksi</th>
|
||||
|
@ -53,8 +51,15 @@
|
|||
} ?>
|
||||
</td>
|
||||
<td>
|
||||
<a href="Edit">Edit</a>
|
||||
<a href="Hapus">Hapus</a>
|
||||
<button class="btn btn-outline-dark btn-sm edit-button" data-bs-toggle="modal" data-bs-target="#editModal" data-user='{{ json_encode($user) }}'>
|
||||
<i class="bi bi-pencil"></i> Edit
|
||||
</button>
|
||||
<span class="p-1"></span>
|
||||
<form action="{{ route('adminListAdmin.destroy', [$user->id]) }}" class="d-inline delete-form" method="POST">
|
||||
@csrf
|
||||
@method('DELETE')
|
||||
<button class="btn btn-outline-danger btn-sm mt-1 mt-sm-0"><i class="bi bi-trash"></i>Hapus</button>
|
||||
</form>
|
||||
</td>
|
||||
<!-- Tambahkan kolom-kolom lain yang ingin Anda tampilkan -->
|
||||
</tr>
|
||||
|
@ -69,49 +74,79 @@
|
|||
</div>
|
||||
</section>
|
||||
|
||||
<script src="https://cdn.jsdelivr.net/npm/sweetalert2@11.0.18/dist/sweetalert2.all.min.js"></script>
|
||||
<script>
|
||||
// Script untuk menampilkan kotak dialog ketika tombol diklik
|
||||
document.getElementById('addUserButton').addEventListener('click', () => {
|
||||
Swal.fire({
|
||||
title: 'Tambah Admin Baru',
|
||||
html:
|
||||
'<input id="nama_lengkap" class="swal2-input" placeholder="Nama Lengkap">' +
|
||||
'<input id="nim" class="swal2-input" placeholder="NIP">' +
|
||||
'<input id="email" class="swal2-input" placeholder="Email">'+
|
||||
'<input id="password" class="swal2-input" placeholder="Password">',
|
||||
focusConfirm: false,
|
||||
preConfirm: () => {
|
||||
const nama_lengkap = Swal.getPopup().querySelector('#nama_lengkap').value;
|
||||
const nim = Swal.getPopup().querySelector('#nim').value;
|
||||
const email = Swal.getPopup().querySelector('#email').value;
|
||||
const password = Swal.getPopup().querySelector('#password').value;
|
||||
return { nama_lengkap: nama_lengkap, nim:nim, email: email, password:password };
|
||||
}
|
||||
}).then((result) => {
|
||||
if (result.isConfirmed && result.value.nama_lengkap && result.value.nim && result.value.email && result.value.password) {
|
||||
// Kirim data user ke server menggunakan AJAX atau formulir biasa
|
||||
// Contoh: Anda dapat menggunakan Axios untuk AJAX
|
||||
axios.post('/listadmin', {
|
||||
nama_lengkap: result.value.nama_lengkap,
|
||||
nip: result.value.nim,
|
||||
email: result.value.email,
|
||||
password: result.value.password,
|
||||
kelas_user: '2',
|
||||
_token: '{{ csrf_token() }}'
|
||||
})
|
||||
.then(() => {
|
||||
location.reload(); // Muat ulang halaman setelah menambahkan user
|
||||
})
|
||||
.catch((error) => {
|
||||
console.error(error);
|
||||
Swal.fire('Error', 'Terjadi kesalahan saat menambahkan admin.', 'error');
|
||||
});
|
||||
}
|
||||
});
|
||||
});
|
||||
</script>
|
||||
{{--! start modal create --}}
|
||||
<form action="{{ route('adminListAdmin.store') }}" method="POST" class="needs-validation" novalidate>
|
||||
@csrf
|
||||
<div class="modal fade" id="exampleModal" tabindex="-1" aria-labelledby="exampleModalLabel" aria-hidden="true">
|
||||
<div class="modal-dialog modal-dialog-centered">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<h5 class="modal-title" id="exampleModalLabel">Tambah Admin</h5>
|
||||
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<div class="form-group mb-4">
|
||||
<label class="col-form-label" for="create-nama">Nama Admin</label>
|
||||
<input type="text" class="form-control" id="create-nama" name="nama_lengkap" placeholder="Nama Lengkap">
|
||||
</div>
|
||||
<div class="form-group mb-4">
|
||||
<label class="col-form-label" for="create-nim">NIP</label>
|
||||
<input type="text" class="form-control" id="create-nim" name="nim" placeholder="NIP">
|
||||
</div>
|
||||
<div class="form-group mb-4">
|
||||
<label class="col-form-label" for="create-email">E-mail</label>
|
||||
<input type="email" class="form-control" id="create-email" name="email" placeholder="E-Mail">
|
||||
</div>
|
||||
<div class="form-group mb-4">
|
||||
<label class="col-form-label" for="create-password">Password</label>
|
||||
<input type="password" class="form-control" id="create-password" name="password" placeholder="password">
|
||||
</div>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Tutup</button>
|
||||
<button type="submit" class="btn btn-primary">Simpan</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
{{--! end modal create --}}
|
||||
|
||||
{{--! start edit modal --}}
|
||||
<form method="POST" id="edit-form" action="{{ route('adminListAdmin.update', [$user->id]) }}" class="needs-validation" novalidate>
|
||||
@csrf
|
||||
@method('PUT')
|
||||
<div class="modal fade" id="editModal" tabindex="-1" aria-labelledby="exampleModalLabel" aria-hidden="true">
|
||||
<div class="modal-dialog" role="document">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<h5 class="modal-title" id="exampleModalLabel">Edit Admin</h5>
|
||||
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<div class="form-group mb-4">
|
||||
<label class="col-form-label" for="edit-nama">Nama Admin</label>
|
||||
<input type="text" class="form-control" id="edit-nama" name="nama_lengkap" placeholder="Nama Lengkap">
|
||||
</div>
|
||||
<div class="form-group mb-4">
|
||||
<label class="col-form-label" for="edit-nim">NIP</label>
|
||||
<input type="text" class="form-control" id="edit-nim" name="nim" placeholder="NIP">
|
||||
</div>
|
||||
<div class="form-group mb-4">
|
||||
<label class="col-form-label" for="edit-email">E-mail</label>
|
||||
<input type="email" class="form-control" id="edit-email" name="email" placeholder="E-Mail">
|
||||
</div>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Tutup</button>
|
||||
<button type="submit" class="btn btn-primary">Simpan</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
{{--! end edit modal --}}
|
||||
</main><!-- End #main -->
|
||||
@endsection
|
||||
@section('script')
|
||||
|
@ -121,5 +156,36 @@
|
|||
$("#users-nav").addClass("show");
|
||||
$("#sidebar-item-listadmin").addClass("active");
|
||||
});
|
||||
|
||||
// edit periode
|
||||
$('.edit-button').click(function () {
|
||||
let user = $(this).data('user');
|
||||
$('#edit-nama').val(user.nama_lengkap);
|
||||
$('#edit-nim').val(user.nim);
|
||||
$('#edit-email').val(user.email);
|
||||
let formAction = "{{ route('adminListAdmin.update', [$user->id]) }}";
|
||||
$('#edit-form').attr('action', formAction);
|
||||
});
|
||||
|
||||
// hapus
|
||||
$('.delete-form').click(function(event){
|
||||
event.preventDefault();
|
||||
Swal.fire({
|
||||
title: 'Yakin untuk dihapus?',
|
||||
text: "Kamu tidak akan bisa mengembalikan ini!",
|
||||
icon: 'warning',
|
||||
showCancelButton: true,
|
||||
confirmButtonColor: '#dc3545',
|
||||
cancelButtonColor: '#6c757d',
|
||||
confirmButtonText: 'Ya, hapus ini!',
|
||||
cancelButtonText: 'Batalkan',
|
||||
reverseButtons: true
|
||||
}).then((result) => {
|
||||
if (result.isConfirmed) {
|
||||
$(this).submit();
|
||||
}
|
||||
})
|
||||
});
|
||||
</script>
|
||||
@endsection
|
||||
|
||||
|
|
|
@ -24,6 +24,11 @@
|
|||
<body class="bg-white">
|
||||
|
||||
<div class="container py-5">
|
||||
<div class="row pb-1">
|
||||
<div class="col-4 col-sm-3 col-md-2" style="font-weight: bold;">Tanggal Pengisian</div>
|
||||
<div class="col-1" style="font-weight: bold">:</div>
|
||||
<div class="col-7 col-sm-8 col-md-9">{{ $result->formatted_created_at }}</div>
|
||||
</div>
|
||||
<div class="row pb-1">
|
||||
<div class="col-4 col-sm-3 col-md-2" style="font-weight: bold;">Nama</div>
|
||||
<div class="col-1" style="font-weight: bold">:</div>
|
||||
|
|
|
@ -50,86 +50,6 @@
|
|||
<i class="bi bi-list toggle-sidebar-btn"></i>
|
||||
</div><!-- End Logo -->
|
||||
|
||||
<nav class="header-nav ms-auto">
|
||||
<ul class="d-flex align-items-center">
|
||||
|
||||
<li class="nav-item dropdown">
|
||||
|
||||
<a class="nav-link nav-icon" href="#" data-bs-toggle="dropdown">
|
||||
<i class="bi bi-bell"></i>
|
||||
<span class="badge bg-primary badge-number">4</span>
|
||||
</a><!-- End Notification Icon -->
|
||||
|
||||
<ul class="dropdown-menu dropdown-menu-end dropdown-menu-arrow notifications">
|
||||
<li class="dropdown-header">
|
||||
You have 4 new notifications
|
||||
<a href="#"><span class="badge rounded-pill bg-primary p-2 ms-2">View all</span></a>
|
||||
</li>
|
||||
<li>
|
||||
<hr class="dropdown-divider">
|
||||
</li>
|
||||
|
||||
<li class="notification-item">
|
||||
<i class="bi bi-exclamation-circle text-warning"></i>
|
||||
<div>
|
||||
<h4>Lorem Ipsum</h4>
|
||||
<p>Quae dolorem earum veritatis oditseno</p>
|
||||
<p>30 min. ago</p>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<hr class="dropdown-divider">
|
||||
</li>
|
||||
|
||||
<li class="notification-item">
|
||||
<i class="bi bi-x-circle text-danger"></i>
|
||||
<div>
|
||||
<h4>Atque rerum nesciunt</h4>
|
||||
<p>Quae dolorem earum veritatis oditseno</p>
|
||||
<p>1 hr. ago</p>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<hr class="dropdown-divider">
|
||||
</li>
|
||||
|
||||
<li class="notification-item">
|
||||
<i class="bi bi-check-circle text-success"></i>
|
||||
<div>
|
||||
<h4>Sit rerum fuga</h4>
|
||||
<p>Quae dolorem earum veritatis oditseno</p>
|
||||
<p>2 hrs. ago</p>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<hr class="dropdown-divider">
|
||||
</li>
|
||||
|
||||
<li class="notification-item">
|
||||
<i class="bi bi-info-circle text-primary"></i>
|
||||
<div>
|
||||
<h4>Dicta reprehenderit</h4>
|
||||
<p>Quae dolorem earum veritatis oditseno</p>
|
||||
<p>4 hrs. ago</p>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<hr class="dropdown-divider">
|
||||
</li>
|
||||
<li class="dropdown-footer">
|
||||
<a href="#">Show all notifications</a>
|
||||
</li>
|
||||
|
||||
</ul><!-- End Notification Dropdown Items -->
|
||||
|
||||
</li><!-- End Notification Nav -->
|
||||
</ul>
|
||||
</nav><!-- End Icons Navigation -->
|
||||
|
||||
</header><!-- End Header -->
|
||||
|
||||
@include('admin_backend/layouts.sidebar')
|
||||
|
|
|
@ -51,7 +51,7 @@
|
|||
<div class="col-xxl-4 col-md-6">
|
||||
<div class="card info-card">
|
||||
<div class="card-body">
|
||||
<h5 class="card-title">Rangkuman</h5>
|
||||
<h5 class="card-title">Rangkuman Hasil</h5>
|
||||
<!-- Tambahkan rangkuman seperti "Low / Medium / High" -->
|
||||
<ul>
|
||||
@foreach ($historiPengisian as $item)
|
||||
|
@ -68,11 +68,38 @@
|
|||
<div class="card">
|
||||
<div class="card-body">
|
||||
<h5 class="card-title">Histori Pengisian Kuesioner</h5>
|
||||
<ul>
|
||||
<!-- <ul>
|
||||
@foreach ($historiPengisian as $item)
|
||||
<li>{{ $item->created_at }} </li>
|
||||
@endforeach
|
||||
</ul>
|
||||
</ul> -->
|
||||
|
||||
<div class="table-responsive">
|
||||
<table class="table">
|
||||
<thead class="table-light">
|
||||
<th>No</th>
|
||||
<th>Tanggal</th>
|
||||
<th>Periode</th>
|
||||
<th>KM</th>
|
||||
<th>RM</th>
|
||||
<th>Aksi</th>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php $i=1;?>
|
||||
@foreach ($results as $result)
|
||||
<tr>
|
||||
<td><?php echo $i;?></td>
|
||||
<td>{{ $result->formatted_created_at }}</td>
|
||||
<td>{{ $result->periode->semester.' '.$result->periode->tahun }}</td>
|
||||
<td>{{ $result->km_class }}</td>
|
||||
<td>{{ $result->rm_class }}</td>
|
||||
<td><a href="{{ route('userResult.show', ['user_result' => $result->id]) }}" class="btn btn-primary btn-sm">Download</a></td>
|
||||
</tr>
|
||||
<?php $i++;?>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div><!-- End Histori Pengisian Kuesioner -->
|
||||
|
|
|
@ -0,0 +1,141 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta content="width=device-width, initial-scale=1.0" name="viewport">
|
||||
|
||||
<title>{{config('app.name')}}</title>
|
||||
<meta content="" name="description">
|
||||
<meta content="" name="keywords">
|
||||
|
||||
<!-- Google Fonts -->
|
||||
<link href="https://fonts.gstatic.com" rel="preconnect">
|
||||
<link href="https://fonts.googleapis.com/css?family=Open+Sans:300,300i,400,400i,600,600i,700,700i|Nunito:300,300i,400,400i,600,600i,700,700i|Poppins:300,300i,400,400i,500,500i,600,600i,700,700i" rel="stylesheet">
|
||||
|
||||
<!-- Vendor CSS Files -->
|
||||
<link href="{{ asset('admin_backend/assets/vendor/bootstrap/css/bootstrap.min.css')}}" rel="stylesheet">
|
||||
|
||||
|
||||
<link href="{{ asset('admin_backend/assets/css/style.css')}}" rel="stylesheet">
|
||||
|
||||
</head>
|
||||
|
||||
<body class="bg-white">
|
||||
|
||||
<div class="container py-5">
|
||||
<div class="row pb-1">
|
||||
<div class="col-4 col-sm-3 col-md-2" style="font-weight: bold;">Tanggal Pengisian</div>
|
||||
<div class="col-1" style="font-weight: bold">:</div>
|
||||
<div class="col-7 col-sm-8 col-md-9">{{ $result->formatted_created_at }}</div>
|
||||
</div>
|
||||
<div class="row pb-1">
|
||||
<div class="col-4 col-sm-3 col-md-2" style="font-weight: bold;">Nama</div>
|
||||
<div class="col-1" style="font-weight: bold">:</div>
|
||||
<div class="col-7 col-sm-8 col-md-9">{{ $result->user->nama_lengkap }}</div>
|
||||
</div>
|
||||
<div class="row pb-1">
|
||||
<div class="col-4 col-sm-3 col-md-2" style="font-weight: bold;">Nim</div>
|
||||
<div class="col-1" style="font-weight: bold">:</div>
|
||||
<div class="col-7 col-sm-8 col-md-9">{{ $result->user->nim }}</div>
|
||||
</div>
|
||||
<div class="row pb-1">
|
||||
<div class="col-4 col-sm-3 col-md-2" style="font-weight: bold;">Golongan</div>
|
||||
<div class="col-1" style="font-weight: bold">:</div>
|
||||
<div class="col-7 col-sm-8 col-md-9">{{ $result->user->kelas_user }}</div>
|
||||
</div>
|
||||
<div class="row pb-4">
|
||||
<div class="col-4 col-sm-3 col-md-2" style="font-weight: bold;">Jurusan</div>
|
||||
<div class="col-1" style="font-weight: bold">:</div>
|
||||
<div class="col-7 col-sm-8 col-md-9">Teknologi Informasi</div>
|
||||
</div>
|
||||
<h5 style="font-weight: bold">Knowledge of Metacognitif(KM)</h5>
|
||||
<div>
|
||||
<table class="table table-bordered">
|
||||
<thead>
|
||||
<th colspan="3">Total skor : {{ $result->km_total }}</th>
|
||||
</thead>
|
||||
<thead>
|
||||
<th colspan="3">Kelas skor : {{ $result->km_class }}</th>
|
||||
</thead>
|
||||
<thead>
|
||||
<th>No</th>
|
||||
<th>Kategori</th>
|
||||
<th>Nilai</th>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>1</td>
|
||||
<td>Declarative Knowledge</td>
|
||||
<td>{{ $result->declarative_knowledge }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>2</td>
|
||||
<td>Procedural Knowledge</td>
|
||||
<td>{{ $result->procedural_knowledge }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>3</td>
|
||||
<td>Conditional Knowledge</td>
|
||||
<td>{{ $result->conditional_knowledge }}</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<h5 style="font-weight: bold" class="pt-5">Regulation of Metacognitif(RM)</h5>
|
||||
<div>
|
||||
<table class="table table-bordered">
|
||||
<thead>
|
||||
<th colspan="3">Total skor : {{ $result->rm_total }}</th>
|
||||
</thead>
|
||||
<thead>
|
||||
<th colspan="3">Kelas skor : {{ $result->rm_class }}</th>
|
||||
</thead>
|
||||
<thead>
|
||||
<th>No</th>
|
||||
<th>Kategori</th>
|
||||
<th>Nilai</th>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>1</td>
|
||||
<td>Planning</td>
|
||||
<td>{{ $result->planning }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>2</td>
|
||||
<td>Information Management</td>
|
||||
<td>{{ $result->information_management }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>3</td>
|
||||
<td>Monitoring</td>
|
||||
<td>{{ $result->monitoring }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>4</td>
|
||||
<td>Debugging</td>
|
||||
<td>{{ $result->debugging }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>5</td>
|
||||
<td>Evaluation</td>
|
||||
<td>{{ $result->evaluation }}</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<script src="{{ asset('js/jquery.js')}}"></script>
|
||||
<script src="{{ asset('admin_backend/assets/vendor/bootstrap/js/bootstrap.bundle.min.js')}}"></script>
|
||||
|
||||
|
||||
<script>
|
||||
window.print();
|
||||
</script>
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
|
@ -34,8 +34,10 @@
|
|||
Route::resource('dashboard', 'DashboardController');
|
||||
Route::resource('profile', 'ProfileController');
|
||||
Route::resource('questionnaire', 'QuestionnaireController')->names('userQuestionnaire');
|
||||
Route::resource('user-result', 'DashboardController')->names('userResult');
|
||||
|
||||
// hanya tampilan
|
||||
Route::get('/user-hasil/cetak-pdf', 'DashboardController@cetak_pdf')->name('userQuestionnaire.cetak');
|
||||
Route::get('instruction', 'UiController@instruction')->name('user.questionnaire.instruction');
|
||||
Route::get('check-questionnaire', 'UiController@checkQuestionnaire')->name('user.questionnaire.check');
|
||||
Route::get('closed-questionnaire', 'UiController@closedQuestionnaire')->name('user.questionnaire.closed');
|
||||
|
@ -68,6 +70,8 @@
|
|||
Route::post('/admin-profile/update', 'AdminProfileController@update');
|
||||
Route::get('/admin-profile/change-password', 'AdminProfileController@changePasswordForm')->name('admin-profile.changePasswordForm');
|
||||
Route::post('/admin-profile/change-password', 'AdminProfileController@changePassword')->name('admin-profile.changePassword');
|
||||
Route::post('/listadmin/add', 'ListAdminController@create');
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue