<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no"> 
<title><?php echo (isset($page_title) ? ucwords($page_title) : ""); ?>  </title>
<meta property="og:url" content="https://http://vinayakwebtech.com/" />
<meta property="og:type" content="website" />
<meta content='Vinayak Webtech | +91 90336 22526' property='og:title'/>
<meta content='Vinayak Webtech | +91 90336 22526' property='og:description'/>
<meta property="og:image" content="<?php echo $this->config->item('front_url'); ?>assets/images/logo.jpg" />
<link rel="shortcut icon" href="<?php echo $this->config->item('front_url'); ?>assets/images/logo.png" type="image/x-icon">
<link rel="icon" href="<?php echo $this->config->item('front_url'); ?>assets/images/logo.png" type="image/x-icon">      
<link href="<?php echo base_url(); ?>assets/libs/datatables.net-bs5/css/dataTables.bootstrap5.min.css" rel="stylesheet" type="text/css">
<link href="<?php echo base_url(); ?>assets/libs/datatables.net-responsive-bs5/css/responsive.bootstrap5.min.css" rel="stylesheet" type="text/css">
<link href="<?php echo base_url(); ?>assets/libs/datatables.net-fixedheader-bs5/css/fixedHeader.bootstrap5.min.css" rel="stylesheet" type="text/css">
<link rel="stylesheet" href="<?php echo base_url(); ?>assets/libs/sweetalert2/sweetalert2.min.css">
<link rel="stylesheet" href="<?php echo base_url(); ?>assets/libs/simplebar/simplebar.min.css">
<link href="<?php echo base_url(); ?>assets/css/bootstrap.min.css" id="bootstrap-style" rel="stylesheet" type="text/css">
<link href="<?php echo base_url(); ?>assets/css/icons.min.css" rel="stylesheet" type="text/css">
<link href="<?php echo base_url(); ?>assets/css/dropzone.css" rel="stylesheet" type="text/css">
<link href="<?php echo base_url(); ?>assets/libs/bootstrap-datepicker/css/bootstrap-datepicker.min.css" rel="stylesheet">
<link href="<?php echo base_url(); ?>assets/libs/select2/css/select2.min.css" rel="stylesheet" type="text/css">
<link href="<?php echo base_url(); ?>assets/css/app.min.css" id="app-style" rel="stylesheet" type="text/css">
<link href="<?php echo (isset($css) ? base_url('assets/css/custom/').$css.".css" : ""); ?>" rel="stylesheet" type="text/css">
<script type="text/javascript">
var BASEURL = "<?php echo base_url(); ?>";
var CONTROLLER = "<?php echo (isset($controller) ? ucwords($controller) : ""); ?>";
</script>
</head>
<body>
<div id="layout-wrapper">
    <header id="page-topbar">
        <div class="navbar-header">
            <div class="navbar-logo-box">
                <a href="#" class="logo logo-dark">
                    <span class="logo-sm">
                        <img src="<?php echo $this->config->item('front_url'); ?>assets/images/logo.png" height="40">
                    </span>
                    <span class="logo-lg">
                        <img src="<?php echo $this->config->item('front_url'); ?>assets/images/dr-pink-logo.png" height="50">
                    </span>
                </a>
                <a href="#" class="logo logo-light">
                    <span class="logo-sm">
                        <img src="<?php echo $this->config->item('front_url'); ?>assets/images/logo.png" alt="logo-sm-light" height="40">
                    </span>
                    <span class="logo-lg">
                        <img src="<?php echo $this->config->item('front_url'); ?>assets/images/dr-pink-logo.png" alt="logo-light" height="50">
                    </span>
                </a>
                <button type="button" class="btn btn-icon top-icon sidebar-btn" id="sidebar-btn" aria-label="Toggle navigation"><i class="mdi mdi-menu-open align-middle fs-17"></i></button>
                <button type="button" class="btn btn-icon top-icon sidebar-horizontal-btn d-none" aria-label="Toggle navigation"><i class="mdi mdi-menu align-middle fs-17"></i></button>
            </div>
            <div class="d-flex justify-content-between menu-sm px-4 ms-auto">
                <div class="d-flex align-items-center gap-2"> 
                </div>
                <div class="d-flex align-items-center gap-3">
                    <div class="mt-2 pt-1">  
                        <div class="alert alert-success alert-dismissible">
                            <div class="alert-icon"><i class="mdi mdi-check-all mr-2"></i></div>
                            <div class="alert-content">
                                <span class="alert-success-msg"></span>
                            </div>
                            <button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"></button>
                        </div> 
                        <div class="alert alert-danger alert-dismissible">
                            <div class="alert-icon"><i class="mdi mdi-block-helper mr-2"></i></div>
                            <div class="alert-content">
                                <span class="alert-danger-msg"></span>
                            </div>
                            <button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"></button>
                        </div> 
                    </div>
                    <div class="dropdown d-inline-block ps-3 ms-2 border-start admin-user-info">
                        <button type="button" aria-label="profile" class="btn btn-sm p-0" id="page-header-user-dropdown" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
                            <span class="avatar avatar-xs p-1 d-inline-block">
                                <img src="<?php echo $this->config->item('front_url'); ?>assets/images/logo.png" class="img-fluid">
                            </span>
                            <span class="d-none d-xl-inline-block ms-1 fw-semibold fs-14 admin-name"> <?php echo $this->session->userdata('display_name'); ?></span>
                            <i class="mdi mdi-chevron-down align-middle fs-16 d-none d-xl-inline-block"></i>
                        </button>
                        <div class="dropdown-menu dropdown-menu-lg dropdown-menu-end dropdown-menu-animated overflow-hidden py-0">
                            <div class="card mb-0">
                                <div class="card-header">
                                    <div class="rich-list-item w-100 p-0">
                                        <div class="rich-list-prepend">
                                            <span class="rounded avatar-sm p-1 bg-body d-flex">
                                                <img src="<?php echo $this->config->item('front_url'); ?>assets/images/logo.png" class="img-fluid">
                                            </span>
                                        </div>
                                        <div class="rich-list-content">
                                            <h3 class="rich-list-title fs-13 mb-1"><?php echo $this->session->userdata('display_name'); ?></h3>
                                            <span class="rich-list-subtitle"><?php echo $this->session->userdata('username'); ?></span>
                                        </div>
                                    </div>
                                </div> 
                                <div class="card-footer card-footer-bordered rounded-0 border-top text-end"><a href="<?php echo base_url('logout'); ?>" class="btn btn-label-danger">Sign Out</a></div> 
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </header> 
    <div class="sidebar-backdrop" id="sidebar-backdrop"></div>
    <div class="sidebar-left vertical-sidebar">
    <!-- <div class="sidebar-left horizontal-sidebar"> -->
        <div class="sidebar-slide h-100">
            <div id="sidebar-menu">
                <ul class="left-menu list-unstyled" id="side-menu">  
                    <li>
                        <a href="<?php echo base_url('categories'); ?>">
                            <i class="mdi mdi-image"></i>
                            <span>Categories</span>
                        </a> 
                    </li> 
                </ul>
            </div>
        </div>
    </div>
    <div class="sidebar-backdrop" id="sidebar-backdrop"></div>
    <div class="main-content">
        <div class="page-content">
            <div class="container-fluid">
                <div class="row">
                    <div class="col-12">
                        <div class="page-title-box d-flex align-items-center justify-content-between">
                            <h3 class="mb-sm-0 h-title-1"><?php echo $page_heading; ?></h3>
                            <nav aria-label="breadcrumb" class="page-title-right">
                                <ol class="breadcrumb border-0">
                                    <li class="breadcrumb-item"><a href="<?php echo base_url("#"); ?>">Dashboard</a></li>
                                    <li class="breadcrumb-item active" aria-current="page"><?php echo $page_heading; ?></li>
                                </ol>
                            </nav>
                        </div>
                    </div>
                </div>