@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">
    <!-- /.card-header -->
    <div class="card-header py-3">
        <h6 class="m-0 font-weight-bold text-primary"><i class="fa fa-table"></i> Hasil Akhir Perankingan</h6>
    </div>

    <div class="card-body">
        <div class="table-responsive">
            <table class="table table-bordered" width="100%" cellspacing="0">
                <thead class="bg-primary text-white">
                    <tr align="center">
                        <th>Nama Alternatif</th>
                        <th>Posisi</th>
                        <th>Nilai Qi</th>
                        <th width="10%">Ranking</th>
                    </tr>
                </thead>
                <tbody>
                    @foreach ($hasil as $keys)
                    <tr align="center">
                        <td align="left">{{ $keys->nama }}</td>
                        <td>{{ $keys->posisi_otomatis }}</td>
                        <td>{{ $keys->nilai_qi }}</td>
                        <td>{{ $keys->ranking }}</td>
                    </tr>
                    @endforeach
                </tbody>
            </table>
        </div>
    </div>
</div>

@include('layouts.footer_admin')
