You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

22 lines
1.0 KiB

@can('comment-on', $project)
{{ Form::open(['route' => ['projects.comments.store', $project]]) }}
<div class="row">
<div class="col-md-9">{!! FormField::textarea('body', ['required' => true, 'label' => false, 'placeholder' => __('comment.create_text')]) !!}</div>
<div class="col-md-3">
{{ Form::submit(__('comment.create'), ['class' => 'btn btn-success btn-block']) }}<br>
</div>
</div>
{{ Form::close() }}
@endcan
@foreach($comments as $comment)
<div class="alert alert-warning">
<legend style="font-size: 14px;margin-bottom: 10px;">
<span class="label label-default pull-right">{{ $comment->created_at }}</span>
<strong>{{ $comment->creator->name }}</strong>
</legend>
@can('update', $comment)
{{ link_to_route('projects.comments.index', __('app.edit'), [$project, 'action' => 'comment-edit', 'comment_id' => $comment->id], ['id' => 'edit-comment-'.$comment->id, 'class' => 'small pull-right', 'title' => __('comment.edit')]) }}
@endcan
{!! nl2br($comment->body) !!}
</div>
@endforeach