<div class="col-md-6">
    @forelse($product->comments as $comm)
        <div class="comment">
            <p>{{ $comm->comment }}</p>
            <div class="small_rating"><input type="hidden" class="rating" disabled value="{{ $comm->rating }}"/></div>
            <p style="font-size: 12px;">{{ $comm->user->name }} {{ $comm->created_at }}</p>
            <hr>
        </div>
    @empty
        {{ Lang::get('product.nocomments') }}
        <hr>
    @endforelse
    <button class="btn btn-blue" data-toggle="modal" data-target="#addcommentmodal">{{ Lang::get('modal.makecomment') }}</button>

    <div class="modal fade" id="addcommentmodal" tabindex="-1" role="dialog" aria-labelledby="commentsmodallabel" aria-hidden="true">
        <div class="modal-dialog">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                    <h4 class="modal-title" id="myModalLabel">{{ Lang::get('modal.makecomment') }}</h4>
                </div>
                <div class="modal-body">
                    {!! Form::open(['url' => 'product/'.$product->id.'/comment', 'method' => 'POST']) !!}
                    <div class="product_rating"><input type="hidden" name="rating" class="rating"/></div>
                    <!-- Comment Form Input -->
                    <div class="form-group">
                        {!! Form::label('comment', Lang::get('modal.comment')) !!}
                        {!! Form::textarea('comment', null, ['class' => 'form-control']) !!}
                    </div>

                </div>
                <div class="modal-footer">
                    {!! Form::submit(Lang::get('modal.makecomment'), ['class' => 'btn btn-blue']) !!}
                    <button type="button" class="btn btn-default" data-dismiss="modal">{{ Lang::get('modal.close') }}</button>

                </div>
            </div>
        </div>
    </div>
</div>