HEX
Server: Apache
System: Linux srv4.garantili.com.tr 4.18.0-477.21.1.lve.1.el8.x86_64 #1 SMP Tue Sep 5 23:08:35 UTC 2023 x86_64
User: ekspardev (1006)
PHP: 7.4.33
Disabled: exec,passthru,shell_exec,system
Upload Files
File: //home/ekspardev/.trash/data-table-geri-donusler.php
<? include 'header.php';?>
<style>

tr,td{
    text-align:center;
}
tr:hover{
    background:#7c99d33b;
} 
 
    .dataTables_filter{
        display:none; 
    }
    .paginate_button {
        padding-right:15px;
    }
    
    	.multiselect-native-select {
		position: relative;
		select {
			border: 0 !important;
			clip: rect(0 0 0 0) !important;
			height: 1px !important;
			margin: -1px -1px -1px -3px !important;
			overflow: hidden !important;
			padding: 0 !important;
			position: absolute !important;
			width: 1px !important;
			left: 50%;
			top: 30px;
		}
	}
	.multiselect-container {
		position: absolute;
		list-style-type: none;
		margin: 0;
		padding: 0;
		.input-group {
			margin: 5px;
		}
		li {
			padding: 0;
			.multiselect-all {
				label {
					font-weight: 700;
				}
			}
			a {
				padding: 0;
				label {
					margin: 0;
					height: 100%;
					cursor: pointer;
					font-weight: 400;
					padding: 3px 20px 3px 40px;
					input[type=checkbox] {
						margin-bottom: 5px;
					}
				}
				label.radio {
					margin: 0;
				}
				label.checkbox {
					margin: 0;
				}
			}
		}
		li.multiselect-group {
			label {
				margin: 0;
				padding: 3px 20px 3px 20px;
				height: 100%;
				font-weight: 700;
			}
		}
		li.multiselect-group-clickable {
			label {
				cursor: pointer;
			}
		}
	}
	 
    @import url('https://fonts.googleapis.com/css?family=Quicksand:400,500,700&subset=latin-ext');

 
.multiSelect {
    width: 300px;
    position: relative;
}

.multiSelect *, .multiSelect *::before, .multiSelect *::after {
    box-sizing: border-box;
}

.multiSelect_dropdown {
    font-size: 14px;
    min-height: 35px;
    line-height: 35px;
    border-radius: 4px;
    box-shadow: none;
    outline: none;
    background-color: #fff;
    color: #444f5b;
    border: 1px solid #d9dbde;
    font-weight: 400;
    padding: 0.5px 13px;
    margin: 0;
    transition: .1s border-color ease-in-out;  
    cursor: pointer;
}

.multiSelect_dropdown.-hasValue {
    padding: 5px 30px 5px 5px;
    cursor: default;
}

.multiSelect_dropdown.-open {
    box-shadow: none;
    outline: none;
    padding: 4.5px 29.5px 4.5px 4.5px;
    border: 1.5px solid #4073FF;
}

.multiSelect_arrow::before,
.multiSelect_arrow::after {
    content: '';
    position: absolute;
    display: block;
    width: 2px;
    height: 8px;
    border-radius: 20px;
    border-bottom: 8px solid #99A3BA;
    top: 40%;
    transition: all .15s ease;
}

.multiSelect_arrow::before {
    right: 18px;
    -webkit-transform: rotate(-50deg);
    transform: rotate(-50deg);
}

.multiSelect_arrow::after {
    right: 13px;
    -webkit-transform: rotate(50deg);
    transform: rotate(50deg);
}

.multiSelect_list {
    margin: 0;
    margin-bottom: 25px;
    padding: 0;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    position: absolute;
    max-height: calc(10 * 31px);
    top: 28px;
    left: 0;
    z-index: 9999;
    right: 0;
    background: #fff;
    border-radius: 4px;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-transform-origin: 0 0;
    transform-origin: 0 0;
    transition: opacity 0.1s ease, visibility 0.1s ease, -webkit-transform 0.15s cubic-bezier(0.4, 0.6, 0.5, 1.32);
    transition: opacity 0.1s ease, visibility 0.1s ease, transform 0.15s cubic-bezier(0.4, 0.6, 0.5, 1.32);
    transition: opacity 0.1s ease, visibility 0.1s ease, transform 0.15s cubic-bezier(0.4, 0.6, 0.5, 1.32), -webkit-transform 0.15s cubic-bezier(0.4, 0.6, 0.5, 1.32);
    -webkit-transform: scale(0.8) translate(0, 4px);
    transform: scale(0.8) translate(0, 4px);
    border: 1px solid #d9dbde;
    box-shadow: 0px 10px 20px 0px rgba(0, 0, 0, 0.12);
}

