{{ __('Community feed') }}

{{ __('Share something with the community, or read what others are posting. Use the filters to see posts from people you follow, care providers, or members with similar diagnoses.') }}
{{-- Feed filters --}}

{{ __('Which feed do you want to see?') }}

@foreach ([ ['all', __('All')], ['following', __('Profiles I follow')], ['regular', __('Regular profiles')], ['pro', __('Care providers')], ['org', __('Organizations')], ['suggestions', __('App suggestions')], ] as [$value, $label]) @php $checked = in_array($value, $selectedTypes); @endphp @endforeach
{{-- Post form --}}
@csrf
@if ($user->primaryPhoto) {{ $user->name }} @else
@endif
{{-- Posts --}} @forelse ($posts as $post) @php $author = $post->user; @endphp
@if ($author->primaryPhoto) {{ $author->name }} @else
@endif
@if ($author->profile) {{ $author->name }} @else {{ $author->name }} @endif @if ($author->is_premium) đź’Ž @endif #{{ $author->id }}
{{ $post->created_at->diffForHumans() }}

{{ $post->body }}

@if ($post->user_id === auth()->id())
@csrf @method('DELETE')
@endif
@empty
{{ __('No posts yet. Be the first to share something!') }}
@endforelse @if ($posts->hasPages())
{{ $posts->appends(['feed_type' => $selectedTypes])->links() }}
@endif