2020-06-27 18:15:33 +00:00
|
|
|
@extends('adminlte::page')
|
|
|
|
|
2020-09-01 18:30:28 +00:00
|
|
|
@section('title', config('app.name') . ' | ' . __('messages.user.directory.title'))
|
2020-06-27 18:15:33 +00:00
|
|
|
|
|
|
|
@section('content_header')
|
|
|
|
|
2020-09-01 18:30:28 +00:00
|
|
|
<h4>{{__('messages.profile.users')}} / {{__('messages.user.directory.directory')}}</h4>
|
2020-06-27 18:15:33 +00:00
|
|
|
|
|
|
|
@stop
|
|
|
|
|
|
|
|
@section('js')
|
|
|
|
<script src="/js/app.js"></script>
|
|
|
|
<x-global-errors></x-global-errors>
|
|
|
|
@stop
|
|
|
|
|
|
|
|
@section('css')
|
|
|
|
|
|
|
|
<link rel="stylesheet" href="/css/directory.css" />
|
|
|
|
|
|
|
|
@stop
|
|
|
|
|
|
|
|
|
|
|
|
@section('content')
|
|
|
|
|
|
|
|
@if (Auth::user()->can('profiles.view.others'))
|
|
|
|
|
|
|
|
|
|
|
|
<div class="row">
|
|
|
|
|
|
|
|
@foreach ($users as $user)
|
|
|
|
<div class="col-md-4">
|
|
|
|
<!-- Widget: user widget style 1 -->
|
|
|
|
<div class="card card-widget widget-user">
|
|
|
|
<div class="widget-user-header bg-secondary">
|
|
|
|
<h3 class="widget-user-username">{{ $user->name }}</h3>
|
|
|
|
<h5 class="widget-user-desc">{{ $user->profile->profileShortBio }}</h5>
|
|
|
|
</div>
|
|
|
|
<div class="widget-user-image">
|
|
|
|
@if($user->profile->avatarPreference == 'gravatar')
|
|
|
|
<img class="profile-user-img elevation-2 img-fluid img-circle" src="https://gravatar.com/avatar/{{md5($user->email)}}" alt="User profile picture">
|
|
|
|
@else
|
|
|
|
<img class="profile-user-img elevation-2 img-fluid img-circle" src="https://crafatar.com/avatars/{{$user->uuid}}" alt="User profile picture">
|
|
|
|
@endif
|
|
|
|
</div>
|
|
|
|
<div class="card-footer text-center">
|
|
|
|
|
|
|
|
@if (Auth::user()->is($user))
|
|
|
|
|
|
|
|
<div class="user-indicator mb-2">
|
|
|
|
|
2020-09-01 17:49:08 +00:00
|
|
|
<span class="badge badge-success">{{__('messages.user.directory.itsyou')}}</span>
|
2020-06-27 18:15:33 +00:00
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
@endif
|
|
|
|
|
|
|
|
<div class="roles mb-2">
|
|
|
|
|
|
|
|
@foreach ($user->roles as $role)
|
|
|
|
|
|
|
|
<span class="badge badge-secondary mr-2">{{ucfirst($role->name)}}</span>
|
|
|
|
|
|
|
|
@endforeach
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
2020-09-01 17:49:08 +00:00
|
|
|
<button type="button" class="btn btn-sm btn-primary" onclick="window.location.href='{{ route('showSingleProfile', ['user' => $user->id]) }}'"><i class="fa fa-eye"></i> {{__('messages.profile.profile')}}</button>
|
2020-06-27 18:15:33 +00:00
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<!-- /.widget-user -->
|
|
|
|
</div>
|
|
|
|
@endforeach
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div clsas="row mt-4">
|
|
|
|
|
|
|
|
<div class="col">
|
|
|
|
|
|
|
|
<div class="card">
|
|
|
|
|
|
|
|
<div class="card-body text-center">
|
|
|
|
|
|
|
|
<div class="links">
|
|
|
|
{{ $users->links() }}
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
@else
|
|
|
|
<div class="alert alert-danger">
|
|
|
|
|
|
|
|
<p>
|
2020-09-01 17:49:08 +00:00
|
|
|
{{__('messages.component_nopermission')}}
|
2020-06-27 18:15:33 +00:00
|
|
|
</p>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
@endif
|
|
|
|
|
|
|
|
@stop
|
2020-07-16 05:46:20 +00:00
|
|
|
@section('footer')
|
|
|
|
@include('breadcrumbs.dashboard.footer')
|
|
|
|
@stop
|