@foreach ($posts as $post)
@endforeach
- @if ($post->category) {{ $post->category->name }} @endif