<!DOCTYPE html>
<html lang="en">
<?=getHead($data)?>
<?=getHeader($data)?>
<body>


	<!-- Page container -->
	<div class="page-container" style="min-height: 1200px;">

		<!-- Page content -->
		<div class="page-content">
<?=getSidebar($data)?>


			<!-- Main content -->
			<div class="content-wrapper">

				<!-- Page header -->
				<?php 
				$title = '';
	if($data['state']==0 )$title = t_('Pasif İndirimler');
	if($data['state']==1 )$title = t_('Aktif İndirimler');
				?>
			<?=getPageHeader($data, $title)?>
				<!-- /page header -->


				<!-- Content area -->
				<div class="content">

					<!-- Select2 selects -->
<?=getAlerts()?>

				<!-- Tabs with solid background -->
					<div class="panel panel-flat">
<?php 
make_datatable('indirimler','id;ad;tip;bitis;oran',$data['state'],$data[ 'elements' ]); 
?>
				</div>
				<!-- /tabs with solid background -->
					<!-- /select2 selects -->
<?=getFooter()?>

				</div>
				<!-- /content area -->

			</div>
			<!-- /main content -->

		</div>
		<!-- /page content -->

	</div>
	<!-- /page container -->

</body>
</html>
