4604500349
I *really* wish Atom would stop doing this to me.
41 lines
1.2 KiB
PHP
41 lines
1.2 KiB
PHP
@extends('layouts.admin')
|
|
|
|
@section('title')
|
|
Account List
|
|
@endsection
|
|
|
|
@section('content')
|
|
<div class="col-md-12">
|
|
<ul class="breadcrumb">
|
|
<li><a href="/admin">Admin Control</a></li>
|
|
<li class="active">Accounts</li>
|
|
</ul>
|
|
<h3>All Registered Users</h3><hr />
|
|
<table class="table table-striped table-bordered table-hover">
|
|
<thead>
|
|
<tr>
|
|
<th>Email</th>
|
|
<th>Account Created</th>
|
|
<th>Account Updated</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
@foreach ($users as $user)
|
|
<tr>
|
|
<td><a href="/admin/accounts/view/{{ $user->id }}"><code>{{ $user->email }}</code></a> @if($user->root_admin === 1)<span class="badge">Administrator</span>@endif</td>
|
|
<td>{{ $user->created_at }}</td>
|
|
<td>{{ $user->updated_at }}</td>
|
|
</tr>
|
|
@endforeach
|
|
</tbody>
|
|
</table>
|
|
<div class="row">
|
|
<div class="col-md-12 text-center">{!! $users->render() !!}</div>
|
|
</div>
|
|
</div>
|
|
<script>
|
|
$(document).ready(function () {
|
|
$('#sidebar_links').find("a[href='/admin/accounts']").addClass('active');
|
|
});
|
|
</script>
|
|
@endsection
|