<?php

if (isset($idtrf)) {

    include('include/checkstepfile.php');

    include('include/chemicalsquerycheck.php');

}

?>

<div class="left-sidenav">

    <ul class="metismenu left-sidenav-menu">

        <li>

            <a href="dashboard.php"><i class="ti-bar-chart"></i><span><?php echo $dashboard; ?></span></a>

        </li>

        <li>



            <?php if (isset($codelist)) { ?>

                <a href=""><i class="ti-angle-double-down"></i><span><?php echo $trfinprogress; ?></span></a>

                <ul class="nav-second-level mm-collapse mm-show" style="">







                    <!-- end seven line trf -->

                    <!-- seveeightn line trf -->



                    <li>

                        <a href="adddocument2.php?idtrf=<?php echo $idtrf; ?>" style="color:green"><i class="fas fa-check-circle" style="color:green"></i><?php echo $uploaddocsteptitle; ?> </a>

                    </li>





                    <!-- end eight line trf -->





                </ul><?php } ?>



        </li>

        <li>

            <a href="archivetrf.php"><i class="fas fa-history"></i><span><?php echo $historicaltrf; ?></span></a>



        </li>

        <li>

            <a href="archivetd.php"><i class="fas fa-history"></i><span><?php echo $archivetd; ?></span></a>



        </li>

        <li>

            <a href="index.php"><i class="ti-help"></i><span><?php echo $helptitle; ?></span></a>



        </li>

        <li>

            <a href="index.php"><i class="fas fa-users"></i><span><?php echo $contactus; ?></span></a>



        </li>



        <?php if ((Auth::user()->hasRole('Admin')) or (Auth::user()->hasRole('Superuser'))) : ?>

            <li>

                <a href="javascript: void(0);"><i class="ti-lock"></i><span>Admin Area</span><span class="menu-arrow"><i class="mdi mdi-chevron-right"></i></span></a>

                <ul class="nav-second-level mm-collapse" aria-expanded="false">

                    <li class="nav-item"><a class="nav-link" href="admin-dashboard.php"><i class="fas fa-cogs"></i>Admin Panel</a></li>

                    <li class="nav-item"><a class="nav-link" href="cstrf.php"><i class="fas fa-archive"></i>CS TRF Board</a></li>

                    <li class="nav-item"><a class="nav-link" href="others/icons-fontawesome.html"><i class="ti-control-record"></i>Template</a></li>



                </ul>

            </li>

        <?php endif; ?>













    </ul>

</div>