<?php
$user_id = get_current_user_id();
$tab = isset($_GET['tab']) ? $_GET['tab'] : '';
$page = isset($_GET['page']) ? $_GET['page'] : 1;
?>

<div class="dash-task user-dash-box"> 
    <div class="dash-lv-info">

    <div class="vip-task-block uk-grid-small" uk-grid>
        <div class="uk-width-2-5@m">
            <div class="user-lv-block">
                <?php echo user_lv_block($user_id,'task'); ?>
            </div>
        </div>
        <div class="uk-width-3-5@m">
            <div class="user-lv-detail">
                <?php echo user_lv_detail(); ?>
            </div>
        </div>
    </div>

    </div>

     <div class="dash-task-info">
    <?php  if($tab == 'detail'){
            echo ppo_display_user_xp_detail($page,10);
        } else { ?>
        <div class="task-page-title">
            <div class="left"><i class="ri-calendar-check-line"></i><span>每日任务</span></div>
            <a href="?tab=detail" class="right">经验明细<i class="ri-arrow-right-s-line"></i></a>
        </div>
        <?php echo daily_tsak_list($user_id); ?>
        <div id="checkin-modal-here"></div>
        <div class="task-page-title">
            <div class="left"><i class="ri-user-smile-line"></i><span>新手任务</span></div>
        </div>
        <?php echo new_user_tsak_list($user_id); ?>
    <?php } ?>
    </div>
    
</div>