.multiSelect_option {
    margin: 0;
    padding: 0;
    opacity: 0;
    -webkit-transform: translate(6px, 0);
    transform: translate(6px, 0);
    transition: all .15s ease;
}

.multiSelect_option.-selected {
    display: none;
}

.multiSelect_option:hover .multiSelect_text {
    color: #fff;
    background: #4d84fe;
}

.multiSelect_text {
    cursor: pointer;
    display: block;
    padding: 5px 13px;
    color: #525c67;
    font-size: 14px;
    text-decoration: none;
    outline: none;
    position: relative;
    transition: all .15s ease;
}

.multiSelect_list.-open {
    opacity: 1;
    visibility: visible;
    -webkit-transform: scale(1) translate(0, 12px);
    transform: scale(1) translate(0, 12px);
    transition: opacity 0.15s ease, visibility 0.15s ease, -webkit-transform 0.15s cubic-bezier(0.4, 0.6, 0.5, 1.32);
    transition: opacity 0.15s ease, visibility 0.15s ease, transform 0.15s cubic-bezier(0.4, 0.6, 0.5, 1.32);
    transition: opacity 0.15s ease, visibility 0.15s ease, transform 0.15s cubic-bezier(0.4, 0.6, 0.5, 1.32), -webkit-transform 0.15s cubic-bezier(0.4, 0.6, 0.5, 1.32);
}

.multiSelect_list.-open + .multiSelect_arrow::before {
    -webkit-transform: rotate(-130deg);
    transform: rotate(-130deg);
}

.multiSelect_list.-open + .multiSelect_arrow::after {
    -webkit-transform: rotate(130deg);
    transform: rotate(130deg);
}

.multiSelect_list.-open .multiSelect_option {
    opacity: 1;
    -webkit-transform: translate(0, 0);
    transform: translate(0, 0);
}

.multiSelect_list.-open .multiSelect_option:nth-child(1) {
  transition-delay: 10ms;
}

.multiSelect_list.-open .multiSelect_option:nth-child(2) {
  transition-delay: 20ms;
}

.multiSelect_list.-open .multiSelect_option:nth-child(3) {
  transition-delay: 30ms;
}

.multiSelect_list.-open .multiSelect_option:nth-child(4) {
  transition-delay: 40ms;
}

.multiSelect_list.-open .multiSelect_option:nth-child(5) {
  transition-delay: 50ms;
}

.multiSelect_list.-open .multiSelect_option:nth-child(6) {
  transition-delay: 60ms;
}

.multiSelect_list.-open .multiSelect_option:nth-child(7) {
  transition-delay: 70ms;
}

.multiSelect_list.-open .multiSelect_option:nth-child(8) {
  transition-delay: 80ms;
}

.multiSelect_list.-open .multiSelect_option:nth-child(9) {
  transition-delay: 90ms;
}

.multiSelect_list.-open .multiSelect_option:nth-child(10) {
  transition-delay: 100ms;
}

.multiSelect_choice {
    background: rgba(77, 132, 254, 0.1);
    color: #444f5b;
    padding: 4px 8px;
    line-height: 17px;
    margin: 5px;
    display: inline-block;
    font-size: 13px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 500;
}

.multiSelect_deselect {
    width: 12px;
    height: 12px;
    display: inline-block;
    stroke: #b2bac3;
    stroke-width: 4px;
    margin-top: -1px;
    margin-left: 2px;
    vertical-align: middle;
}

.multiSelect_choice:hover .multiSelect_deselect {
    stroke: #a1a8b1;
}

.multiSelect_noselections {
    text-align: center;
    padding: 7px;
    color: #b2bac3;
    font-weight: 450;
    margin: 0;
}

