admin add user, password

This commit is contained in:
Saufi
2026-05-26 12:02:16 +08:00
parent 6ca0bd82fd
commit 5fbededf8f
12 changed files with 531 additions and 0 deletions

View File

@@ -0,0 +1,39 @@
@extends('layouts.app')
@section('content')
<main class="page">
<h1>Users</h1>
<p class="subtitle">Senarai akaun pengguna sistem.</p>
@if (session('status'))
<div class="notice">{{ session('status') }}</div>
@endif
<div class="actions" style="margin-bottom: 18px;">
<a class="button" href="{{ route('admin.users.create') }}">Tambah User</a>
</div>
<div style="overflow-x: auto;">
<table class="data-table">
<thead>
<tr>
<th>Nama</th>
<th>Username</th>
<th>Emel</th>
<th>Role</th>
</tr>
</thead>
<tbody>
@foreach ($users as $user)
<tr>
<td>{{ $user->name }}</td>
<td>{{ $user->username }}</td>
<td>{{ $user->email }}</td>
<td>{{ $user->role }}</td>
</tr>
@endforeach
</tbody>
</table>
</div>
</main>
@endsection