Commit awal: prototipe UI SIAKAD Untan

This commit is contained in:
Ariyutta
2026-10-24 11:45:32 +07:00
commit d9b9cb5c0f
477 changed files with 51958 additions and 0 deletions
+25
View File
@@ -0,0 +1,25 @@
<x-layouts.app title="Ubah kata sandi">
<x-ui.page-header
title="Ubah kata sandi"
description="Masukkan kata sandi saat ini, lalu kata sandi baru Anda."
:breadcrumbs="['Profil saya' => route('akun.profil'), 'Ubah kata sandi' => null]"
/>
<form method="POST" action="{{ route('akun.password.update') }}" class="stack" novalidate>
@csrf
@method('PUT')
<x-glass.panel padding="lg">
<x-form.section title="Kata sandi" description="Minimal 8 karakter, mengandung huruf dan angka." :columns="1">
<x-form.field name="current_password" label="Kata sandi saat ini" type="password" autocomplete="current-password" required />
<x-form.field name="password" label="Kata sandi baru" type="password" autocomplete="new-password" required />
<x-form.field name="password_confirmation" label="Ulangi kata sandi baru" type="password" autocomplete="new-password" required />
</x-form.section>
</x-glass.panel>
<x-form.actions>
<x-ui.button type="submit" icon="check">Simpan kata sandi</x-ui.button>
<x-ui.button variant="secondary" :href="route('akun.profil')">Batal</x-ui.button>
</x-form.actions>
</form>
</x-layouts.app>
+47
View File
@@ -0,0 +1,47 @@
@php
$role = $user->role;
$profile = $user->profile;
$rows = array_filter([
'Nama lengkap' => $user->name,
'Username' => $user->username,
'Email' => $user->email,
$role->identifierLabel() => $profile?->nomor_induk ?? $profile?->nip,
'Angkatan' => $profile?->angkatan ?? null,
'Jabatan fungsional' => $profile?->jabatan_fungsional ?? null,
'Jabatan' => $profile?->jabatan ?? null,
'Unit kerja' => $profile?->unit_kerja ?? null,
'Status akademik' => $profile && isset($profile->status) ? ucfirst($profile->status) : null,
'Masuk terakhir' => $user->last_login_at?->locale('id')->isoFormat('D MMMM YYYY, HH.mm'),
], fn ($v) => $v !== null && $v !== '');
@endphp
<x-layouts.app title="Profil saya">
<x-ui.page-header title="Profil saya" description="Data akun dan identitas akademik Anda.">
<x-slot:actions>
<x-ui.button :href="route('akun.password')" icon="key">Ubah kata sandi</x-ui.button>
</x-slot:actions>
</x-ui.page-header>
<div class="split">
<x-glass.panel padding="lg" class="grid content-start gap-6">
<div class="flex items-center gap-4">
<x-ui.avatar :name="$user->name" size="xl" :labelled="true" />
<div class="grid gap-2 justify-items-start min-w-0">
<p class="text-xl font-display font-bold leading-snug">{{ $user->name }}</p>
<x-ui.badge tone="gold">{{ $role->label() }}</x-ui.badge>
</div>
</div>
<dl class="ledger border-t border-rule pt-6">
@foreach ($rows as $label => $value)
<div class="ledger__row"><dt>{{ $label }}</dt><dd>{{ $value }}</dd></div>
@endforeach
</dl>
</x-glass.panel>
<x-glass.panel padding="lg" class="grid content-start gap-4">
<h2 class="text-title">Keamanan akun</h2>
<p class="text-ink-2">Gunakan kata sandi yang unik, minimal 8 karakter dengan huruf dan angka. Jangan bagikan kata sandi kepada siapa pun, termasuk petugas.</p>
<div><x-ui.button variant="secondary" :href="route('akun.password')" icon="lock-closed">Ganti kata sandi</x-ui.button></div>
</x-glass.panel>
</div>
</x-layouts.app>