@extends('components.layout') @section('title', 'My Feed | ' . ($settings['site_name'] ?? 'LOCAL PULSE')) @section('content')

My Feed

Personalized news from the topics you follow.

@if($articles->isEmpty())

No stories to show

Follow some topics below to build your personalized feed.

Discover topics
@else
@foreach($articles as $article)
@if($article->featured_image) @endif
@if($article->category) {{ $article->category->name }} @endif · {{ $article->published_at?->diffForHumans() }} @if($article->is_breaking)BREAKING@endif

{{ $article->title }}

{{ $article->excerpt ?? \Illuminate\Support\Str::limit(strip_tags($article->body), 180) }}

By {{ $article->author?->name ?? 'Staff' }} · {{ number_format($article->view_count) }} views
@endforeach
{{ $articles->links() }}
@endif

Discover & follow

Pick topics, locations and authors to build your feed.

Categories

@foreach($allCategories as $cat) @php $following = in_array($cat->id, $prefs->followed_categories ?? []); @endphp @endforeach

Locations

@foreach($allLocations->take(20) as $loc) @php $following = in_array($loc->id, $prefs->followed_locations ?? []); @endphp @endforeach

Authors

@foreach($allAuthors->take(15) as $a) @php $following = in_array($a->id, $prefs->followed_authors ?? []); @endphp @endforeach
@if($popularTags->isNotEmpty())

Trending tags

@foreach($popularTags as $t) @php $following = in_array($t->id, $prefs->followed_tags ?? []); @endphp @endforeach
@endif
@csrf @endsection