<div class="page-title-overlap pt-4" style="background-image: url('<?php echo e(url('/')); ?>/public/storage/settings/<?php echo e($allsettings->site_banner); ?>');">
      <div class="container d-flex flex-wrap flex-sm-nowrap justify-content-center justify-content-sm-between align-items-center pt-2">
        <div class="media media-ie-fix align-items-center pb-3">
          <div class="img-thumbnail rounded-circle position-relative">
          <?php if($user['user']->user_photo != ''): ?>
          <img class="lazy rounded-circle" width="90" height="90" src="<?php echo e(url('/')); ?>/public/storage/users/<?php echo e($user['user']->user_photo); ?>"  alt="<?php echo e($user['user']->username); ?>">
          <?php else: ?>
          <img class="lazy rounded-circle" width="90" height="90" src="<?php echo e(url('/')); ?>/public/img/no-user.png"  alt="<?php echo e($user['user']->username); ?>">
          <?php endif; ?>
          </div>
          <div class="media-body pl-3">
            <h3 class="text-light font-size-lg mb-0">
			<?php if($addition_settings->author_name_limit != 0): ?>
			<?php echo e(mb_substr($user['user']->username,0,$addition_settings->author_name_limit,'utf-8')); ?>

			<?php else: ?>
			<?php echo e($user['user']->username); ?>	  
			<?php endif; ?>			
			<?php if($addition_settings->subscription_mode == 1): ?> <?php if($user['user']->user_document_verified == 1): ?> <span class="badges-success"><i class="dwg-check-circle danger"></i> <?php echo e(__('verified')); ?></span> <?php endif; ?> <?php endif; ?></h3>
            <span class="d-block text-light font-size-ms opacity-60 py-1">
            <?php if($user['user']->user_type == 'vendor'): ?>
            <?php if($user['user']->country_badge == 1): ?><?php echo e($country['view']->country_name); ?>,<?php endif; ?> <?php endif; ?> <?php if($user['user']->user_type == 'customer'): ?> <?php if($user['user']->country != ''): ?> <?php echo e($country['view']->country_name); ?>, <?php endif; ?> <?php endif; ?> <?php echo e(__('Member since')); ?> <?php echo e($since); ?></span>
            <?php if($user['user']->user_freelance == 1): ?>
            <span class="badge badge-success"><i class="dwg-check mr-1"></i><?php echo e(__('Available for Freelance work')); ?></span>
            <?php endif; ?>
            <?php if(Auth::guest()): ?>
            <div class="mt-2">
            <a class="btn btn-primary btn-sm btn-shadow" href="javascript:void(0);" onClick="alert('<?php echo e(__('Login user only')); ?>');"><?php echo e(__('Follow')); ?></a>
            </div>
            <?php endif; ?>
            <?php if(Auth::check()): ?>
            <?php if($user['user']->username != Auth::user()->username): ?>
            <?php if($followcheck == 0): ?>
            <div class="mt-2">
            <a href="<?php echo e(url('/user')); ?>/<?php echo e(Auth::user()->id); ?>/<?php echo e($user['user']->id); ?>" class="btn btn-primary btn-shadow btn-sm"><?php echo e(__('Follow')); ?></a>
            </div>
            <?php else: ?>
            <div class="mt-2">
            <a href="<?php echo e(url('/user')); ?>/unfollow/<?php echo e(Auth::user()->id); ?>/<?php echo e($user['user']->id); ?>" class="btn btn-primary btn-shadow btn-sm"><?php echo e(__('UnFollow')); ?></a>
            </div>
            <?php endif; ?>
            <?php endif; ?>
            <?php endif; ?>
          </div>
        </div>
        <?php if($user['user']->user_type == 'vendor'): ?>
        <div class="d-flex">
          <?php if($addition_settings->item_sale_count == 1): ?>
          <div class="text-sm-right mr-5">
            <div class="text-light font-size-base"><?php echo e(__('total sales')); ?></div>
            <h3 class="text-light"><?php echo e($getsalecount); ?></h3>
          </div>
          <?php endif; ?>
          <div class="text-sm-right">
            <div class="text-light font-size-base"><?php echo e(__('Total Ratings')); ?></div>
            <div class="star-rating">
                    <?php if($count_rating == 0): ?>
                    <i class="sr-star dwg-star"></i>
                    <i class="sr-star dwg-star"></i>
                    <i class="sr-star dwg-star"></i>
                    <i class="sr-star dwg-star"></i>
                    <i class="sr-star dwg-star"></i>
                    <?php endif; ?>
                    <?php if($count_rating == 1): ?>
                    <i class="sr-star dwg-star-filled active"></i>
                    <i class="sr-star dwg-star"></i>
                    <i class="sr-star dwg-star"></i>
                    <i class="sr-star dwg-star"></i>
                    <i class="sr-star dwg-star"></i>
                    <?php endif; ?>
                    <?php if($count_rating == 2): ?>
                    <i class="sr-star dwg-star-filled active"></i>
                    <i class="sr-star dwg-star-filled active"></i>
                    <i class="sr-star dwg-star"></i>
                    <i class="sr-star dwg-star"></i>
                    <i class="sr-star dwg-star"></i>
                    <?php endif; ?>
                    <?php if($count_rating == 3): ?>
                    <i class="sr-star dwg-star-filled active"></i>
                    <i class="sr-star dwg-star-filled active"></i>
                    <i class="sr-star dwg-star-filled active"></i>
                    <i class="sr-star dwg-star"></i>
                    <i class="sr-star dwg-star"></i>
                    <?php endif; ?>
                    <?php if($count_rating == 4): ?>
                    <i class="sr-star dwg-star-filled active"></i>
                    <i class="sr-star dwg-star-filled active"></i>
                    <i class="sr-star dwg-star-filled active"></i>
                    <i class="sr-star dwg-star-filled active"></i>
                    <i class="sr-star dwg-star"></i>
                    <?php endif; ?>
                    <?php if($count_rating == 5): ?>
                    <i class="sr-star dwg-star-filled active"></i>
                    <i class="sr-star dwg-star-filled active"></i>
                    <i class="sr-star dwg-star-filled active"></i>
                    <i class="sr-star dwg-star-filled active"></i>
                    <i class="sr-star dwg-star-filled active"></i>
                    <?php endif; ?>
                </div>
            <div class="text-light opacity-60 font-size-xs">(<?php echo e($getreview); ?>)</div>
          </div>
        </div>
        <?php endif; ?>
      </div>
    </div><?php /**PATH /home/communi1/bi8t.link/resources/views/user-box.blade.php ENDPATH**/ ?>