2020-06-27 00:32:33 +01:00
@ extends ( 'adminlte::page' )
2022-03-19 18:05:49 +00:00
@ section ( 'title' , config ( 'app.name' ) . ' | ' . __ ( " :userNameValue's profile " , [ 'userNameValue' => $profile -> user -> name ]))
2020-06-27 00:32:33 +01:00
@ section ( 'content_header' )
2022-03-19 18:05:49 +00:00
< h4 > {{ __ ( 'Users' )}} / {{ __ ( 'Profile' )}} / {{ $profile -> user -> name }} </ h4 >
2020-06-27 00:32:33 +01:00
@ stop
@ section ( 'js' )
< script src = " /js/app.js " ></ script >
< x - global - errors ></ x - global - errors >
@ stop
@ section ( 'content' )
2021-07-20 22:35:49 +01:00
@ if ( is_array ( $suspensionInfo ))
2020-06-27 00:32:33 +01:00
< div class = " alert alert-danger " >
2022-03-19 18:05:49 +00:00
< span >< i class = " fa fa-ban " ></ i > < b > {{ __ ( 'This account has been suspended :suspensionTypeValue' , [ 'suspensionTypeValue' => ( $suspensionInfo [ 'isPermanent' ]) ? __ ( 'permanently.' ) : __ ( 'until :date.' , [ 'date' => $suspensionInfo [ 'bannedUntil' ]])]) }} </ b ></ span >
2020-06-27 00:32:33 +01:00
2022-04-04 13:06:01 +01:00
< p > {{ __ ( 'This user has been suspended.' )}} </ p >
2020-06-27 00:32:33 +01:00
< p >
2021-07-20 22:35:49 +01:00
< i class = " fas fa-chevron-right " ></ i > < b > {{ $suspensionInfo [ 'reason' ]}} </ b >
2020-06-27 00:32:33 +01:00
</ p >
</ div >
@ endif
< div class = " row mb-3 " >
< div class = " col " >
< div class = " text-center " >
@ if ( $profile -> avatarPreference == 'gravatar' )
2022-03-19 18:05:49 +00:00
< img class = " profile-user-img img-fluid img-circle " src = " https://gravatar.com/avatar/ { { md5( $profile->user ->email)}} " alt = " { { __('User profile picture') }} " >
2020-06-27 00:32:33 +01:00
@ else
2022-03-19 18:05:49 +00:00
< img class = " profile-user-img img-fluid img-circle " src = " https://crafatar.com/avatars/ { { $profile -> user -> uuid } } " alt = " { { __('User profile picture') }} " >
2020-06-27 00:32:33 +01:00
@ endif
</ div >
</ div >
</ div >
< div class = " row " >
< div class = " col-md-4 offset-md-4 " >
< div class = " card " >
< div class = " card-body text-center " >
@ if ( $profile -> user -> isBanned ())
< del >< h3 > {{ $profile -> user -> name }} </ h3 ></ del >
@ else
< h3 > {{ $profile -> user -> name }} </ h3 >
@ endif
< p class = " text-muted " > {{ $profile -> profileShortBio }} </ p >
2022-03-19 18:05:49 +00:00
< p class = " text-muted " > {{ __ ( 'Member since :date' , [ 'date' => $since ])}} </ p >
2020-06-27 00:32:33 +01:00
@ if ( $profile -> user -> is ( Auth :: user ()))
< button type = " button " class = " btn btn-sm btn-warning " onclick = " window.location.href=' { { route('showProfileSettings')}}' " >< i class = " fas fa-pencil-alt " ></ i ></ button >
@ endif
</ div >
< div class = " card-footer text-center " >
@ foreach ( $profile -> user -> roles as $role )
< span class = " badge badge-success mr-2 " > {{ ucfirst ( $role -> name )}} </ span >
@ endforeach
</ div >
</ div >
</ div >
</ div >
< div class = " row buttonBar " >
< div class = " col-md-4 offset-md-4 " >
< div class = " card " style = " border-radius: 50px " >
< div class = " card-body text-center " >
< a href = " https://github.com/ { { $github } } " class = " pr-2 pl-2 " >< i class = " fab fa-github fa-2x " ></ i ></ a >
2022-03-19 18:05:49 +00:00
< a href = " # " onclick = " toastr.info(' { { __( " User 's Discord Tag: :discordTag", [' discordTag ' => $discord])}}' ) " class= " pr - 2 pl - 2 " ><i class= " fab fa - discord fa - 2 x " ></i></a>
2020-06-27 00:32:33 +01:00
< a href = " https://twitter.com/ { { $twitter } } " class = " pr-2 pl-2 " >< i class = " fab fa-twitter fa-2x " ></ i ></ a >
< a href = " https://instagram.com/ { { $insta } } " class = " pr-2 pl-2 " >< i class = " fab fa-instagram fa-2x " ></ i ></ a >
</ div >
</ div >
</ div >
</ div >
< div class = " row " >
< div class = " col " >
< div class = " card " >
< div class = " card-header " >
2022-03-19 18:05:49 +00:00
< h4 > {{ __ ( 'About' )}} </ h4 >
2020-06-27 00:32:33 +01:00
</ div >
< div class = " card-body " >
{{ $profile -> profileAboutMe }}
</ div >
</ div >
</ div >
</ div >
2020-07-16 06:46:20 +01:00
@ stop
2020-06-27 00:32:33 +01:00
2020-07-16 06:46:20 +01:00
@ section ( 'footer' )
@ include ( 'breadcrumbs.dashboard.footer' )
2020-06-27 00:32:33 +01:00
@ stop