Commit awal: prototipe UI SIAKAD Untan
This commit is contained in:
@@ -0,0 +1,49 @@
|
||||
<x-layouts.app title="Riwayat mengajar">
|
||||
<x-ui.page-header title="Riwayat mengajar" description="Rekap kelas yang pernah Anda ampu pada semester-semester sebelumnya." />
|
||||
|
||||
<div class="stack">
|
||||
<x-ui.stats>
|
||||
<x-ui.stat label="Total kelas diampu" :value="$totalKelas" icon="rectangle-stack" :hint="$riwayat->count().' semester'" />
|
||||
<x-ui.stat label="Total mahasiswa" :value="$totalMahasiswa" icon="users" />
|
||||
<x-ui.stat label="Rata-rata kehadiran" :value="$rataKehadiran.'%'" icon="clipboard-document-check" />
|
||||
</x-ui.stats>
|
||||
|
||||
<x-ui.chart
|
||||
title="Jumlah mahasiswa per semester"
|
||||
type="bar"
|
||||
:labels="$labels"
|
||||
:datasets="[['label' => 'Mahasiswa', 'data' => $mahasiswaData]]"
|
||||
/>
|
||||
|
||||
<x-glass.panel padding="none">
|
||||
<x-ui.table label="Riwayat mengajar per semester">
|
||||
<table class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col">Semester</th>
|
||||
<th scope="col">Mata kuliah</th>
|
||||
<th scope="col" class="num">Kelas</th>
|
||||
<th scope="col" class="num">Mahasiswa</th>
|
||||
<th scope="col" class="num">SKS</th>
|
||||
<th scope="col" class="num">Rata-rata nilai</th>
|
||||
<th scope="col" class="num">Kehadiran</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach ($riwayat as $r)
|
||||
<tr>
|
||||
<td class="table__title">{{ $r['semester'] }}</td>
|
||||
<td style="min-width: 16rem">{{ $r['matkul'] }}</td>
|
||||
<td class="num">{{ $r['kelas'] }}</td>
|
||||
<td class="num">{{ $r['mahasiswa'] }}</td>
|
||||
<td class="num">{{ $r['sks'] }}</td>
|
||||
<td class="num">{{ \App\Support\Prototype\DosenData::angka($r['rata_nilai']) }}</td>
|
||||
<td class="num"><x-ui.badge :tone="$r['kehadiran'] >= \App\Support\Prototype\DosenData::BATAS_HADIR ? 'success' : 'danger'">{{ $r['kehadiran'] }}%</x-ui.badge></td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
</x-ui.table>
|
||||
</x-glass.panel>
|
||||
</div>
|
||||
</x-layouts.app>
|
||||
Reference in New Issue
Block a user