
<?php $__env->startSection('head_title', $userinfo->username.' | '. getenvcong('sitename')); ?>
<?php $__env->startSection('modedefault', 'mode-add'); ?>
<?php $__env->startSection("content"); ?>

    <div class="wt-container">

     <div class="global-container container add-container" style="padding: 0;">

            <div class="profile-splash">
        <div class="profile-splash-cov"></div>
            <img src="<?php echo e(makepreview($userinfo->splash, 'b', 'members/splash')); ?>" width="100%" data-big="" alt="<?php echo e($userinfo->username); ?>" class="profile-splash-img">
               <div class="profile-section">


                    <a href="/profile/<?php echo e($userinfo->username_slug); ?>"><img src="<?php echo e(makepreview($userinfo->icon, 'b', 'members/avatar')); ?>" width="180" height="180" data-big="" alt="<?php echo e($userinfo->username); ?>" class="profile-image"></a>

                </div>

                <div class="profile-display-name">
                    <a href="/profile/<?php echo e($userinfo->username_slug); ?>" style="margin-right:5px;">  <?php echo e($userinfo->username); ?></a>

                    <?php if($userinfo->usertype == 'Admin'): ?>
                        <div class="label label-admin" style="top:-5px;font-size:12px;"><?php echo e(trans('updates.usertypeadmin')); ?></div>
                    <?php elseif($userinfo->usertype == 'Staff'): ?>
                        <div class="label label-staff" style="top:-5px;font-size:12px;"><?php echo e(trans('updates.usertypestaff')); ?></div>
                    <?php elseif($userinfo->usertype == 'banned'): ?>
                        <div class="label label-banned" style="top:-5px;font-size:12px;"><?php echo e(trans('updates.usertypebanned')); ?></div>
                    <?php endif; ?>
                </div>

                <div id="following_area" class="profile-follow">
                    <?php echo $__env->make('.pages.users._userfollowbutton', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>
                </div>
            </div>

            <div class="profile-wrap">

                <div class="profile-content clearfix">

                    <div class="profile-sidebar">

                        <div class="profile-section">

                           <div class="profile-details">
                                <?php if($userinfo->name): ?>
                                    <div class="profile-detail">
                                        <strong><?php echo e(trans('index.usern')); ?></strong>
                                        <?php echo e($userinfo->name); ?>

                                    </div>
                                <?php endif; ?>
                                <?php if($userinfo->genre): ?>
                                    <div class="profile-detail">
                                        <strong><?php echo e(trans('index.gender')); ?></strong>
                                        <?php echo e($userinfo->genre); ?>

                                    </div>
                                <?php endif; ?>
                                <?php if($userinfo->town): ?>
                                    <div class="profile-detail">
                                        <strong><?php echo e(trans('index.location')); ?></strong>
                                        <?php echo e($userinfo->town); ?>

                                    </div>
                                <?php endif; ?>
                            </div>



                            <?php if (app('Illuminate\Contracts\Auth\Access\Gate')->check('if-authuser-allows', $userinfo)): ?>
                            <a class="button button-blue button-full set-button" href="/profile/<?php echo e($userinfo->username_slug); ?>/settings"><?php echo e(trans('index.settings')); ?></a>
                            <?php endif; ?>
                        </div>

                        <div class="profile-section">
                            <?php if($DB_PLUGIN_NEWS == 'on'): ?><div class="profile-stat">    <div class="profile-stat-label">   <i class="fa fa-file-text"></i>   <span class="stat-text"><?php echo e(trans('index.total', ['type' => trans('index.news') ])); ?></span>    </div>      <a class="profile-stat-count" href="/profile/<?php echo e($userinfo->username_slug); ?>/news"><?php echo e($newscount); ?> </a>     </div><?php endif; ?>
                            <?php if($DB_PLUGIN_LISTS == 'on'): ?><div class="profile-stat">    <div class="profile-stat-label">   <i class="fa fa-th-list"></i>   <span class="stat-text"><?php echo e(trans('index.total', ['type' => trans('index.lists') ])); ?></span>    </div>    <a class="profile-stat-count" href="/profile/<?php echo e($userinfo->username_slug); ?>/lists"><?php echo e($listscount); ?> </a>      </div><?php endif; ?>
                            <?php if($DB_PLUGIN_QUIZS == 'on'): ?><div class="profile-stat">    <div class="profile-stat-label">   <i class="fa fa-question-circle"></i>   <span class="stat-text"><?php echo e(trans('index.total', ['type' => trans('buzzyquiz.quizzes') ])); ?></span>    </div>    <a class="profile-stat-count" href="/profile/<?php echo e($userinfo->username_slug); ?>/quizzes"><?php echo e($quizzescount); ?> </a>  </div><?php endif; ?>
                            <?php if($DB_PLUGIN_POLLS == 'on'): ?><div class="profile-stat">    <div class="profile-stat-label">   <i class="fa fa-check-circle-o"></i>   <span class="stat-text"><?php echo e(trans('index.total', ['type' => trans('index.polls') ])); ?></span>    </div>    <a class="profile-stat-count" href="/profile/<?php echo e($userinfo->username_slug); ?>/polls"><?php echo e($pollscount); ?> </a>  </div><?php endif; ?>
                            <?php if($DB_PLUGIN_VIDEOS == 'on'): ?><div class="profile-stat">    <div class="profile-stat-label">   <i class="fa fa-youtube-play"></i>   <span class="stat-text"><?php echo e(trans('index.total', ['type' => trans('index.videos') ])); ?></span>    </div>    <a class="profile-stat-count" href="/profile/<?php echo e($userinfo->username_slug); ?>/videos"><?php echo e($videoscount); ?> </a>   </div><?php endif; ?>
                        </div>
<?php if($userinfo->about ): ?>
                        <div class="profile-section">
                            <div class="profile-sidebar-label">
                                <?php echo e(trans('index.about')); ?>

                            </div>
                            <p><?php echo e($userinfo->about); ?></p>
                        </div>
<?php endif; ?>
                        <?php if($userinfo->facebookurl or $userinfo->twitterurl or $userinfo->weburl ): ?>
                        <div class="profile-section">
                            <div class="profile-sidebar-label">
                                 <?php echo e(trans('index.links')); ?>

                            </div>

                            <div class="external-sign-in">
                                <?php if($userinfo->facebookurl): ?> <a href="<?php echo e($userinfo->facebookurl); ?>" class="Facebook mini"><div class="buzz-icon buzz-facebook-big"></div></a> <?php endif; ?>
                                <?php if($userinfo->twitterurl): ?><a href="<?php echo e($userinfo->twitterurl); ?>" class="Twitter mini"><div class="buzz-icon buzz-twitter-big"></div></a> <?php endif; ?>
                                <?php if($userinfo->weburl): ?> <a href="<?php echo e($userinfo->weburl); ?>" class="Weburl mini"><div class="buzz-icon buzz-weburl-big" style="margin-left:-0px"></div></a> <?php endif; ?>
                            </div>

                        </div>
                        <?php endif; ?>
                        <?php if($userinfo->following()->count() > 0): ?>
                        <div class="profile-section follow-images">
                            <div class="profile-sidebar-label">
                                <?php echo e(trans('updates.following')); ?>


                                <a class="more_follow" href="/profile/<?php echo e($userinfo->username_slug); ?>/following"><?php echo e(trans('updates.allfollow', ['count' => $userinfo->following()->count()])); ?></a>
                            </div>
                            <?php foreach($userinfo->following()->take(12)->get() as $following): ?>

                                <a class="follow-image" href="/profile/<?php echo e($following->followed->username_slug); ?>" title="<?php echo e($following->followed->username); ?>"><img src="<?php echo e(makepreview($following->followed->icon, 's', 'members/avatar')); ?>" width="52" height="52" alt="<?php echo e($following->followed->username); ?>"></a>

                            <?php endforeach; ?>
                        </div>
                        <?php endif; ?>
                        <?php if($userinfo->followers()->count() > 0): ?>
                        <div class="profile-section follow-images">
                            <div class="profile-sidebar-label">
                                <?php echo e(trans('updates.followers')); ?>

                                <a class="more_follow" href="/profile/<?php echo e($userinfo->username_slug); ?>/followers"> <?php echo e(trans('updates.allfollow', ['count' => $userinfo->followers()->count()])); ?></a>
                            </div>
                            <?php foreach($userinfo->followers()->take(12)->get() as $follower): ?>

                                <a class="follow-image" href="/profile/<?php echo e($follower->follower->username_slug); ?>" title="<?php echo e($follower->follower->username); ?>"><img src="<?php echo e(makepreview($follower->follower->icon, 's', 'members/avatar')); ?>" width="52" height="52" alt="<?php echo e($follower->follower->username); ?>"></a>

                            <?php endforeach; ?>
                        </div>
                        <?php endif; ?>


                        <div class="profile-section" style="border:0">
                            <?php echo trans('index.joinedat', ['time' => $userinfo->created_at->diffForHumans() ]); ?>

                        </div>

                    </div>

                    <div class="profile-main">

                        <?php echo $__env->yieldContent("usercontent"); ?>

                    </div>
                </div>
            </div>


        </div>

    </div>

<?php $__env->stopSection(); ?>
<?php echo $__env->make("app", array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>