<?php defined( 'DASHBOARD_MOD_DIR' ) OR DIE; ?><!-- ======== main-wrapper start =========== -->

<main class="main-wrapper <?php if( empty(self::$config['sidebar']) ) echo 'full-width'; ?>">
	
	<?php if( !self::$config['blank'] ): ?>
	
	<!-- ========== header start ========== -->
	
	<header class="header">
	
		<div class="container-fluid">
			<div class="row align-items-center">
			
				<div class="col-md-6 col-6">
					<div class="header-left d-flex align-items-center">
						<?php if( !empty(self::$config['sidebar']) ): ?>
						<div class="menu-toggle-btn mr-20 d-xl-none">
							<button id="menu-toggle" class="btn btn-hover">
								<i class="lni lni-menu"></i>
							</button>
						</div>
						<?php endif; ?>
						<?php events::exec('header-left'); ?>
					</div>
				</div>
				
				<div class="col-md-6 col-6">
					<div class="header-right">
					
						<!-- notification start -->
						<?php require __DIR__ . '/header-notification.php'; ?>
						<!-- notification end -->
						
						<!-- profile start -->
						<div class="profile-box ml-1 5-">
						
							<button class="dropdown-toggle bg-transparent border-0" type="button" id="profile" data-bs-toggle="dropdown" aria-expanded="false">
								<div class="profile-info">
									<div class="info">
										<div class="image">
											<img src="<?php echo dashboard::call('user:avatar'); ?>" alt=""/>
											<span class="status"></span>
										</div>
									</div>
								</div>
								<i class="lni lni-chevron-down"></i>
							</button>
							
							<ul class="dropdown-menu dropdown-menu-end" aria-labelledby="profile">
							
								<?php events::exec( ':profile-nav', [], true ); ?>
								
								<li data-auth='logout'>
									<a href="<?php echo core::url( ROOT_DIR . '/' . dashboard::config('page:signout') ); ?>"> 
										<i class="lni lni-exit"></i> Sign Out 
									</a>
								</li>
								
							</ul>
							
						</div>
						<!-- profile end -->
						
					</div>
				</div>
				
			</div>
		</div>
		
	</header>
	
	<!-- ========== header end ========== -->
	
	<?php events::exec('@content::above'); ?>
	
	<!-- ======== content padding ========== -->
	
	<div class='content-padding'>
		
		<?php events::exec('@content::before'); ?>
		
	<?php endif; ?>
	
	