@forelse ($posts as $post) @empty @endforelse
Article Overview Topic Engagement Status Actions
@php $placeholders = [ 'https://images.unsplash.com/photo-1664575602554-2087b04935a5?w=200&h=200&fit=crop', 'https://images.unsplash.com/photo-1661956602116-aa6865609028?w=200&h=200&fit=crop', 'https://images.unsplash.com/photo-1661956602153-23384936a1d3?w=200&h=200&fit=crop', ]; $placeholder = $placeholders[$post->id % count($placeholders)]; @endphp
{{ $post->title }}
{{ $post->slug }}
{{ $post->category->name }}
{{ $post->author->name }}
{{ number_format($post->views) }} views
@if($post->status === 'published') {{ $post->status }} @else {{ $post->status }} @endif
@csrf @method('DELETE')
@if($posts->hasPages())
{{ $posts->links() }}
@endif