@extends('blog.layout') @section('content')
@if(count($posts) <= 0)

no data found

@endif @foreach ($posts as $key => $post)

Image
{{ $post->category->name }}

{{ $post->title }}

{{ $post->content }}

@foreach ($post->tags as $tag) {{ $tag->name }} @if (!$loop->last) , @endif @endforeach
{{ $post->created_at->format('F d, Y') }}

by {{ $post->user->name ?? "" }}
@endforeach
{{--
Prev Next
Page
--}}
Prev Next
Page
@endsection