<?php
function floorDec($val, $precision = 2)
{
    if ($precision < 0) {
        $precision = 0;
    }
    $numPointPosition = intval(strpos($val, '.'));
    if ($numPointPosition === 0) { //$val is an integer
        return $val;
    }
    return floatval(substr($val, 0, $numPointPosition + $precision + 1));
}
?>

<div class="container-fluid">
    <div class="row column_title">
        <div class="col-md-12">
            <div class="page_title">
                <h2>Dashboard</h2>
            </div>
        </div>
    </div>
    <div class="row column1">
        <div class="col-md-6 col-lg-3">
            <div class="full counter_section margin_bottom_30">
                <div class="couter_icon">
                    <div>
                        <i class="fa fa-user green_color"></i>
                    </div>
                </div>
                <div class="counter_no">
                    <div>
                        <p class="total_no"><?php echo  1;?></p>
                        <p class="head_couter">Users</p>
                    </div>
                </div>
            </div>
        </div>
        <div class="col-md-6 col-lg-3">
            <div class="full counter_section margin_bottom_30">
                <div class="couter_icon">
                    <div>
                        <i class="fa fa-user " style="color: orange;"></i>
                    </div>
                </div>
                <div class="counter_no">
                    <div>
                    <p class="total_no"><?php echo  $Coaches;?></p>
                        <p class="head_couter">Author</p>
                    </div>
                </div>
            </div>
        </div>
        <div class="col-md-6 col-lg-3">
            <div class="full counter_section margin_bottom_30">
                <div class="couter_icon">
                    <div>
                        <i  class="fas fa-user-friends" style="color: #0d26b2;"></i>
                    </div>
                </div>
                <div class="counter_no">
                    <div>
                    <p class="total_no"><?php echo  $Teams;?></p>
                        <p class="head_couter">Category</p>
                    </div>
                </div>
            </div>
        </div>
        <div class="col-md-6 col-lg-3">
            <div class="full counter_section margin_bottom_30">
                <div class="couter_icon">
                    <div>
                        <i class="fas fa-book" style="color: #4caf50;"></i>
                    </div>
                </div>
                <div class="counter_no">
                    <div>
                    <p class="total_no"><?php echo  $Courses;?></p>
                        <p class="head_couter">Books</p>
                    </div>
                </div>
            </div>
        </div>


    </div>
    <div class="row column1">
        <div class="col-lg-12 col-md-12">
            <div class="white_shd full margin_bottom_30">
                <div class="full graph_head">
                    <div class="heading1 margin_0">
                        <h2>User Signup Trend</h2>
                    </div>
                </div>
                <div class="map_section padding_infor_info">
                    <canvas id="line_chart"></canvas>
                </div>
            </div>
        </div>
    </div>


</div>