admin add user, password
This commit is contained in:
39
resources/views/admin/users/index.blade.php
Normal file
39
resources/views/admin/users/index.blade.php
Normal 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
|
||||
Reference in New Issue
Block a user