<div class="col-md-6">
    <?php $__empty_1 = true; foreach($product->comments as $comm): $__empty_1 = false; ?>
        <div class="comment">
            <p><?php echo e($comm->comment); ?></p>
            <div class="small_rating"><input type="hidden" class="rating" disabled value="<?php echo e($comm->rating); ?>"/></div>
            <p style="font-size: 12px;"><?php echo e($comm->user->name); ?> <?php echo e($comm->created_at); ?></p>
            <hr>
        </div>
    <?php endforeach; if ($__empty_1): ?>
        <?php echo e(Lang::get('product.nocomments')); ?>

        <hr>
    <?php endif; ?>
    <button class="btn btn-blue" data-toggle="modal" data-target="#addcommentmodal"><?php echo e(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"><?php echo e(Lang::get('modal.makecomment')); ?></h4>
                </div>
                <div class="modal-body">
                    <?php echo 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">
                        <?php echo Form::label('comment', Lang::get('modal.comment')); ?>

                        <?php echo Form::textarea('comment', null, ['class' => 'form-control']); ?>

                    </div>

                </div>
                <div class="modal-footer">
                    <?php echo Form::submit(Lang::get('modal.makecomment'), ['class' => 'btn btn-blue']); ?>

                    <button type="button" class="btn btn-default" data-dismiss="modal"><?php echo e(Lang::get('modal.close')); ?></button>

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