
<!doctype html>
<html lang="en">

    <head>
        
        <meta charset="utf-8" />
        <title> Admin & Dashboard | <?php echo $sitename?> </title>
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <!-- App favicon -->
        <link rel="shortcut icon" href="../images/favicon.png">

        <!-- flatpickr css -->
        <link href="assets/libs/flatpickr/flatpickr.min.css" rel="stylesheet" type="text/css">

         <!-- dropzone css -->
         <link href="assets/libs/dropzone/min/dropzone.min.css" rel="stylesheet" type="text/css" />

        <!-- DataTables -->
        <link href="assets/libs/datatables.net-bs4/css/dataTables.bootstrap4.min.css" rel="stylesheet" type="text/css" />

        <!-- Responsive datatable examples -->
        <link href="assets/libs/datatables.net-responsive-bs4/css/responsive.bootstrap4.min.css" rel="stylesheet" type="text/css" /> 

        <!-- preloader css -->
        <link rel="stylesheet" href="assets/css/preloader.min.css" type="text/css" />

        <!-- Bootstrap Css -->
        <link href="assets/css/bootstrap.min.css" id="bootstrap-style" rel="stylesheet" type="text/css" />
        <!-- Icons Css -->
        <link href="assets/css/icons.min.css" rel="stylesheet" type="text/css" />
        <!-- App Css-->
        <link href="assets/css/app.min.css" id="app-style" rel="stylesheet" type="text/css" />
         <!-- JAVASCRIPT -->
         <script src="../js/jquery-3.2.1.min.js"></script>

          <!-- Sweet Alert -->
    <script src="//cdn.jsdelivr.net/npm/sweetalert2@10"></script>

    </head>

    <?php 


        function swal_success($msg,$link)
        {
            echo "
                    <script> 
                        $(document).ready(function(){
                        Swal.fire({
                            title: 'Success',
                            text: '" . $msg . "',
                            icon: 'success',
                            showCancelButton: false,
                            confirmButtonColor: '#3085d6',
                            cancelButtonColor: '#d33',
                            confirmButtonText: 'Continue'
                        }).then((result) => {
                            if (result.isConfirmed) {
                            window.location.replace('".$link."');
                            }
                        })

                    });
                    // this is the end of the swal jquery in the php function page 
                    </script>
                        ";
        }

        function swal_error($msg)
        {

            echo "
                        <script> 
                            $(document).ready(function(){
                                Swal.fire({
                                    icon: 'error',
                                    title: 'Oops...',
                                    text: '" . $msg . "',
                                })

                            });
                        </script>
                    ";
        }

    ?>