
<?php $__env->startSection('title'); ?>
    <title><?php echo e($websiteLang->where('lang_key','client_review')->first()->custom_text); ?></title>
<?php $__env->stopSection(); ?>
<?php $__env->startSection('user-dashboard'); ?>
<div class="row">
    <div class="col-xl-9 ms-auto">
        <div class="wsus__dashboard_main_content">
          <div class="wsus__dash_riview">
            <h4 class="heading"><?php echo e($websiteLang->where('lang_key','client_review')->first()->custom_text); ?></h4>
            <div class="row">
              <div class="col-xl-12">
                <div class="wsus__dash_info client_message p_25 pb_0 pt_0 xs_pl_15 xs_pr_15">
                    <?php $__currentLoopData = $clientReviews; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                        <div class="wsus__message_single">
                            <div class="wsus__message_img">
                                <img src="<?php echo e($item->user_image ? url($item->user_image) : url($agent_default_profile->image)); ?>" alt="img" class="img-fluid">
                            </div>
                            <div class="wsus__message_text">
                                <?php
                                    $avg=$item->avarage_rating;
                                    $intAvg=intval($avg);
                                    $nextVal=$intAvg+1;
                                    $reviewPoint=$intAvg;
                                    $halfReview=false;
                                    if($intAvg < $avg && $avg < $nextVal){
                                        $reviewPoint= $intAvg + 0.5;
                                        $halfReview=true;
                                    }
                                ?>

                                <p>
                                    <?php for($i = 1; $i <=5; $i++): ?>
                                        <?php if($i <= $reviewPoint): ?>
                                            <i class="fas fa-star"></i>
                                        <?php elseif($i> $reviewPoint ): ?>
                                            <?php if($halfReview==true): ?>
                                            <i class="fas fa-star-half-alt"></i>
                                                <?php
                                                    $halfReview=false
                                                ?>
                                            <?php else: ?>
                                            <i class="fal fa-star"></i>
                                            <?php endif; ?>
                                        <?php endif; ?>
                                    <?php endfor; ?>
                                </p>
                                <a href="<?php echo e(route('agent.show',['user_type' => '2','user_name'=>$item->user_slug])); ?>" class="ttile"><?php echo e($item->name); ?></a>
                                <span><?php echo e($item->created_at->format('d M Y')); ?></span>
                                <a href="<?php echo e(route('property.details',$item->slug)); ?>" class="sub_title"><?php echo e($item->title); ?></a>
                                <p><?php echo e($item->comment); ?></p>
                            </div>
                            <div class="wsus__message_icon">
                                <a class="edit" href="<?php echo e(route('property.details',$item->slug)); ?>"><i class="far fa-eye"></i></a>
                            </div>
                        </div>
                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                </div>

                <?php echo e($clientReviews->links('user.paginator')); ?>


              </div>
            </div>
          </div>
        </div>
    </div>
</div>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('layouts.user.profile.layout', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/cloudelite/imobi.eliteteclda.com/resources/views/user/profile/client-review.blade.php ENDPATH**/ ?>