FEATURE: add role into list of all users
This commit is contained in:
Vendored
+10
@@ -16,6 +16,16 @@
|
||||
font-weight: bolder;
|
||||
}
|
||||
|
||||
.user-img {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.user-img .badge {
|
||||
position: absolute;
|
||||
top: 1%;
|
||||
left: 43%;
|
||||
}
|
||||
|
||||
/**
|
||||
Footer
|
||||
*/
|
||||
|
||||
@@ -1,7 +0,0 @@
|
||||
@extends('admin.layout')
|
||||
|
||||
@section('pageName', @trans('admin/userManagement.editUser'))
|
||||
|
||||
@section('content')
|
||||
|
||||
@stop
|
||||
@@ -15,9 +15,19 @@
|
||||
<a href="{{route('users.detail', ['id' => $user->id])}}">
|
||||
<div class="user-img">
|
||||
<img src="{{$user->gravatar(350)}}" alt="" />
|
||||
|
||||
<span class="badge @if($user->role == \App\Models\User::ROLE_ADMIN)
|
||||
alert
|
||||
@elseif ($user->role == \App\Models\User::ROLE_EDITOR)
|
||||
warning
|
||||
@else
|
||||
secondary
|
||||
@endif">
|
||||
{{strtoupper($user->role)}}
|
||||
</span>
|
||||
</div>
|
||||
<div class="user-info text-center">
|
||||
{{$user->name}}
|
||||
{{ $user->name}}
|
||||
</div>
|
||||
</a>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user