<?php

if (isset($_SESSION["id"])) {
    ?>

    </div> <!-- Page content Wrapper -->
    </div> <!-- content -->
    <footer class="footer">

    </footer>

    </div>
    <!-- End Right content here -->
    </div>
    <!-- END wrapper -->
    <?php
}
?>
<!-- jQuery  -->
<script src="assets/js/jquery.min.js?v=<?php echo $version_app;?>"></script>
<script src="assets/js/bootstrap.bundle.min.js?v=<?php echo $version_app;?>"></script>
<script src="assets/js/modernizr.min.js?v=<?php echo $version_app;?>"></script>
<script src="assets/js/detect.js?v=<?php echo $version_app;?>"></script>
<script src="assets/js/fastclick.js?v=<?php echo $version_app;?>"></script>
<script src="assets/js/jquery.slimscroll.js?v=<?php echo $version_app;?>"></script>
<script src="assets/js/jquery.blockUI.js?v=<?php echo $version_app;?>"></script>
<script src="assets/js/waves.js?v=<?php echo $version_app;?>"></script>


<script src="https://cdnjs.cloudflare.com/ajax/libs/prefixfree/1.0.7/prefixfree.min.js"></script>

<!-- Magnific popup -->
<script src="assets/plugins/magnific-popup/jquery.magnific-popup.min.js"></script>
<script src="assets/js/lightbox.js"></script>


<!-- print -->
<script src="assets/plugins/print/jQuery.print.js"></script>

<!-- select2 -->
<script src="assets/plugins/select2/js/select2.full.js"></script>

<!-- Sweet-Alert  -->
<script src="assets//plugins/sweet-alert2/sweetalert2.min.js"></script>

<!-- Alertify js -->
<script src="assets/plugins/alertify/js/alertify.js"></script>

<!-- persian-datepicker js -->
<script type="text/javascript" src="assets/plugins/persian-datepicker/jalalidatepicker.js"></script>

<!-- XEditable Plugin -->
<script src="assets/plugins/moment/moment.js"></script>
<script src="assets/plugins/x-editable/js/bootstrap-editable.min.js"></script>

<!-- clockpicker -->
<script type="text/javascript" src="assets/plugins/clockpicker/jquery-clockpicker.js"></script>


<!-- morris -->
<script type="text/javascript" src="assets/plugins/morris/morris.min.js"></script>
<script type="text/javascript" src="assets/plugins/raphael/raphael.min.js"></script>


<!-- App js -->
<script src="assets/js/app.js?v=<?php echo $version_app;?>"></script>

<!-- Max lentgh js -->
<script src="assets/plugins/max-length/script.js"></script>


<?php

if ( file_exists( 'assets/js/pages/' . $ex[0] . '.js' ) ) {
    echo "<script src=\"assets/js/pages/" . $ex[0] . ".js?v=$version_app\"></script>";
}


if(isset($extra_footer)){
    echo $extra_footer;
}

?>

</html>
