82 lines
2.2 KiB
PHP
82 lines
2.2 KiB
PHP
<!DOCTYPE html>
|
|
<html>
|
|
|
|
<head>
|
|
<title>Sistem Pendukung Keputusan Pemilihan Atlet Unit Kegiatan Mahasiswa Olahraga POLIJE Metode SAW</title>
|
|
</head>
|
|
<style>
|
|
table {
|
|
border-collapse: collapse;
|
|
}
|
|
|
|
table,
|
|
th,
|
|
td {
|
|
border: 1px solid black;
|
|
}
|
|
</style>
|
|
|
|
<body>
|
|
<div class="d-flex justify-content-center align-items-center">
|
|
<h4>Hasil Akhir Perankingan @if ($j == 1)
|
|
Laki-laki
|
|
@elseif($j == 2)
|
|
Perempuan
|
|
@else
|
|
Tidak Ada
|
|
@endif
|
|
</h4>
|
|
@if (!request()->routeIs('Laporan'))
|
|
<div class="form-group">
|
|
<select class="form-control" id="filterByDivision">
|
|
<option value="">--Pilih Divisi--</option>
|
|
@foreach ($divisis as $data)
|
|
<option value="{{ $data->divisi }}">{{ $data->divisi }}</option>
|
|
@endforeach
|
|
</select>
|
|
</div>
|
|
@endif
|
|
</div>
|
|
<table border="1" width="100%" id="tableRangking">
|
|
<thead>
|
|
<tr align="center">
|
|
<th>Alternatif</th>
|
|
<th>Jenis Kelamin</th>
|
|
<th>Nilai</th>
|
|
<th width="15%">Ranking</th>
|
|
<th>Asal Divisi</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
@php
|
|
$no = 1;
|
|
@endphp
|
|
@foreach ($hasil as $keys)
|
|
<tr align="center">
|
|
<td align="left">{{ $keys->nama }}</td>
|
|
<td>
|
|
@if ($keys->jenis_kelamin == 1)
|
|
Laki-laki
|
|
@elseif($keys->jenis_kelamin == 2)
|
|
Perempuan
|
|
@else
|
|
Tidak Ada
|
|
@endif
|
|
</td>
|
|
<td>{{ $keys->nilai }}</td>
|
|
<td>{{ $no }}</td>
|
|
<td>{{ $keys->divisi }}</td>
|
|
</tr>
|
|
@php
|
|
$no++;
|
|
@endphp
|
|
@endforeach
|
|
</tbody>
|
|
</table>
|
|
<script>
|
|
window.print();
|
|
</script>
|
|
</body>
|
|
|
|
</html>
|