@extends('front.template') @section('head') {!! HTML::style('ckeditor/plugins/codesnippet/lib/highlight/styles/monokai.css') !!} @stop @section('main')

{{ $post->title }}
{{ $post->user->username }} {{ trans('front/blog.on') }} {!! $post->created_at . ($post->created_at != $post->updated_at ? trans('front/blog.updated') . $post->updated_at : '') !!}


{!! $post->summary !!}
{!! $post->content !!}
@if($post->tags->count())
@if($post->tags->count() > 0) {{ trans('front/blog.tags') }} @foreach($post->tags as $tag) {!! link_to('blog/tag?tag=' . $tag->id, $tag->tag, ['class' => 'btn btn-default btn-xs']) !!} @endforeach @endif
@endif

{{ trans('front/blog.comments') }}


@if($comments->count()) @foreach($comments as $comment)

{{ $comment->user->username . ' ' . trans('front/blog.on') . ' ' . $comment->created_at }} @if($user && $user->username == $comment->user->username) @endif

{!! $comment->content !!}

@endforeach @endif
@if(session()->has('warning')) @include('partials/error', ['type' => 'warning', 'message' => session('warning')]) @endif @if(session('statut') != 'visitor') {!! Form::open(['url' => 'comment']) !!} {!! Form::hidden('post_id', $post->id) !!} {!! Form::control('textarea', 12, 'comments', $errors, trans('front/blog.comment')) !!} {!! Form::submit(trans('front/form.send'), ['col-lg-12']) !!} {!! Form::close() !!} @else
{{ trans('front/blog.info-comment') }}
@endif
@stop @section('scripts') {!! HTML::script('ckeditor/plugins/codesnippet/lib/highlight/highlight.pack.js') !!} @if(session('statut') != 'visitor') {!! HTML::script('ckeditor/ckeditor.js') !!} @endif @stop