@extends('frontend.layouts.app') @section('metatags') @endsection @section('title', $category->name ) @section('content')

{{$category->name }}

@if(count($posts) !=0 )
@if($category->posts->count() > 0)
@foreach ($category->posts as $post)
@foreach($post->categories as $category) {{ $category->name }} @endforeach

{{ $post->title }}

{{ $post->created_at->toFormattedDateString() }}
@endforeach
@endif
@include('frontend/pages/blog/list-categories')
@else

No Post :(

@endif @endsection @section('scripts') @endsection