257 lines
14 KiB
PHP
257 lines
14 KiB
PHP
@extends('server-side.layouts.server-app')
|
|
@section('title', 'Rata-Rata Nilai Keterampilan Peserta Seleksi LKS | Skripsi Rindi')
|
|
@section('main-content')
|
|
<main id="main" class="main">
|
|
<div class="pagetitle">
|
|
<h1>Hasil Seleksi</h1>
|
|
<nav>
|
|
<ol class="breadcrumb">
|
|
<li class="breadcrumb-item"><a href="{{ url('dashboard') }}">Dashboard</a></li>
|
|
<li class="breadcrumb-item">Report</li>
|
|
<li class="breadcrumb-item active">Hasil Seleksi</li>
|
|
</ol>
|
|
</nav>
|
|
</div><!-- End Page Title -->
|
|
|
|
<section class="section">
|
|
<div class="row">
|
|
<div class="col-lg-12">
|
|
<div class="card">
|
|
<div class="card-body">
|
|
<div class="row">
|
|
<div class="col-md-12 d-flex justify-content-between align-items-center">
|
|
<h5 class="card-title">Normalisasi Matriks</h5>
|
|
{{-- <a href="{{route('guru.create')}}">
|
|
<button class="btn btn-success btn-sm">Input nilai raport</button>
|
|
</a> --}}
|
|
</div>
|
|
</div>
|
|
@if (Session::has('message'))
|
|
<div class="alert alert-success alert-dismissible fade show" role="alert">
|
|
<i class="bi bi-check-circle me-1"></i> {{ Session::get('message') }}
|
|
<button type="button" class="btn-close" data-bs-dismiss="alert"
|
|
aria-label="Close"></button>
|
|
</div>
|
|
@endif
|
|
<!-- Table with stripped rows -->
|
|
<table class="table">
|
|
<thead>
|
|
<tr>
|
|
<th scope="col">#No</th>
|
|
<th scope="col">NIS</th>
|
|
<th scope="col">Nama</th>
|
|
<th scope="col">Nilai raport</th>
|
|
<th scope="col">Nilai keterampilan</th>
|
|
<th scope="col">Nilai ujian</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
@foreach ($finalResult as $data)
|
|
<tr>
|
|
<th scope="col">{{ $nomor++ }}</th>
|
|
<td>{{ $data->nis }}</td>
|
|
<td>{{ $data->nama }}</td>
|
|
<td>{{ $data->nilai_raport }}</td>
|
|
<td>{{ $data->nilai_keterampilan }}</td>
|
|
<td>{{ $data->nilai_ujian }}</td>
|
|
</tr>
|
|
@endforeach
|
|
<tr>
|
|
<th colspan="3" class="text-left">Jumlah</th>
|
|
<td>{{ $nilaiRaport }}</td>
|
|
<td>{{ $nilaiKeterampilan }}</td>
|
|
<td>{{ $nilaiUjian }}</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<!-- End Table with stripped rows -->
|
|
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="col-lg-12">
|
|
<div class="card">
|
|
<div class="card-body">
|
|
<div class="row">
|
|
<div class="col-md-12 d-flex justify-content-between align-items-center">
|
|
<h5 class="card-title">Normalisasi Matriks Alternatif untuk Mencari Nilai Eigen
|
|
Alternatif</h5>
|
|
{{-- <a href="{{route('guru.create')}}">
|
|
<button class="btn btn-success btn-sm">Input nilai raport</button>
|
|
</a> --}}
|
|
</div>
|
|
</div>
|
|
@if (Session::has('message'))
|
|
<div class="alert alert-success alert-dismissible fade show" role="alert">
|
|
<i class="bi bi-check-circle me-1"></i> {{ Session::get('message') }}
|
|
<button type="button" class="btn-close" data-bs-dismiss="alert"
|
|
aria-label="Close"></button>
|
|
</div>
|
|
@endif
|
|
<!-- Table with stripped rows -->
|
|
<table class="table">
|
|
<thead>
|
|
<tr>
|
|
<th scope="col">#No</th>
|
|
<th scope="col">NIS</th>
|
|
<th scope="col">Nama</th>
|
|
<th scope="col">Nilai raport</th>
|
|
<th scope="col">Nilai keterampilan</th>
|
|
<th scope="col">Nilai ujian</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
@foreach ($finalResult as $data)
|
|
<tr>
|
|
<th scope="col">{{ $nomor2++ }}</th>
|
|
<td>{{ $data->nis }}</td>
|
|
<td>{{ $data->nama }}</td>
|
|
<td>{{ number_format($data->nilai_raport / $nilaiRaport, 4) }}</td>
|
|
<td>{{ number_format($data->nilai_keterampilan / $nilaiKeterampilan, 4) }}</td>
|
|
<td>{{ number_format($data->nilai_ujian / $nilaiUjian, 4) }}</td>
|
|
</tr>
|
|
@endforeach
|
|
</tbody>
|
|
</table>
|
|
<!-- End Table with stripped rows -->
|
|
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="col-lg-12">
|
|
<div class="card">
|
|
<div class="card-body">
|
|
<div class="row">
|
|
<div class="col-md-12">
|
|
<h5 class="card-title">Perhitungan Perkalian Eigen Value Kriteria dan Alternatif</h5>
|
|
<strong>Catatan Eigen Value Kriteria</strong>
|
|
<ul>
|
|
<li><strong>Nilai Raport</strong>: 0.728439</li>
|
|
<li><strong>Nilai Keterampilan</strong>: 0.060044</li>
|
|
<li><strong>Nilai Ujian</strong>: 0.211517</li>
|
|
</ul>
|
|
{{-- <a href="{{route('guru.create')}}">
|
|
<button class="btn btn-success btn-sm">Input nilai raport</button>
|
|
</a> --}}
|
|
</div>
|
|
</div>
|
|
@if (Session::has('message'))
|
|
<div class="alert alert-success alert-dismissible fade show" role="alert">
|
|
<i class="bi bi-check-circle me-1"></i> {{ Session::get('message') }}
|
|
<button type="button" class="btn-close" data-bs-dismiss="alert"
|
|
aria-label="Close"></button>
|
|
</div>
|
|
@endif
|
|
<!-- Table with stripped rows -->
|
|
<table class="table">
|
|
<thead>
|
|
<tr>
|
|
<th scope="col">#No</th>
|
|
<th scope="col">NIS</th>
|
|
<th scope="col">Nama</th>
|
|
<th scope="col">Nilai raport</th>
|
|
<th scope="col">Nilai keterampilan</th>
|
|
<th scope="col">Nilai ujian</th>
|
|
<th scope="col">Nilai Akhir</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
@foreach ($finalResult as $data)
|
|
<tr>
|
|
<th scope="col">{{ $nomor3++ }}</th>
|
|
<td>{{ $data->nis }}</td>
|
|
<td>{{ $data->nama }}</td>
|
|
<td>{{ number_format(($data->nilai_raport / $nilaiRaport) * 0.728439, 4) }}
|
|
</td>
|
|
<td>{{ number_format(($data->nilai_keterampilan / $nilaiKeterampilan) * 0.060044, 4) }}
|
|
</td>
|
|
<td>{{ number_format(($data->nilai_ujian / $nilaiUjian) * 0.211517, 4) }}</td>
|
|
<td>{{ number_format(($data->nilai_raport / $nilaiRaport) * 0.728439 + ($data->nilai_keterampilan / $nilaiKeterampilan) * 0.060044 + ($data->nilai_ujian / $nilaiUjian) * 0.211517, 4) }}
|
|
</td>
|
|
</tr>
|
|
@endforeach
|
|
</tbody>
|
|
</table>
|
|
<!-- End Table with stripped rows -->
|
|
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="col-lg-12">
|
|
<div class="card">
|
|
<div class="card-body">
|
|
<div class="row">
|
|
<div class="col-md-12">
|
|
<h5 class="card-title mb-0">Nilai Akhir Seleksi LKS</h5>
|
|
<p>Data di bawah ini merupakan hasil akhir pengurutan rata-rata nilai terbesar dari para
|
|
peserta seleksi LKS</p>
|
|
</div>
|
|
</div>
|
|
@if (Session::has('message'))
|
|
<div class="alert alert-success alert-dismissible fade show" role="alert">
|
|
<i class="bi bi-check-circle me-1"></i> {{ Session::get('message') }}
|
|
<button type="button" class="btn-close" data-bs-dismiss="alert"
|
|
aria-label="Close"></button>
|
|
</div>
|
|
@endif
|
|
<!-- Table with stripped rows -->
|
|
<table class="table">
|
|
<thead>
|
|
<tr>
|
|
<th scope="col">#No</th>
|
|
<th scope="col">NIS</th>
|
|
<th scope="col">Nama</th>
|
|
<th scope="col">Nilai raport</th>
|
|
<th scope="col">Nilai keterampilan</th>
|
|
<th scope="col">Nilai ujian</th>
|
|
<th scope="col">Nilai Akhir</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
@php
|
|
$finalResult = $finalResult->sortByDesc(function ($data) use (
|
|
$nilaiRaport,
|
|
$nilaiKeterampilan,
|
|
$nilaiUjian,
|
|
) {
|
|
return ($data->nilai_raport / $nilaiRaport) * 0.728439 +
|
|
($data->nilai_keterampilan / $nilaiKeterampilan) * 0.060044 +
|
|
($data->nilai_ujian / $nilaiUjian) * 0.211517;
|
|
});
|
|
@endphp
|
|
|
|
@foreach ($finalResult as $data)
|
|
<tr>
|
|
<th scope="col">{{ $nomor4++ }}</th>
|
|
<td>{{ $data->nis }}</td>
|
|
<td>{{ $data->nama }}</td>
|
|
<td>{{ number_format(($data->nilai_raport / $nilaiRaport) * 0.728439, 4) }}
|
|
</td>
|
|
<td>{{ number_format(($data->nilai_keterampilan / $nilaiKeterampilan) * 0.060044, 4) }}
|
|
</td>
|
|
<td>{{ number_format(($data->nilai_ujian / $nilaiUjian) * 0.211517, 4) }}</td>
|
|
<td>{{ number_format(($data->nilai_raport / $nilaiRaport) * 0.728439 + ($data->nilai_keterampilan / $nilaiKeterampilan) * 0.060044 + ($data->nilai_ujian / $nilaiUjian) * 0.211517, 4) }}
|
|
</td>
|
|
</tr>
|
|
@endforeach
|
|
</tbody>
|
|
</table>
|
|
<!-- End Table with stripped rows -->
|
|
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
</section>
|
|
|
|
</main><!-- End #main -->
|
|
@endsection
|