.multiSelect_placeholder {
    position: absolute;
    left: 20px;
    font-size: 14px;
    top: 8px;
    padding: 0 4px;
    background-color: #fff;
    color: #b8bcbf;
    pointer-events: none;
    transition: all .1s ease;
}

.multiSelect_dropdown.-open + .multiSelect_placeholder,
.multiSelect_dropdown.-open.-hasValue + .multiSelect_placeholder {
    top: -11px;
    left: 17px;
    color: #4073FF;
    font-size: 13px;
}

.multiSelect_dropdown.-hasValue + .multiSelect_placeholder {
    top: -11px;
    left: 17px;
    color: #6e7277;
    font-size: 13px;
} 
    .paginate_button{
        margin:3px;
    } 
    .dt-buttons{
        margin-bottom:30px;
        
    }
    .buttons-html5,.buttons-print{
        font-size:10px;
        padding:5px;
    }
#products-table
{
     width: 200px;
    height: 400px;
    overflow:scroll;
}
</style>

<?
 
    
    $tarih1=date('Y').'-01-01 00:00:00';
    $tarih2=date('Y').'-01-31 23:59:59';
    
     
        $kayit = "SELECT  count(id) as adet from urunler where geri_donus_var=1 and sil=0 and tarih>='$tarih1' and tarih<='$tarih2' and (teslim_nedeni=1 or teslim_nedeni=3 or teslim_nedeni=12 or teslim_nedeni=14 or teslim_nedeni=15  or teslim_nedeni=16) ";
        $kayit = $func->query($kayit);
        $kayit = $kayit->fetch();

        $ocak_onarim_yenileme=$kayit->adet;
        
        $kayit = "select sum(Toplam_Adet) as adet from a_prim_tablosu where id<>0 and uye_id<>3315 and uye_id<>107 and ay=1 and yil=2023 ";
        $kayit = $func->query($kayit);
        $kayit = $kayit->fetch();

        $ocak_satis=$kayit->adet;
        
    $tarih1=date('Y').'-01-02 00:00:00';
    $tarih2=date('Y').'-02-28 23:59:59';
    
     
        $kayit = "SELECT  count(id) as adet from urunler where geri_donus_var=1 and sil=0 and tarih>='$tarih1' and tarih<='$tarih2' and (teslim_nedeni=1 or teslim_nedeni=3 or teslim_nedeni=12 or teslim_nedeni=14 or teslim_nedeni=15  or teslim_nedeni=16)";
        $kayit = $func->query($kayit);
        $kayit = $kayit->fetch();

        $subat_onarim_yenileme=$kayit->adet;
        
         $kayit = "select sum(Toplam_Adet) as adet from a_prim_tablosu where id<>0 and uye_id<>3315 and uye_id<>107 and ay=2 and yil=2023 ";
        $kayit = $func->query($kayit);
        $kayit = $kayit->fetch();

        $subat_satis=$kayit->adet;
        
    $tarih1=date('Y').'-03-01 00:00:00';
    $tarih2=date('Y').'-03-31 23:59:59';
    
     
        $kayit = "SELECT  count(id) as adet from urunler where geri_donus_var=1 and sil=0 and fatura_giris_tarih>='$tarih1' and fatura_giris_tarih<='$tarih2' and (teslim_nedeni=1 or teslim_nedeni=3 or teslim_nedeni=12 or teslim_nedeni=14 or teslim_nedeni=15  or teslim_nedeni=16)";
        $kayit = $func->query($kayit);
        $kayit = $kayit->fetch();

        $mart_onarim_yenileme=$kayit->adet;
        
         $kayit = "select sum(Toplam_Adet) as adet from a_prim_tablosu where id<>0 and uye_id<>3315 and uye_id<>107 and ay=3 and yil=2023 ";
        $kayit = $func->query($kayit);
        $kayit = $kayit->fetch();

        $mart_satis=$kayit->adet;
 
 
 
    $tarih1=date('Y').'-04-01 00:00:00';
    $tarih2=date('Y').'-04-30 23:59:59';
    
     
        $kayit = "SELECT  count(id) as adet from urunler where geri_donus_var=1 and sil=0 and tarih>='$tarih1' and tarih<='$tarih2' and (teslim_nedeni=1 or teslim_nedeni=3 or teslim_nedeni=12 or teslim_nedeni=14 or teslim_nedeni=15  or teslim_nedeni=16)";
        $kayit = $func->query($kayit);
        $kayit = $kayit->fetch();

        $nisan_onarim_yenileme=$kayit->adet;
        
         $kayit = "select sum(Toplam_Adet) as adet from a_prim_tablosu where id<>0 and uye_id<>3315 and uye_id<>107 and ay=4 and yil=2023 ";
        $kayit = $func->query($kayit);
        $kayit = $kayit->fetch();

        $nisan_satis=$kayit->adet;
        
        
    $tarih1=date('Y').'-05-01 00:00:00';
    $tarih2=date('Y').'-05-30 23:59:59';
    
     
        $kayit = "SELECT  count(id) as adet from urunler where geri_donus_var=1 and sil=0 and tarih>='$tarih1' and tarih<='$tarih2' and (teslim_nedeni=1 or teslim_nedeni=3 or teslim_nedeni=12 or teslim_nedeni=14 or teslim_nedeni=15  or teslim_nedeni=16)";
        $kayit = $func->query($kayit);
        $kayit = $kayit->fetch();

        $mayis_onarim_yenileme=$kayit->adet;
        
         $kayit = "select sum(Toplam_Adet) as adet from a_prim_tablosu where id<>0 and uye_id<>3315 and uye_id<>107 and ay=5 and yil=2023 ";
        $kayit = $func->query($kayit);
        $kayit = $kayit->fetch();

        $mayis_satis=$kayit->adet;
        
    $tarih1=date('Y').'-06-01 00:00:00';
    $tarih2=date('Y').'-06-30 23:59:59';
    
     
        $kayit = "SELECT  count(id) as adet from urunler where geri_donus_var=1 and sil=0 and tarih>='$tarih1' and tarih<='$tarih2' and (teslim_nedeni=1 or teslim_nedeni=3 or teslim_nedeni=12 or teslim_nedeni=14 or teslim_nedeni=15  or teslim_nedeni=16)";
        $kayit = $func->query($kayit);
        $kayit = $kayit->fetch();

        $haziran_onarim_yenileme=$kayit->adet;
        
        $kayit = "select sum(Toplam_Adet) as adet from a_prim_tablosu where id<>0 and uye_id<>3315 and uye_id<>107 and ay=6 and yil=2023 ";
        $kayit = $func->query($kayit);
        $kayit = $kayit->fetch();

        $haziran_satis=$kayit->adet;
        
    $tarih1=date('Y').'-07-01 00:00:00';
    $tarih2=date('Y').'-07-30 23:59:59';
    
     
        $kayit = "SELECT  count(id) as adet from urunler where geri_donus_var=1 and sil=0 and tarih>='$tarih1' and tarih<='$tarih2' and (teslim_nedeni=1 or teslim_nedeni=3 or teslim_nedeni=12 or teslim_nedeni=14 or teslim_nedeni=15  or teslim_nedeni=16)";
        $kayit = $func->query($kayit);
        $kayit = $kayit->fetch();

        $temmuz_onarim_yenileme=$kayit->adet;
        
         $kayit = "select sum(Toplam_Adet) as adet from a_prim_tablosu where id<>0 and uye_id<>3315 and uye_id<>107 and ay=7 and yil=2023 ";
        $kayit = $func->query($kayit);
        $kayit = $kayit->fetch();

        $temmuz_satis=$kayit->adet;
        
    $tarih1=date('Y').'-08-01 00:00:00';
    $tarih2=date('Y').'-08-30 23:59:59';
    
     
        $kayit = "SELECT  count(id) as adet from urunler where geri_donus_var=1 and sil=0 and tarih>='$tarih1' and tarih<='$tarih2' and (teslim_nedeni=1 or teslim_nedeni=3 or teslim_nedeni=12 or teslim_nedeni=14 or teslim_nedeni=15  or teslim_nedeni=16)";
        $kayit = $func->query($kayit);
        $kayit = $kayit->fetch();

        $agustos_onarim_yenileme=$kayit->adet;
        
        $kayit = "select sum(Toplam_Adet) as adet from a_prim_tablosu where id<>0 and uye_id<>3315 and uye_id<>107 and ay=8 and yil=2023 ";
        $kayit = $func->query($kayit);
        $kayit = $kayit->fetch();

        $agustos_satis=$kayit->adet;
        
    $tarih1=date('Y').'-09-01 00:00:00';
    $tarih2=date('Y').'-09-30 23:59:59';
    
     
        $kayit = "SELECT  count(id) as adet from urunler where geri_donus_var=1 and sil=0 and tarih>='$tarih1' and tarih<='$tarih2' and (teslim_nedeni=1 or teslim_nedeni=3 or teslim_nedeni=12 or teslim_nedeni=14 or teslim_nedeni=15  or teslim_nedeni=16)";
        $kayit = $func->query($kayit);
        $kayit = $kayit->fetch();

        $eylul_onarim_yenileme=$kayit->adet;
        
         $kayit = "select sum(Toplam_Adet) as adet from a_prim_tablosu where id<>0 and uye_id<>3315 and uye_id<>107 and ay=9 and yil=2023 ";
        $kayit = $func->query($kayit);
        $kayit = $kayit->fetch();

        $eylul_satis=$kayit->adet;
        
    $tarih1=date('Y').'-10-01 00:00:00';
    $tarih2=date('Y').'-10-30 23:59:59';
    
     
        $kayit = "SELECT  count(id) as adet from urunler where geri_donus_var=1 and sil=0 and tarih>='$tarih1' and tarih<='$tarih2' and (teslim_nedeni=1 or teslim_nedeni=3 or teslim_nedeni=12 or teslim_nedeni=14 or teslim_nedeni=15  or teslim_nedeni=16)";
        $kayit = $func->query($kayit);
        $kayit = $kayit->fetch();

        $ekim_onarim_yenileme=$kayit->adet;
        
         $kayit = "select sum(Toplam_Adet) as adet from a_prim_tablosu where id<>0 and uye_id<>3315 and uye_id<>107 and ay=10 and yil=2023 ";
        $kayit = $func->query($kayit);
        $kayit = $kayit->fetch();

        $ekim_satis=$kayit->adet;
        
    $tarih1=date('Y').'-11-01 00:00:00';
    $tarih2=date('Y').'-11-30 23:59:59';
    
     
        $kayit = "SELECT  count(id) as adet from urunler where geri_donus_var=1 and sil=0 and tarih>='$tarih1' and tarih<='$tarih2' and (teslim_nedeni=1 or teslim_nedeni=3 or teslim_nedeni=12 or teslim_nedeni=14 or teslim_nedeni=15  or teslim_nedeni=16)";
        $kayit = $func->query($kayit);
        $kayit = $kayit->fetch();

        $kasim_onarim_yenileme=$kayit->adet;
        
        $kayit = "select sum(Toplam_Adet) as adet from a_prim_tablosu where id<>0 and uye_id<>3315 and uye_id<>107 and ay=11 and yil=2023 ";
        $kayit = $func->query($kayit);
        $kayit = $kayit->fetch();

        $kasim_satis=$kayit->adet;
        
    $tarih1=date('Y').'-12-01 00:00:00';
    $tarih2=date('Y').'-12-30 23:59:59';
    
     
        $kayit = "SELECT  count(id) as adet from urunler where geri_donus_var=1 and sil=0 and tarih>='$tarih1' and tarih<='$tarih2' and (teslim_nedeni=1 or teslim_nedeni=3 or teslim_nedeni=12 or teslim_nedeni=14 or teslim_nedeni=15  or teslim_nedeni=16)";
        $kayit = $func->query($kayit);
        $kayit = $kayit->fetch();

        $aralik_onarim_yenileme=$kayit->adet;
        
         $kayit = "select sum(Toplam_Adet) as adet from a_prim_tablosu where id<>0 and uye_id<>3315 and uye_id<>107 and ay=12 and yil=2023 ";
        $kayit = $func->query($kayit);
        $kayit = $kayit->fetch();

        $aralik_satis=$kayit->adet;
