@extends('main') @section('title' , '| Dodany Post') @section('content')
@if(session('error'))
{{ session('error') }}
@endif

{{ $post->title }}

{!! $post->body !!}


@foreach ($post->tags as $tag) {{ $tag->name }} @endforeach

Komentarze {{ $post->comments()->count() }} total

@foreach($post->comments as $comment) @endforeach
Imie Email Komentarz
{{ $comment->name }} {{ $comment->email }} {{ $comment->comment }}

{{ route('fastcat.single' , $post->slug) }}

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

{{ date('n.d.Y H:i' , strtotime($post->created_at)) }}

{{ date('n.d.Y H:i', strtotime($post->updated_at)) }}


{!! Html::linkRoute('posts.edit' , 'Edytuj' , array($post->id) , array('class' => 'btn btn-primary btn-block')) !!}
{!! Form::open(['route' => ['posts.destroy' , $post->id], 'method' => 'DELETE' ]) !!} {!! Form ::submit('Usuń' , ['class' => 'btn btn-danger btn-block']) !!} {!! Form ::close() !!}
{{ Html::linkRoute('posts.index' , '<< Pokaż wszystkie posty', array() , ['class' => 'btn btn-success btn-block btn-h1-spacing']) }}
@endsection