<?php

if (isset($idtrf)) {

    include('include/checkstepfile.php');

    include('include/chemicalsquerycheck.php');

}

?>

<div class="left-sidenav">

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



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

            <li>

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

            </li>

            <li>







            </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="https://www.cimac.it/contatti/" target="_blank"><i class="ti-help"></i><span><?php echo $helptitle; ?></span></a>



            </li>

            <li>

                <a href="https://www.cimac.it/contatti/" target="_blank"><i class="fas fa-users"></i><span><?php echo $contactus; ?></span></a>



            </li>

        <?php endif; ?>

        <?php if ((Auth::user()->hasRole('Admin')) || (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="repositoryupload.php"><i class="fas fa-archive"></i>Files Download</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="revcstrf.php"><i class="fas fa-archive"></i>REVCS</a></li>





                </ul>

            </li>

        <?php endif; ?>

        <?php if (Auth::user()->hasRole('CustomerService')) : ?>

            <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="revcstrf.php"><i class="fas fa-archive"></i>REVCS</a></li>





    </ul>

    </li>

<?php endif; ?>

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

    <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>