@extends('layouts.app') @section('title') Profile of: {{ $user->username }} @endsection @section('content')
profile picture

{{ $user->username }}

@auth @if ($user->id === auth()->user()->id) @endif @endauth

0 Followers

0 Following

{{ $user->posts->count() }} Posts

@auth @if ($user->id !== auth()->user()->id) @if (!$user->following(auth()->user()))
@csrf
@else
@csrf @method('DELETE')
@endif @endif @endauth

Posts

@if ($posts->count())
@foreach ($posts as $post)
{{ $post->title }}
@endforeach
{{ $posts->links() }}
@else

No posts yet

@endif
@endsection