?>



<div class="col-md-12 col-lg-12" style="width:99%;height:50px;">
      
        <div class="page-body">
          <div class="container-l">
            <div class="row row-deck row-cards">
                 
              <div class="col-12">
                <div class="row row-cards">
                    
                    <div class="page-header d-print-none">
                          <div class="container-xl">
                            <div class="row g-2 align-items-center">
                              <div class="col">
                                <h2 class="page-title">
                                  GERİ DÖNÜŞ ORANLARI  (<?=date('Y')?>) 
                                </h2>
                              </div>
                            </div>
                          </div>
                        </div>
                                   
                      <div class="card">
                          <div class="card-body">
                            <div id="chart-tasks-overview"></div>
                          </div>
                        </div>
                        
                        
                        
  <?                      
        $row = "select *,markalar.marka as marka_text,modeller.model as model_text,hafiza.hafiza as hafiza_text,renk.renk as renk_text,urunler.id as isemri, hafiza.tip as hafiza_turu from urunler 
        left join markalar on urunler.marka=markalar.id  
        left join modeller on urunler.model=modeller.id 
        left join hafiza on urunler.hafiza=hafiza.id
        left join renk on urunler.renk=renk.id 
        left join uyeler on urunler.teknikservis_id=uyeler.id
        where  geri_donus_var=1 and urunler.sil=0   and (urunler.teslim_nedeni=1 or urunler.teslim_nedeni=3 or urunler.teslim_nedeni=12 or urunler.teslim_nedeni=14 or urunler.teslim_nedeni=15  or urunler.teslim_nedeni=16) ";
		$row = $func->query($row);
		$row=$row->fetchAll();


