@foreach($comments as $comment)
{{ $comment->time_display }} {{ $comment->creator->name }}
@can('update', $comment) {{ link_to_route('projects.issues.show', __('app.edit'), [$project, $issue, 'action' => 'comment-edit', 'comment_id' => $comment->id], ['id' => 'edit-comment-'.$comment->id, 'class' => 'small', 'title' => __('comment.edit')]) }} @endcan @can('delete', $comment) {!! FormField::delete( ['route' => ['issues.comments.destroy', $issue, $comment], 'class' => ''], '×', ['class' => 'btn-link', 'id' => 'delete-comment-'.$comment->id], ['comment_id' => $comment->id] ) !!} @endcan
{!! nl2br($comment->body) !!}
@endforeach @can('comment-on', $issue) {{ Form::open(['route' => ['issues.comments.store', $issue]]) }} {!! FormField::textarea('body', ['required' => true, 'label' => false, 'placeholder' => __('comment.create_text')]) !!} {{ Form::submit(__('comment.create'), ['class' => 'btn btn-success pull-right']) }} {{ Form::close() }}

@endcan @if (Request::get('action') == 'comment-edit' && $editableComment) @endif