@extends('layouts.app') @section('content')
{{ '@' . $user->name }}'s Profile
{{ $user->name }}-avatar @if (Auth::check() && Auth::user()->id === $user->id) @endif Username: {{ $user->name }}
Account: {{ ucfirst($user->role) }} @if (Auth::check() && Auth::user()->isElevated() || Auth::check() && Auth::user()->id === $user->id)
Email: {{ $user->email }} @if (Auth::check() && Auth::user()->id === $user->id) @endif @endif
Registered: {{ Carbon\Carbon::createFromTimeStamp(strtotime($user->created_at))->diffForHumans() }}
Last Activity: {{ Carbon\Carbon::createFromTimeStamp(strtotime($user->last_activity))->diffForHumans() }}
Contribution
Created {{ count($user->topics) }} topic{{ (count($user->topics) > 1) ? 's' : '' }}.
Created {{ count($user->posts) }} post{{ (count($user->posts) > 1) ? 's' : '' }}.
@endsection