TIF_E41200988/Pengukuran Kinerja Dosen/resources/views/hasil/index.blade.php

80 lines
2.8 KiB
PHP

@include('layouts.header_admin')
<div class="d-sm-flex align-items-center justify-content-between mb-4">
<h1 class="h3 mb-0 text-gray-800"><i class="fas fa-fw fa-chart-area"></i> Data Hasil Akhir</h1>
<a href="{{ url('Laporan') }}" class="btn btn-primary"> <i class="fa fa-print"></i> Cetak Data </a>
</div>
<div class="card shadow mb-4">
<div class="card-header py-3">
<h6 class="m-0 font-weight-bold text-success"><i class="fa fa-table"></i> Hasil Akhir Perankingan Kriteria dan alternatif</h6>
</div>
<div class="card-header py-3">
<h6 class="m-0 font-weight-bold text-success"><i class="fa fa-table"></i> Data Kriteria</h6>
</div>
<div class="card-body">
<div class="table-responsive">
<table class="table table-bordered" width="100%" cellspacing="0">
<thead class="bg-success text-white">
<tr align="center">
<th>Nama Kriteria</th>
<th>Total Bobot</th>
<th width="15%">Ranking</th>
</tr>
</thead>
<tbody>
@php
$no = 1;
@endphp
@foreach ($kriteria as $krit)
<tr align="center">
<td align="left">{{ $krit->nama_kriteria }}</td>
<td>{{ $krit->bobot }}</td>
<td>{{ $no }}</td>
</tr>
@php
$no++;
@endphp
@endforeach
</tbody>
</table>
</div>
</div>
</div>
<div class="card-header py-3">
<h6 class="m-0 font-weight-bold text-success"><i class="fa fa-table"></i> Data alternatif</h6>
</div>
<div class="card-body">
<div class="table-responsive">
<table class="table table-bordered" width="100%" cellspacing="0">
<thead class="bg-success text-white">
<tr align="center">
<th>Nama Alternatif</th>
<th>Total Nilai Eigen</th>
<th width="15%">Ranking</th>
</tr>
</thead>
<tbody>
@php
$no = 1;
@endphp
@foreach ($hasil as $keys)
<tr align="center">
<td align="left">{{ $keys->nama }}</td>
<td>{{ $keys->nilai }}</td>
<td>{{ $no }}</td>
</tr>
@php
$no++;
@endphp
@endforeach
</tbody>
</table>
</div>
</div>
@include('layouts.footer_admin')