@extends('layout') @section('title', 'u/' . $user->name) @section('content')

u/{{ $user->name }}

Karma: {{ $user->karma }}

Joined {{ $user->created_at->diffForHumans() }}

Posts

@forelse($posts as $post)

{{ $post->title }}

r/{{ $post->community->name }} • {{ $post->votes }} votes • {{ $post->comments->count() }} comments • {{ $post->created_at->diffForHumans() }}
@empty

No posts yet.

@endforelse
{{ $posts->links() }}

Comments

@forelse($comments as $comment)

{{ Str::limit($comment->content, 200) }}

On {{ $comment->post->title }} in r/{{ $comment->post->community->name }} • {{ $comment->votes }} votes • {{ $comment->created_at->diffForHumans() }}
@empty

No comments yet.

@endforelse
{{ $comments->links() }}
@endsection