 <?php $__currentLoopData = $reviews; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $review): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <li class="review li-comment"> <div id="comment" class="comment_container row"> <div class="col-md-2 col-sm-2"> <img alt='<?php echo app('translator')->getFromJson('User Image'); ?>' src='<?php echo e(asset('img/icons/default-avatar.png')); ?>' srcset='<?php echo e(asset('img/icons/default-avatar.png')); ?> 2x' class='avatar avatar-100 photo img-rounded img-responsive mt-0' height='100' width='100' /> </div> <div class="col-md-10 col-sm-10 outer-bottom-xs"> <div class="inner-bottom-xs"> <div class="star-rating" role="img" > <?php
                            $empty_stars = 5 - $review->rating;
                        ?> <?php for($i=1; $i <= $review->rating; $i++): ?> <span class="float-right"><i class="text-warning fa fa-star"></i></span> <?php endfor; ?> <?php for($i=1; $i <= $empty_stars; $i++): ?> <span class="float-right"><i class="text-warning fa fa-star-o"></i></span> <?php endfor; ?> <?php if(Auth::check()): ?> <?php if($review->user_id == Auth::user()->id): ?> <span class="pull-right"> <a class="btn btn-primary edit-review custom-review-edit-btn" href="<?php echo e(route('front.reviews.edit', ['id'=>$review->id])); ?>" > <?php echo app('translator')->getFromJson('Edit Review'); ?> <i class="fa fa-edit"></i> </a> </span> <?php endif; ?> <?php endif; ?> </div> <p class="meta pt-0"> <strong class="author"><?php echo e($review->user->name); ?> </strong> <span class="dash">&ndash;</span> <time class="published-date" datetime="<?php echo e($review->created_at); ?>"><?php echo e($review->created_at->toFormattedDateString()); ?></time> <?php if($review->approved == 0): ?> <small class="text-danger d-block"> <strong> <?php echo app('translator')->getFromJson('Pending for approval from administrators'); ?> </strong> </small> <?php endif; ?> </p> <div class="description"> <p class="pt-0"><?php echo e(strlen($review->comment) > 150 ? substr($review->comment,0,150)."..." : $review->comment); ?></p> </div> </div> </div> </div> </li> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>