<section class="home-content">
	<div class="box-group box-group-1">
	<?php if($moduller['alan1'] == "1"){?>
		<div class="container">
			<div class="promo-box">
				<div class="promo-form">
					<form action="system/site_islemler.php" method="POST" autocomplete="off">
					<div class="promo-form-input">
						<div class="col-md-5 col-sm-5">
							<div class="form-group">
								<div class="icon-box"><i class="fa fa-car"></i></div>
								<div class="input-box">
									<select name="alis" data-style="home-btn-select btn-link" data-live-search="true" data-size="10" class="selectpicker" data-custom-id="custom" data-custom-class="custom">
										<option selected="selected" value=""><?=@$dil['alis_noktasi'];?></option>
										<?php $Sorgu = $db->prepare("SELECT * FROM lokasyon WHERE durum = ? AND konum = ? AND dil = ? ORDER BY id ASC");
										$Sorgu->execute(array("1","0",$_SESSION['k_dil']));
										$islem = $Sorgu->fetchALL(PDO::FETCH_ASSOC);?>
										<?php foreach ( $islem as $Sonuc ){?>
										<option value="<?php echo $Sonuc['adi']?>" <?php echo($Sonuc['adi'] == $_SESSION['alis'] ? 'selected' : '');?>><?php echo $Sonuc['adi']?></option>
										<?php }?>
									</select>
								</div>
							</div>
						</div>

						<div class="col-md-7 col-sm-7">
							<div class="col-md-6 col-sm-6 border-l">
								<div class="form-group">
									<div class="icon-box"><i class="fa fa-calendar"></i></div>
									<div class="input-box">
										<input name="alistarih" type="text" placeholder="<?=@$dil['tarih_seciniz'];?>" value="<?php echo($_SESSION['alistarih'] != "" ? $_SESSION['alistarih'] : date("d-m-Y")." ".date("H",strtotime('+1 hours')).":00");?>" class="form-control dt-picker dt-start" />
									</div>
								</div>
							</div>
							<div class="col-md-6 col-sm-6 border-l">
								<div class="form-group">
									<div class="icon-box"><i class="fa fa-calendar"></i></div>
									<div class="input-box">
										<input name="donustarih" type="text" placeholder="<?=@$dil['tarih_seciniz'];?>" value="<?php echo($_SESSION['donustarih'] != "" ? $_SESSION['donustarih'] : date("d-m-Y",strtotime('+1 days'))." ".date("H",strtotime('+1 hours')).":00");?>" class="form-control dt-picker dt-end" />
									</div>
								</div>
							</div>
						</div>
						<div class="col-md-2 col-sm-2">
							
						</div>
					</div>
					<div class="promo-form-action">
						<div class="other-delivery-area">
							<div class="col-md-6 col-md-offset-3">
								<div class="promo-form-input mt-20">
									<div class="form-group">
										<div class="icon-box"><i class="fa fa-car"></i></div>
										<div class="input-box">
											<select name="donus" data-style="home-btn-select btn-link" data-live-search="true" data-size="10" class="selectpicker" data-custom-id="custom" data-custom-class="custom">
												<option selected="selected" value=""><?=@$dil['iade_noktasi'];?></option>
												<?php $Sorgu = $db->prepare("SELECT * FROM lokasyon WHERE durum = ? AND konum = ? AND dil = ? ORDER BY id ASC");
												$Sorgu->execute(array("1","1",$_SESSION['k_dil']));
												$islem = $Sorgu->fetchALL(PDO::FETCH_ASSOC);?>
												<?php foreach ( $islem as $Sonuc ){?>
												<option value="<?php echo $Sonuc['adi']?>" <?php echo($Sonuc['adi'] == $_SESSION['donus'] ? 'selected' : '');?>><?php echo $Sonuc['adi']?></option>
												<?php }?>
											</select>
										</div>
									</div>
								</div>
							</div>
						</div>
						<div class="other-delivery">
							<div class="check">
								<div class="checkbox" style="text-align:left;padding: 15px 0;">
									<label class="styled" id="ilavealan">
										<input id="donus" type="checkbox" name="farkli_lokasyon"><span><?=@$dil['farkli_lokasyon'];?> </span>
									</label>
								</div>
							</div>
						</div>
						<input type="hidden" id="url" name="url" value="<?php echo $_SERVER['REQUEST_URI'];?>">
						<input type="submit" name="arac_bul" value="<?=@$dil['arac_bul'];?>" class="btn btn-primary-o btn-submit" />
					</div>
					</form>
				</div>
			</div>
	<br>
					
						
						<a href="https://api.whatsapp.com/send?phone=905521571746&amp;text=Ara%C3%A7%20kiralamak%20istiyorum." target="_self" class="btn btn-success" generalid="promo1">Whatsapp İletişim</a>
					
					</div>
					
				</b></form></div><b>
			</b></div><b>
		</b></div><b>
			</b></div><b>	
		</div>
		<?php }?>
	</div>	
	
	<div class="box-group box-group-2">
		<div class="container">
			<div class="row">
				<div class="col-md-12">
					
				</div>
				
			</div>
		</div>
	</div>
	<?php if($moduller['alan2'] == "1"){?>
	<div class="box-group box-group-3">
		<div class="box-group-head">
			<h2><span><?=@$dil['anasayfa_yazi_baslik'];?></span></h2>
		</div>
		<div class="box-group-body">
			<div class="container">
				<div class="car-list">
					<div class="row">
					<?php $Sorgu = $db->prepare("SELECT * FROM araclar WHERE durum = ? AND anasayfa = ? AND dil = ? ORDER BY bir_uc ASC");
					$Sorgu->execute(array("1","1",$_SESSION['k_dil']));
					$islem = $Sorgu->fetchALL(PDO::FETCH_ASSOC);?>
						<?php foreach ( $islem as $Sonuc ){?>
						<?php $kategoriler =$db->query("SELECT * FROM kategori WHERE durum = '1' AND id='{$Sonuc['kategori']}'")->fetch(PDO::FETCH_ASSOC);?>
						<div class="col-md-4 col-sm-6">
							<div class="item">
								<?php if($Sonuc['yeni'] == 1){?><div class='new-box'><span><?=@$dil['yeni'];?></span></div><?php }?>
								<div class="price-box"><span class="price-value"> <?php echo para_birim();?> <?php echo intval($Sonuc['bir_uc']); ?></span><span class="price-text"><b>/</b> <?=@$dil['gun'];?></span></div>
								<div class="image-box"><a href="arac/<?php echo $Sonuc['seo']; ?>.html"><img src="<?php echo TEMA;?>/uploads/araclar/<?php echo $Sonuc['resim']; ?>" data-height="200"></a></div>
								<div class="car-info">
									<div class="car-name"><?php echo $Sonuc['adi']; ?></div>
									<div class="car-class"><?php echo $kategoriler['adi'];?> </div>
								</div>
								<div class="car-option-list">
									<ul>
										<li><i class="fa fa-battery-three-quarters"></i><span><?php if($Sonuc['yakit'] == 1){echo "Dizel";}?><?php if($Sonuc['yakit'] == 2){echo "Benzin";}?><?php if($Sonuc['yakit'] == 3){echo "Lpg";}?></span></li>
										<li><i class="fa fa-tachometer"></i><span><?php if($Sonuc['vites'] == 1){echo "Manuel";}?><?php if($Sonuc['vites'] == 2){echo "Otomatik";}?><?php if($Sonuc['vites'] == 3){echo "Triptonik";}?></span></li>
										<li><i class="fa fa-recycle"></i><span><?php if($Sonuc['klima'] == 1){echo "Dijital";}?><?php if($Sonuc['klima'] == 2){echo "Analog";}?><?php if($Sonuc['klima'] == 3){echo "Yok";}?></span></li>
										<li><i class="fa fa-suitcase"></i><span><?php echo $Sonuc['bagaj']; ?> <?=@$dil['lt'];?></span></li>
									</ul>
								</div>
								<div class="fiyatliste hidden-xs hidden-sm">
									<div class="fiyatlisteborder">
										<div class="fiyatlistehizala"> 
											<span class="gunlukfiyatlar">1-3 <?=@$dil['gun'];?><em> <?php echo para_birim();?> <?php echo intval($Sonuc['bir_uc']); ?></em></span> 
											<span class="gunlukfiyatlar">4-7 <?=@$dil['gun'];?><em> <?php echo para_birim();?> <?php echo intval($Sonuc['dort_yedi']); ?></em></span> 
											<span class="gunlukfiyatlar">8-15 <?=@$dil['gun'];?><em> <?php echo para_birim();?> <?php echo intval($Sonuc['sekiz_onbes']); ?></em></span> 
											<span class="gunlukfiyatlar">16-21 <?=@$dil['gun'];?><em> <?php echo para_birim();?> <?php echo intval($Sonuc['onalti_yirmibir']); ?></em></span> 
											<span class="gunlukfiyatlar">22-28 <?=@$dil['gun'];?><em> <?php echo para_birim();?> <?php echo intval($Sonuc['yirmiiki_yirmisekiz']); ?></em></span> 
											<span class="gunlukfiyatlar">29-99 <?=@$dil['gun'];?><em> <?php echo para_birim();?> <?php echo intval($Sonuc['yirmidokuz_doksandokuz']); ?></em></span> 
										</div>
									</div>
								</div>
								<div class="action-btn">
									<a href="arac/<?php echo $Sonuc['seo']; ?>.html" class="btn btn-primary-o"><?=@$dil['incele'];?></a>
								</div>
							</div>
						</div>
						<?php }?>
					</div>
				</div>
			</div>
		</div>
	</div>
	<?php }?>
	<?php if($moduller['alan9'] == "1"){?>
	<div class="box-group box-group-4">
		<div class="box-group-head">
			<h2><span><?=@$dil['kampanya_bulten'];?></span></h2>
		</div>
		<div class="box-group-body">
			<div class="container">
				<div class="bulletin">
					<form action="system/site_islemler.php" method="POST">
						<div class="form-group">
							<label><?=@$dil['kampanya_bulten_mesaj'];?></label>
							<div class="has-feedback has-feedback-left">
								<input type="text" name="email" class="form-control" required placeholder="<?=@$dil['email'];?>">
								<div class="form-control-feedback"><i class="ic ic-envelope"></i></div>
							</div>
						</div>
						<div class="form-group">
							<input type="hidden" id="url" name="url" value="<?php echo $_SERVER['REQUEST_URI'];?>">
							<input type="submit" name="ebulten" value="<?=@$dil['kaydol'];?>" class="btn btn-orange btn-icon" style="text-align: center;" />
						</div>
					</form>
				</div>
			</div>
		</div>
	</div>
	<?php }?>
</section>
<?php if($_SESSION['donus']){?>
<script>
	$('.btn-link').toggleClass('active');
	$('.other-delivery-area').toggle();
	$("#ilavealan").css("display", "none");
</script>
<?php }?>