<!-- Page Heading -->
<div class="d-sm-flex align-items-center justify-content-between mb-4">
    <h1 class="h3 mb-0 text-gray-800">Dashboard</h1>
</div>

<!-- Content Row -->
<div class="row">

    <div class="col-xl-4 col-md-6">
        <!-- Bar Chart -->
        <div class="card shadow mb-4">
            <div class="card-header py-3">
                <h6 class="m-0 font-weight-bold text-primary">Issues by Priority</h6>
            </div>
            <div class="card-body">
                <div class="chart-bar">
                    <canvas id="issueByPriorityBarChart"></canvas>
                </div>
            </div>
        </div>
    </div>

    <!-- Pie Chart -->
    <div class="col-xl-4 col-md-6">
        <div class="card shadow mb-4">
            <!-- Card Header - Dropdown -->
            <div
                class="card-header py-3 d-flex flex-row align-items-center justify-content-between">
                <h6 class="m-0 font-weight-bold text-primary">Issues by Type</h6>
            </div>
            <!-- Card Body -->
            <div class="card-body">
                <div class="chart-pie pt-4 pb-2">
                    <canvas id="myPieChart"></canvas>
                </div>
                <div class="mt-4 text-center small">
                    <span class="mr-2">
                    </span>
                </div>
            </div>
        </div>
    </div>

    <!-- Issues Open -->
    <div class="col-xl-3 col-md-6 mb-4">
        <div class="card border-left-success shadow h-100 py-2">
            <div class="card-body">
                <div class="row no-gutters align-items-center">
                    <div class="col mr-2">
                        <div class="text-xs font-weight-bold text-success text-uppercase mb-1">Issues Open
                        </div>
                        <div class="row no-gutters align-items-center">
                            <div class="col-auto">
                                <div class="h5 mb-0 mr-3 font-weight-bold text-gray-800"><%= issuesOpen %></div>
                            </div>
                        </div>
                    </div>
                    <div class="col-auto">
                        <i class="fas fa-clipboard-list fa-2x text-gray-300"></i>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <!-- Issues Closed -->
    <div class="col-xl-3 col-md-6 mb-4">
        <div class="card border-left-danger shadow h-100 py-2">
            <div class="card-body">
                <div class="row no-gutters align-items-center">
                    <div class="col mr-2">
                        <div class="text-xs font-weight-bold text-danger text-uppercase mb-1">
                            Issues Closed</div>
                        <div class="h5 mb-0 font-weight-bold text-gray-800"><%= issuesClosed %></div>
                    </div>
                    <div class="col-auto">
                        <i class="fas fa-clipboard-list fa-2x text-gray-300"></i>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <!-- Total projects -->
    <div class="col-xl-3 col-md-6 mb-4">
        <div class="card border-left-primary shadow h-100 py-2">
            <div class="card-body">
                <div class="row no-gutters align-items-center">
                    <div class="col mr-2">
                        <div class="text-xs font-weight-bold text-primary text-uppercase mb-1">
                            Projects</div>
                        <div class="h5 mb-0 font-weight-bold text-gray-800"><%= projectsCount %></div>
                    </div>
                    <div class="col-auto">
                        <i class="fas fa-fw fa-cog fa-2x text-gray-300"></i>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <!-- User assigned -->
    <div class="col-xl-3 col-md-6 mb-4">
        <div class="card border-left-info shadow h-100 py-2">
            <div class="card-body">
                <div class="row no-gutters align-items-center">
                    <div class="col mr-2">
                        <div class="text-xs font-weight-bold text-info text-uppercase mb-1">
                            My projects</div>
                        <div class="h5 mb-0 font-weight-bold text-gray-800"><%= myProjects %></div>
                    </div>
                    <div class="col-auto">
                        <i class="fas fa-user fa-2x text-gray-300"></i>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>

<!-- Content Row -->
<!--
<div class="row">

    <div class="col-lg-6 mb-4">

        <div class="card shadow mb-4">
            <div class="card-header py-3">
                <h6 class="m-0 font-weight-bold text-primary">History Activities</h6>
            </div>
            <div class="card-body">
                <ul class="stepper" data-mdb-stepper="stepper" data-mdb-stepper-type="vertical">
                    <li class="stepper-step stepper-active">
                        <div class="stepper-head">
                            <span class="stepper-head-text"> You created issue at 12/12/2001 20:35 </span>
                        </div>
                        <div class="stepper-content py-3">
                        </div>
                    </li>

                    <li class="stepper-step stepper-active">
                        <div class="stepper-head">
                            <span class="stepper-head-text"> Usera closed issue at 12/12/2001 20:35 </span>
                        </div>
                        <div class="stepper-content py-3">
                        </div>
                    </li>

                    <li class="stepper-step stepper-active">
                        <div class="stepper-head">
                            <span class="stepper-head-text"> You created issue at 12/12/2001 20:35 </span>
                        </div>
                        <div class="stepper-content py-3">
                        </div>
                    </li>
                </ul>
            </div>
        </div>

    </div>
</div>
-->
