Вход Регистрация
Файл: storage/framework/views/9224791a086dcfdcee9016f0c5330a8898f2e96d.php
Строк: 132
<?php $__env->startSection('content'); ?>
<style>
.cards table {
    width: 85%;
    margin: auto;
}
</style>
        <script type="text/javascript">
    function addSmiley(id, html) {
        var e = document.getElementById(id);
        if (e != null) {
            e.value += ' ' + html + ' ';
            e.focus();
        }
    }
    function showDetails() {
        var e = document.getElementById('details');
        if (e != null) {
            if (e.style.display == 'block') { e.style.display = 'none'; } 
            else { e.style.display = 'block'; }
        }
    }
</script>
<script type="text/javascript">
    function addSmiley(id, html) {
        var e = document.getElementById(id);
        if (e != null) {
            e.value += ' ' + html + ' ';
            e.focus();
        }
    }
    function showRegulation() {
        var e = document.getElementById('regulation');
        if (e != null) {
            if (e.style.display == 'block') { e.style.display = 'none'; } 
            else { e.style.display = 'block'; }
        }
    }
</script>
    <p><img class="img-responsive" src="<?php echo e(asset('images/l.jpg')); ?>" alt=""></p>
        <h4 class="text-center name-user">
            <?php if($user->online_date time()): ?>
                <img src="<?php echo e(asset("images/on.png")); ?>" alt="">
            <?php else: ?>
                <img src="<?php echo e(asset("images/off.png")); ?>" alt="">
            <?php endif; ?>
            <?php echo e($user->login); ?><br>
            <small><?php echo e($user->sex == 'm' 'мужчина' 'женщина'); ?></small><br>
        </h4>
<div class="box">
        <p><img class="img-responsive" src="<?php echo e(asset('images/l.jpg')); ?>" alt=""></p>

        <a onclick="{ showRegulation(); return false; }" href="#regulation"><h4 class="text-center z">Показать колоду</h4></a>
<div class="regulation" id="regulation" style="display: none;">
        <?php if(count($cards) > 0): ?>
            <p>
                <div class="cards">
                    <table class="text-center">
                        <tr>
                            <?php $__currentLoopData $cards$__env->addLoop($__currentLoopData); foreach($__currentLoopData as $c): $__env->incrementLoopIndices(); $loop $__env->getLastLoop(); ?>
                                <td>
                                    <img src="/images/cards/<?php echo e($c->getCardInfo->image); ?>.png" alt="cards" width="60px">
                                </td>
                            <?php endforeach; $__env->popLoop(); $loop $__env->getLastLoop(); ?>
                        </tr>
                    </table>
                </div>
            </p>
        <?php else: ?>
            <center>
                <font color="white">
                    Колода не собрана 
                </font>
            </center>
        <?php endif; ?>
        <p><img class="img-responsive" src="<?php echo e(asset('images/l.jpg')); ?>" alt=""></p>
</div>

        <h4 class="text-center z">Статистика сражений</h4>

            <h5 class="text-center">Побед</h5>

        <p>
            <div class="pobed text-center"><?php echo e($user->total_battles round($user->wins/$user->total_battles*100) : 0); ?>%</div>
            <div class="progres-bg">
                <div class="progres1" style="width: <?php echo e($user->total_battles round($user->wins/$user->total_battles*100) : 0); ?>%;"></div>
            </div>
        </p>

            <h5 class="text-center">Поражений</h5>

        <p>
            <div class="pobed text-center"><?php echo e($user->total_battles round($user->loses/$user->total_battles*100) : 0); ?>%</div>
            <div class="progres-bg">
                <div class="progres2" style="width: <?php echo e($user->total_battles round($user->loses/$user->total_battles*100) : 0); ?>%;"></div>
            </div>
        </p>

                <p><img class="img-responsive" src="<?php echo e(asset('images/l.jpg')); ?>" alt=""></p>

<a onclick="{ showDetails(); return false; }" href="#details"><h4 class="text-center z">Открыть статистику</h4></a>
<div class="details" id="details" style="display: none;">
        <p>
            <ul class="list-unstyled stat">
              <li><img src="<?php echo e(asset('images/cards-m.png')); ?>" width="20px" alt=""> Изучено карт: <span class="s"><?php echo e($cardsCount); ?></span></li>
              <li><img src="<?php echo e(asset('images/b.png')); ?>" width="20px" alt=""> Побеждено соперников: <span class="s"><?php echo e($user->wins); ?></span></li>
              <li><img src="<?php echo e(asset('images/b.png')); ?>" width="20px" alt=""> Всего сыграно боёв: <span class="s"><?php echo e($user->total_battles); ?></span></li>
              <?php if(Auth::user()->role != 'user'): ?>
                  <img src="<?php echo e(asset('images/b.png')); ?>" width="20px" alt=""> IP-адрес: <span class="s"><?php echo e($user->ip); ?></span>
            <?php endif; ?>
            </ul>
        </p>
        <p><img class="img-responsive" src="<?php echo e(asset('images/l.jpg')); ?>" alt=""></p>
</div></ul>
        <div class="menu">
            <?php if($user->block_time time() && Auth::user()->role != 'user' && $user->role == 'user'): ?>
                <center><a href="/admin/blockUser/<?php echo e($user->id); ?>"> Выдать блокировку</a></center>
            <?php endif; ?>
            <?php if($user->id != Auth::user()->id): ?>
                <center><a href="/mail/new/<?php echo e($user->id); ?>"> Написать сообщение</a></center>
                <?php if($issetFL == && $issetBL == 0): ?>
            </div><br>
            <center>
<table width="50%">
            <tbody><tr>
              <td width="70%">
              <a href="/mail/friendlist/add<?php echo e($user->id); ?>">
                  <img src="/images/vdr.png" width="50px" alt="">
                </a>
              </td>
              <td width="30%">
                    <a href="/mail/blacklist/add<?php echo e($user->id); ?>">
                        <img src="/images/vchs.png" width="50px" alt="">
                </a>
              </td>        
            </tr>
          </tbody></table></center>
                <?php endif; ?>
            <?php else: ?>
                <a href="/settings"> Настройки</a>
                <a href="/referal"> Реферальная программа</a>
                <center><a href="/quit"> Выход</a></center>
            <?php endif; ?>
        </div></div></a>
<?php $__env->stopSection(); ?>
<?php 
echo $__env->make('layouts.main'array_except(get_defined_vars(), array('__data''__path')))->render(); ?>
Онлайн: 2
Реклама