2021-08-22 08:15:58 -04:00
|
|
|
@extends('layouts.simple')
|
2016-02-26 18:44:02 -05:00
|
|
|
|
2017-08-26 12:17:04 -04:00
|
|
|
@section('body')
|
2016-02-26 18:44:02 -05:00
|
|
|
|
2016-03-05 13:09:21 -05:00
|
|
|
<div class="container small">
|
2019-02-02 10:49:57 -05:00
|
|
|
|
2022-03-26 17:36:05 -04:00
|
|
|
@include('settings.parts.navbar', ['selected' => 'roles'])
|
2019-02-02 10:49:57 -05:00
|
|
|
|
|
|
|
<div class="card content-wrap auto-height">
|
|
|
|
|
|
|
|
<div class="grid half v-center">
|
|
|
|
<h1 class="list-heading">{{ trans('settings.role_user_roles') }}</h1>
|
|
|
|
|
|
|
|
<div class="text-right">
|
2022-10-29 15:52:17 -04:00
|
|
|
<a href="{{ url("/settings/roles/new") }}" class="button outline my-none">{{ trans('settings.role_create') }}</a>
|
2017-08-26 12:17:04 -04:00
|
|
|
</div>
|
2016-05-22 05:44:31 -04:00
|
|
|
</div>
|
2019-02-02 10:49:57 -05:00
|
|
|
|
2022-10-29 15:52:17 -04:00
|
|
|
<p class="text-muted">{{ trans('settings.roles_index_desc') }}</p>
|
|
|
|
|
|
|
|
<div class="flex-container-row items-center justify-space-between gap-m mt-m mb-l wrap">
|
|
|
|
<div>
|
|
|
|
<div class="block inline mr-xs">
|
|
|
|
<form method="get" action="{{ url("/settings/roles") }}">
|
|
|
|
<input type="text" name="search" placeholder="{{ trans('common.search') }}" @if($listDetails['search']) value="{{$listDetails['search']}}" @endif>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="justify-flex-end">
|
|
|
|
@include('common.sort', ['options' => [
|
|
|
|
'display_name' => trans('common.sort_name'),
|
|
|
|
'users_count' => trans('settings.roles_assigned_users'),
|
|
|
|
'permissions_count' => trans('settings.roles_permissions_provided'),
|
2022-10-30 08:02:06 -04:00
|
|
|
'created_at' => trans('common.sort_created_at'),
|
|
|
|
'updated_at' => trans('common.sort_updated_at'),
|
2022-10-29 15:52:17 -04:00
|
|
|
], 'order' => $listDetails['order'], 'sort' => $listDetails['sort'], 'type' => 'roles'])
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="item-list">
|
2019-02-02 10:49:57 -05:00
|
|
|
@foreach($roles as $role)
|
2022-10-29 15:52:17 -04:00
|
|
|
@include('settings.roles.parts.roles-list-item', ['role' => $role])
|
2019-02-02 10:49:57 -05:00
|
|
|
@endforeach
|
2022-10-29 15:52:17 -04:00
|
|
|
</div>
|
2019-02-02 10:49:57 -05:00
|
|
|
|
2022-10-29 15:52:17 -04:00
|
|
|
<div class="mb-m">
|
|
|
|
{{ $roles->links() }}
|
|
|
|
</div>
|
2019-02-02 10:49:57 -05:00
|
|
|
|
2016-05-22 05:44:31 -04:00
|
|
|
</div>
|
2016-02-26 18:44:02 -05:00
|
|
|
</div>
|
|
|
|
|
|
|
|
@stop
|