2017-09-10 21:12:57 +01:00
|
|
|
@extends(Theme::viewName('layout'))
|
2016-10-01 15:24:22 +01:00
|
|
|
@section('title', trans('admin.users_title'))
|
|
|
|
|
|
|
|
@section('breadcrumb')
|
2017-03-26 21:29:10 +01:00
|
|
|
<li class="breadcrumb-item"><a href="{{ route('home') }}"><i class="fa fa-fw fa-home"></i></a></li>
|
|
|
|
<li class="breadcrumb-item"><a href="{{ route('admin') }}">@lang('navigation.breadcrumb.admin')</a></li>
|
|
|
|
<li class="breadcrumb-item active">@lang('navigation.breadcrumb.users')</li>
|
2016-10-01 15:24:22 +01:00
|
|
|
@endsection
|
|
|
|
|
|
|
|
@section('content')
|
|
|
|
<div class="container">
|
|
|
|
<div class="row">
|
2017-03-26 21:29:10 +01:00
|
|
|
<div class="col">
|
2017-02-13 10:36:53 +00:00
|
|
|
<h1>@lang('admin.list_users_title')</h1>
|
|
|
|
<div class="alert alert-info" style="margin-bottom: 30px;">
|
2017-03-27 14:04:09 +01:00
|
|
|
<i class="fa fa-fw fa-info"></i> @lang('admin.list_users_intro')
|
2017-02-13 10:36:53 +00:00
|
|
|
</div>
|
|
|
|
|
2016-10-01 15:24:22 +01:00
|
|
|
<table class="table table-hover table-striped">
|
|
|
|
<tbody>
|
|
|
|
@foreach ($users as $user)
|
|
|
|
<tr>
|
|
|
|
<td>
|
2017-03-26 21:29:10 +01:00
|
|
|
<span style="font-size: 1.3em;"><a href="{{ route('users.edit', ['id' => $user->id]) }}">{{ $user->name }}</a>@if ($user->is_admin) <i class="fa fa-fw fa-cog"></i>@endif</span><br/>
|
|
|
|
{{ $user->email }} <a href="mailto:{{ $user->email }}"><i class="fa fa-fw fa-mail-forward"></i></a>
|
2016-10-03 14:11:24 +01:00
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
@if (!$user->is_activated)
|
|
|
|
<span style="font-style: italic; color: #888888;">@lang('admin.user_pending')</span>
|
|
|
|
@endif
|
2016-10-01 15:24:22 +01:00
|
|
|
</td>
|
|
|
|
<td class="text-right">
|
2017-02-13 10:36:53 +00:00
|
|
|
<a href="{{ route('users.delete', ['id' => $user->id]) }}" class="btn btn-danger">@lang('forms.delete_action')</a>
|
2016-10-01 15:24:22 +01:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
@endforeach
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
|
|
|
|
<div class="text-center">
|
|
|
|
{{ $users->links() }}
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="pull-right" style="margin-top: 10px;">
|
2017-04-15 10:50:22 +01:00
|
|
|
@can('admin:manage-groups')
|
|
|
|
<a href="{{ route('groups.index') }}" class="btn btn-link">@lang('admin.list_groups_title')</a>
|
|
|
|
@endcan
|
2017-02-13 10:36:53 +00:00
|
|
|
<a href="{{ route('users.create') }}" class="btn btn-success"><i class="fa fa-fw fa-plus"></i> @lang('admin.create_user')</a>
|
2016-10-01 15:24:22 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
@endsection
|