<div class="layout-section">
    <div class="row gx-lg-5 align-items-lg-center">
        <div class="col-lg-auto">
            <img src="<?php echo LOCAL.'/rank/'.$ProfileRank['level'].'.svg';?>" height="100">
        </div>
        <div class="col-lg">
            <div class="h4 mb-1">
                <?php echo $ProfileRank['name'].' '.$this->translate('Level').' '.$ProfileRank['level'];?>
            </div>
            <div class="fs-sm text-muted">
                <?php echo $this->translate('This player have exceeded');?>
                <?php echo $Listing['xp'];?> xp</div>
            <div class="progress mt-3 bg-gray-200" style="height: 12px;">
                <div class="progress-bar progress-xp rounded-pill" role="progressbar" style="width: <?php echo $ProgressBar ?>%" aria-valuenow="<?php echo $ProgressBar ?>" aria-valuemin="0" aria-valuemax="100"></div>
            </div>
        </div>
    </div>
</div>
<?php if(get($Settings,'data.history','general') == 1) { ?>
<div class="layout-section">
    <div class="layout-heading mb-3 text-muted d-flex align-items-center">
        <h3 class="fs-lg fw-bold mb-0">
            <?php echo $this->translate('Keep playing');?>
        </h3>
        <a href="<?php echo user($Listing['id'],$Listing['username']).'/playing';?>" class="fs-sm text-current ms-auto">
            <?php echo $this->translate('View all');?></a>
    </div>
    <?php if(isset($Plays)) { ?>
    <div class="card-masonry">
        <?php foreach ($Plays as $Play) { ?>
        <a href="<?php echo play($Play['id'],$Play['self']);?>" class="card">
            <?php echo picture(GAME_FOLDER,'thumb-'.$Play['image'],'img-fluid',$Play['title'],GAME_X.','.GAME_Y);?>
            <div class="card-body">
                <h3>
                    <?php echo $Play['title'];?>
                </h3>
            </div>
        </a>
        <?php } ?>
    </div>
    <?php } else { ?>
    <div class="fs-sm text-muted">
        <?php echo $this->translate('No game played before');?>
    </div>
    <?php } ?>
</div>
<?php } ?>
<div class="layout-section">
    <div class="layout-heading mb-3 text-muted d-flex align-items-center">
        <h3 class="fs-lg fw-bold mb-0">
            <?php echo $this->translate('Liked games');?>
        </h3>
        <a href="<?php echo user($Listing['id'],$Listing['username']).'/like';?>" class="fs-sm text-current ms-auto">
            <?php echo $this->translate('View all');?></a>
    </div>
    <?php if(isset($Likes)) { ?>
    <div class="card-masonry">
        <?php foreach ($Likes as $Like) { ?>
        <a href="<?php echo play($Like['id'],$Like['self']);?>" class="card">
            <?php echo picture(GAME_FOLDER,'thumb-'.$Like['image'],'img-fluid',$Like['title'],GAME_X.','.GAME_Y);?>
            <div class="card-body">
                <h3>
                    <?php echo $Like['title'];?>
                </h3>
            </div>
        </a>
        <?php } ?>
    </div>
    <?php } else { ?>
    <div class="fs-sm text-muted">
        <?php echo $this->translate('No game like before');?>
    </div>
    <?php } ?>
</div>
<div class="layout-section">
    <div class="layout-heading mb-3">
        <h3 class="fs-lg fw-bold"><?php echo $this->translate('Comments');?><span class="ms-3 text-muted fs-base fw-normal">(
                <?php echo $TotalRecord;?> )</span></h3>
    </div>
    <?php foreach($Comments as $Comment) { ?>
    <form method="post" name="remove" data-id="<?php echo $Comment['comment_id'];?>" action="<?php echo user($Listing['id'],$Listing['username']);?>" class="row mb-3">
        <input type="hidden" name="_TOKEN" value="<?php echo $Token;?>">
        <input type="hidden" name="_ACTION" value="remove">
        <input type="hidden" name="_ID" value="<?php echo $Comment['comment_id'];?>">
        <div class="col-auto">
            <div class="w-100px">
                <?php echo picture(GAME_FOLDER,'thumb-'.$Comment['image'],'img-fluid rounded-3',$Comment['title'],GAME_X.','.GAME_Y);?>
            </div>
        </div>
        <div class="col">
            <div class="fs-xs text-muted mb-1">
                <?php echo dating($Comment['created']);?>
            </div>
            <div class="h5 mb-1">
                <?php echo $Comment['title'];?>
            </div>
            <div class="fs-sm text-muted">
                <?php echo $Comment['comment'];?>
            </div>
        </div>
        <div class="col-lg-auto">
            <button type="submit" class="btn rounded-pill btn-sm fs-xs btn-danger">Remove</button>
        </div>
    </form>
    <?php } ?>
</div>