All Posts

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

(Manage Your Posts)

{{ $posts->links() }} @foreach($posts as $post) @endforeach
ID Headline Time Publisher Category Total Hit Action
{{ $post->id }} {{ $post->headline}} {{ 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() }}