<div class="inner-wrapper">
	<section role="main" class="content-body">
		<header class="page-header">
			<h2><?php echo $module["repairs_text"];?></h2>
			
			<div class="right-wrapper text-right">
				<ol class="breadcrumbs">
					<li>
						<a href=".">
							<i class="fa fa-home"></i>
						</a>
					</li>
					<li><span>Crm +Plus</span></li>
					<li><span><?php echo $module["repairs_text"];?></span></li>
				</ol>
				
				<a class="sidebar-right-toggle" data-open="sidebar-right"><i class="fa fa-chevron-left"></i></a>
			</div>
		</header>
		<?php if($_GET["durum"]=="ok"){?>
			<div class="alert alert-success">
				<?php echo $sdil[212]; //Islem Basariyla Gerçeklestirilmistir !?>
			</div>
		<?php }?>
		
		<div class="row">
			<div class="col">
				<section class="card">
					<header class="card-header v3-bg-info">
						<div class="card-actions" id="v-<?php echo $_GET['islem'];?>">
							<!--
								<a href="#" class="card-action card-action-dismiss" data-card-dismiss=""></a>
							-->
						</div>
						
						<h2 class="card-title"><?php echo $module["repairs_text"];?></h2>
					</header>
					<div class="card-body" style="">
						<table class="v3-table" style="">
							<thead>
								<tr class="mdn">
									<th class="w6" style="text-align:center;">ID</span></th>
									<th><?php echo translate("Açıklama");?></th>
									<th class="w15"><?php echo translate("Cihaz Adı / Modeli");?></th>
									<th class="w15"><?php echo translate("Müşteri");?></th>
									<th class="w15"><?php echo translate("Personel");?></th>
									<th class="w8"><?php echo translate("Tarih");?></th>
									<th class="w5"><?php echo $sdil[213]; //İşlemler?></th>
								</tr>
							</thead>
							<tbody>
						<?php $sqlr = mysqli_query($conn, "select * from t4 where ne='repair' $luye order by id desc"); while($rsr = mysqli_fetch_assoc($sqlr)){ $jsi = json_decode($rsr["n17"], true); ?>
							<tr data-id="<?php echo $rsr["id"];?>" class="">
								<th class="mdn cp v3-text-info mfrm" data-toggle="modal" data-width="90%" data-target="#myModal" data-url="modules/repairs/repair.php?ne=<?php echo $_GET["ne"];?>&islem=drepair&id=<?php echo $rsr["id"];?>"><?php echo i2a($rsr["id"],7);?></th>
								<td>
									<span title="" class="with-tip">
										<?php $durumlar = [ "0" => '<i class="fa fa-clock-o text-warning" title="Beklemede"></i>', "4" => '<i class="fa fa-cogs text-info" title="İşlemde"></i>', "3" => '<i class="fa fa-check-circle text-success" title="Tamamlandı"></i>', "1" => '<i class="fa fa-truck text-primary" title="Teslim Edildi"></i>', "2" => '<i class="fa fa-times-circle text-danger" title="İptal Edildi"></i>' ]; echo $durumlar[$rsr["s4"]]; ?> <?php echo $jsi["Aciklama"];?>
									</span>
								</td>
								<td class="mdn"><?php echo $jsi["Cihaz_Adi_Modeli"];?></td>
								<td><?php echo $jsi["Ad_Soyad"];?></td>
								<td class="mdn"><?php echo GetUser($rsr["s19"],"t1");?></td>
								<td class="mdn"><?php echo dtarih($rsr["ts1"],"gg ka yyyy");?></td>
				                <td class="table-actions" style="text-align: right;">
				                	<div class="input-group-btn">
										<a class="btn btn-info mr2 mfrm" data-toggle="modal" data-width="90%" data-target="#myModal" data-url="modules/repairs/repair.php?ne=<?php echo $_GET["ne"];?>&islem=drepair&id=<?php echo $rsr["id"];?>" title="<?php echo $sdil[199]; //Düzenle?>"><i class="fa fa-pencil"></i></a>
										<a title="<?php echo $sdil[204]; //Kaldir?>" class="btn btn-danger btn-delete-row" data-href="?ne=<?php echo $_GET["ne"];?>&islem=<?php echo $_GET["islem"];?>&durum=srepair&id=<?php echo $rsr["id"];?>"><i class="fa fa-times" aria-hidden="true"></i></a>
				                	</div>
				                </td>
				            </tr>
				        <?php }?>
				    </tbody>
				</table>
			</form>
		</div>
	</section>
</div>
</div>
<!-- end: page -->
</section>
</div>
<aside id="sidebar-right" class="sidebar-right">
	<div class="nano">
		<div class="nano-content">
			<a href="#" class="mobile-close d-md-none">
				Collapse <i class="fa fa-chevron-right"></i>
			</a>
			<div class="sidebar-right-wrapper">
				...
			</div>
		</div>
	</div>
</aside>
</section>
<?php
if($_GET["durum"] == "srepair"){
	$sql = mysqli_query($conn, "delete from t4 where id=".$_GET["id"]."");
	echo location("?ne=".$_GET["ne"]."&islem=".$_GET["islem"]."&durum=ok",self,500,1);
}
?>