Commit awal: prototipe UI SIAKAD Untan
This commit is contained in:
@@ -0,0 +1,62 @@
|
||||
<x-layouts.app title="Bimbingan skripsi">
|
||||
<x-ui.page-header title="Bimbingan skripsi" description="Pantau kemajuan skripsi mahasiswa bimbingan dan catat setiap sesi bimbingan.">
|
||||
<x-slot:actions>
|
||||
<x-ui.button :href="route('dosen.skripsi.create')" icon="plus">Catat bimbingan</x-ui.button>
|
||||
</x-slot:actions>
|
||||
</x-ui.page-header>
|
||||
|
||||
<div class="stack">
|
||||
<x-ui.stats>
|
||||
<x-ui.stat label="Mahasiswa bimbingan" :value="$mahasiswa->count()" icon="users" />
|
||||
<x-ui.stat label="Rata-rata progres" :value="$rataProgres.'%'" icon="chart-bar" />
|
||||
<x-ui.stat label="Total sesi bimbingan" :value="$totalSesi" icon="chat-bubble-left-right" />
|
||||
</x-ui.stats>
|
||||
|
||||
<div class="split split--even">
|
||||
@foreach ($mahasiswa as $m)
|
||||
<x-glass.panel padding="lg" class="grid gap-3">
|
||||
<div class="grid gap-1">
|
||||
<h2 class="text-title">{{ $m['nama'] }}</h2>
|
||||
<span class="text-sm text-muted">{{ $m['nim'] }}</span>
|
||||
</div>
|
||||
<p class="text-ink-2">{{ $m['judul'] }}</p>
|
||||
<x-ui.meter :value="$m['progres']" :max="100" :label="'Progres skripsi '.$m['nama']" :value-text="$m['progres'].'%'" tone="accent" />
|
||||
<div class="flex flex-wrap items-center gap-2">
|
||||
<x-ui.badge tone="accent">{{ $m['tahap'] }}</x-ui.badge>
|
||||
<span class="text-sm text-muted">{{ $m['jumlah'] }} sesi, terakhir {{ \App\Support\Prototype\DosenData::tanggal($m['terakhir']) }}</span>
|
||||
</div>
|
||||
</x-glass.panel>
|
||||
@endforeach
|
||||
</div>
|
||||
|
||||
<x-glass.panel padding="none">
|
||||
<div class="p-4">
|
||||
<h2 class="text-title">Catatan bimbingan terbaru</h2>
|
||||
</div>
|
||||
<x-ui.table label="Catatan bimbingan skripsi">
|
||||
<table class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col">Tanggal</th>
|
||||
<th scope="col">Mahasiswa</th>
|
||||
<th scope="col">Topik</th>
|
||||
<th scope="col">Tahap</th>
|
||||
<th scope="col">Catatan</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach ($catatan as $c)
|
||||
<tr>
|
||||
<td>{{ \App\Support\Prototype\DosenData::tanggal($c['tanggal']) }}</td>
|
||||
<td class="table__title">{{ $c['nama'] }}</td>
|
||||
<td>{{ $c['topik'] }}</td>
|
||||
<td><x-ui.badge tone="accent">{{ $c['tahap'] }}</x-ui.badge></td>
|
||||
<td style="min-width: 18rem">{{ $c['catatan'] }}</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
</x-ui.table>
|
||||
</x-glass.panel>
|
||||
</div>
|
||||
</x-layouts.app>
|
||||
Reference in New Issue
Block a user