?>
               

                <div class="card container col-12" style="padding-top:100px">
                  <div class="card-body"  style="height: 900px; overflow-x: scroll; overflow-y: scroll;font-size:8px"> 
 
           
                                    <table id="myTable" class="table table-responsive">
                                        <thead>
                                        <tr>
                                            <th>İşemri</th>
                                            <th>Cihaz</th>  
                                            <th>Imei</th>  
                                            <th>Geri Dönüş Tarihi</th> 
                                            <th>Teknik Servis</th>
                                            <th>Arıza Açıklama</th>
                                            <th>Geri Dönüş Aralığı</th>
                                            <th>#</th>
                                        </tr>
                                        </thead>
                                        <tbody>
                                        <? foreach($row as $rs){?>
                                        <tr>
                                            <td><?=$rs->isemri?></td>
                                            <td> <?=$rs->tur_text?> <?=$rs->marka_text?> <?=$rs->model_text?> <?=$rs->renk_text?> <?=$rs->hafiza_text?> <?=$rs->hafiza_turu?></td> 
                                            <td><?=$rs->imei?></td> 
                                            <td><?=$func->tarihsaat2($rs->tarih)?></td>  
                                            <td><?=$rs->adi?> <?=$rs->soyadi?></td>
                                            <td><?=$rs->fiziksel_aciklama?> <?=$rs->arizalar?></td>
                                            <td><?=$rs->geri_donus_araligi?> Gün</td>
                                            <td></td>
                                        </tr>
                                        <?}?>
                                        </tbody> 
                                    </table>

