All Posts

@if (count($errors) > 0) @foreach ($errors->all() as $error) @endforeach @endif @if (Session::get('message')) @endif

All Posts manage your posts

{{ $posts->links() }} @foreach($posts as $post) @endforeach
ID title Time Writer Category Hits Action
{{ $post->id }} {{ $post->title}} {{ Carbon\Carbon::createFromFormat('Y-m-d H:i:s', $post->created_at)->format('H:i/d-m') }} {{ $post->User ? $post->User->name : '' }} @foreach($post->Category->lists('name')->all() as $cat) {{ $cat}} @endforeach {{ $post->view_count }}
{{ csrf_field() }}
{{ $posts->links() }}