diff --git a/resources/views/users/show.blade.php b/resources/views/users/show.blade.php new file mode 100644 index 0000000..5cdd42e --- /dev/null +++ b/resources/views/users/show.blade.php @@ -0,0 +1,57 @@ +@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