</div>
</div>
                       
                    </div>  
              
              
                </div>
              </div>
              
              
          </div>
        </div>
        
         
</div>
 
  
<script type="text/javascript" src="https://cdn.datatables.net/v/bs-3.3.7/jq-2.2.4/jszip-3.1.3/pdfmake-0.1.27/dt-1.10.15/b-1.3.1/b-html5-1.3.1/b-print-1.3.1/r-2.1.1/rg-1.0.0/datatables.min.js"></script>


<script>
        $('#myTable').DataTable({
            language: {
                info: "_TOTAL_ kayıttan _START_ - _END_ kayıt gösteriliyor.",
                infoEmpty:      "Gösterilecek hiç kayıt yok.",
                loadingRecords: "Kayıtlar yükleniyor.",
                zeroRecords: "Tablo boş",
                search: "Arama:",
                infoFiltered:   "(toplam _MAX_ kayıttan filtrelenenler)",
                buttons: {
                    copyTitle: "Panoya kopyalandı.",
                    copySuccess:"Panoya %d satır kopyalandı",
                    copy: "Kopyala",
                    print: "Yazdır",
                },

                paginate: {
                    first: "İlk",
                    previous: "Önceki",
                    next: "Sonraki",
                    last: "Son"
                },
            },
            dom: 'Bfrtip',
            buttons: [
                'copy', 'excel', 'pdf', 'print'
            ],
            responsive: true
        });
