1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
@extends('template')
@section('title', 'SAW')
@section('intro-header')
<!-- Main -->
<br><br><br>
<div class="container">
<h2>Simple Additive Weighting(SAW)</h2>
<hr>
<h3>Data Mahasiswa</h3>
<hr>
<a href="{{ url('PenilaianSaw') }}" class="btn btn-info btn-md">Seleksi Awal</a>
<table class="table table-striped table-hover">
<thead class="table-success">
<th>No</th>
<th>NIM</th>
<th>Nama</th>
<th>Nilai IPK</th>
<th>Nilai Perilaku</th>
</thead>
<tbody>
<tr>
<?php $no = 1;?>
@foreach($dataMahasiswa as $dtThn)
<?php $tahun[] = $dtThn['ta']; ?>
@endforeach
<?php
$thnMin = min($tahun);
$thnMax = max($tahun);
?>
@foreach ($dataMahasiswa as $dt_mhs)
@if ($dt_mhs['ta'] == $thnMin && $dt_mhs['sem_ta']==2 || $dt_mhs['sem_ta']==1)
<td><?php echo($no++); ?></td>
<td>{{ $dt_mhs['nim'] }}</td>
<td>{{ $dt_mhs['nama'] }}</td>
<td>{{ number_format($dt_mhs['ipTotal'], 2) }}</td>
<td>
@if( $dt_mhs['akumulasi_skor'] == 0 )
{{ 'A' }}
@elseif($dt_mhs['akumulasi_skor'] >=1 && $dt_mhs['akumulasi_skor'] <=5)
{{ 'AB' }}
@elseif( $dt_mhs['akumulasi_skor'] >=6 && $dt_mhs['akumulasi_skor'] <=10)
{{ 'B' }}
@elseif( $dt_mhs['akumulasi_skor'] >=11 && $dt_mhs['akumulasi_skor'] <=15)
{{ 'BC' }}
@elseif( $dt_mhs['akumulasi_skor'] >=16 && $dt_mhs['akumulasi_skor'] <=25)
{{ 'C' }}
@elseif( $dt_mhs['akumulasi_skor'] >=26 && $dt_mhs['akumulasi_skor'] <=30)
{{ 'D' }}
@elseif( $dt_mhs['akumulasi_skor'] > 30)
{{ 'E' }}
@else
{{ 'data tidak terdefenisi' }}
@endif
{{ $dt_mhs['akumulasi_skor'] }}
</td>
</tr>
@endif
@endforeach
</tbody>
</table>
</div>