<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="utf-8" />
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" />
        <meta name="description" content="" />
        <meta name="author" content="" />
        <title>Analis Dashboard</title>
        
        <script src="assets/jquery-3.6.0.min.js"></script>
        <link rel="stylesheet" href="assets/css/icons/font/bootstrap-icons.min.css">
        <link rel="stylesheet" href="assets/datatables/datatables.min.css">
        <link href="assets/css/styles.css" rel="stylesheet" />

        <!-- <script src="https://use.fontawesome.com/releases/v6.3.0/js/all.js" crossorigin="anonymous"></script> -->
    </head>
    
    <body class="sb-nav-fixed">
		<?= $this->include('layouts/topbar'); ?>        
		
        <!-- Sidebar dan Content -->
        <div id="layoutSidenav">
			
			<?= $this->include('layouts/sidebar'); ?>	
            
            

            <div id="layoutSidenav_content">
				
				<main>
					<div class="container-fluid px-2 pt-4 pb-4">
						
						<?php
						if(isset($_SESSION['alertmsg'])) {
						?>
						<div class="alert alert-warning alert-dismissible fade show" role="alert">
							<?=$_SESSION['alertmsg'];?>
							<button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"></button>
						</div>
						<?php
						}
						?>
						
						<?= $this->renderSection('content'); ?>
						
					</div>
				</main>

                <footer class="py-3 bg-light mt-auto">
                    <div class="container-fluid px-4">
                        <div class="d-flex align-items-center justify-content-between small">
                            <div class="text-muted ms-auto ">Copyright &copy; 4SKAI 2024</div>
                        </div>
                    </div>
                </footer>
            </div>
        </div>
        
        <script src="<?=base_url();?>assets/js/scripts.js"></script>
        <script src="<?=base_url();?>assets/datatables/datatables.min.js"></script>
        <?= $this->renderSection('script'); ?>        
    </body>
</html>