</script>
 
    <script src="./dist/libs/apexcharts/dist/apexcharts.min.js?1674944402" defer></script>
    <!-- Tabler Core -->
    <script src="./dist/js/tabler.min.js?1674944402" defer></script>
    <script src="./dist/js/demo.min.js?1674944402" defer></script>
    
    
    <script>
      // @formatter:off
      document.addEventListener("DOMContentLoaded", function () {
      	window.ApexCharts && (new ApexCharts(document.getElementById('chart-tasks-overview'), {
      		chart: {
      			type: "bar",
      			fontFamily: 'inherit',
      			height: 320,
      			parentHeightOffset: 0,
      			toolbar: {
      				show: false,
      			},
      			animations: {
      				enabled: false
      			},
      		},
      		plotOptions: {
      			bar: {
      				columnWidth: '50%',
      			}
      		},
      		dataLabels: {
      			enabled: false,
      		},
      		fill: {
      			opacity: 1,
      		},
      		series: [
      		    
      		{
      			name: "Total Yapılan",
      			data: [<?=$ocak_satis?>,<?=$subat_satis?>,<?=$mart_satis?>,<?=$nisan_satis?>,<?=$mayis_satis?>,<?=$haziran_satis?>,<?=$temmuz_satis?>,<?=$agustos_satis?>,<?=$eylul_satis?>,<?=$ekim_satis?>,<?=$kasim_satis?>,<?=$aralik_satis?>]
      		}
      		,{
      			name: "Geri Dönen Onarım",
      			data: [<?=$ocak_onarim_yenileme?>,<?=$subat_onarim_yenileme?>,<?=$mart_onarim_yenileme?>,<?=$nisan_onarim_yenileme?>,<?=$mayis_onarim_yenileme?>,<?=$haziran_onarim_yenileme?>,<?=$temmuz_onarim_yenileme?>,<?=$agustos_onarim_yenileme?>,<?=$eylul_onarim_yenileme?>,<?=$ekim_onarim_yenileme?>,<?=$kasim_onarim_yenileme?>,<?=$aralik_onarim_yenileme?>]
      		}  
      		
      		],
      		tooltip: {
      			theme: 'dark'
      		},
      		grid: {
      			padding: {
      				top: -20,
      				right: 0,
      				left: -4,
      				bottom: -4
      			},
      			strokeDashArray: 4,
      		},
      		xaxis: {
      			labels: {
      				padding: 0,
      			},
      			tooltip: {
      				enabled: false
      			},
      			axisBorder: {
      				show: false,
      			},
      			categories: ["Ocak(%<?=round(($ocak_onarim_yenileme*100)/$ocak_satis)?>)","Şubat(%<?=round(($subat_onarim_yenileme*100)/$subat_satis)?>)","Mart(%<?=round((100*$mart_onarim_yenileme)/$mart_satis)?>)","Nisan(%<?=round(($nisan_onarim_yenileme*100)/$nisan_satis)?>)","Mayıs(%<?=round(($mayis_onarim_yenileme*100)/$mayis_satis)?>)","Haziran(%<?=round(($haziran_onarim_yenileme*100)/$haziran_satis)?>)","Temmuz(%<?=round(($temmuz_onarim_yenileme*100)/$temmuz_satis)?>)","Ağustos(%<?=round(($agustos_onarim_yenileme*100)/$agustos_satis)?>)","Eylül(%<?=round(($eylul_onarim_yenileme*100)/$eylul_satis)?>)","Ekim(%<?=round(($ekim_onarim_yenileme*100)/$ekim_satis)?>)","Kasım(%<?=round(($kasim_onarim_yenileme*100)/$kasim_satis)?>)","Aralık(%<?=round(($aralik_onarim_yenileme*100)/$aralik_satis)?>)"],
      		},
      		yaxis: {
      			labels: {
      				padding: 4
      			},
      		},
      		colors: [tabler.getColor("green"),tabler.getColor("pink")   ],
      		legend: {
      			show: false,
      		},
      	})).render();
      });
      // @formatter:on
    </script>
<? include 'footer.php'; ?>