40 lines
1.2 KiB
PHP
40 lines
1.2 KiB
PHP
@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
|