<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>
		</div>
		<?php }?>
	</div>	
	
	<div class="box-group box-group-2">
		<div class="container">
			<div class="row">
				<div class="col-md-12">
					<div class="car-slider-button">
						<button type="button" data-direction="prev" class="btn btn-link"><i class="fa fa-angle-left"></i></button>
						<button type="button" data-direction="next" class="btn btn-link"><i class="fa fa-angle-right"></i></button>
					</div>
				</div>
				<div class="col-md-12">
					<div class="car-slider" data-auto="next">
					<?php $Sorgu = $db->prepare("SELECT * FROM slider WHERE durum = ? AND dil = ? ORDER BY id ASC");
					$Sorgu->execute(array("1",$_SESSION['k_dil']));
					$sayi = 1;
					$islem = $Sorgu->fetchALL(PDO::FETCH_ASSOC);?>
						<?php foreach ( $islem as $Sonuc ){?>
						<div class="item <?php switch ($sayi++){case 1: echo "before before-1"; break;case 2: echo "before animate"; break;case 3: echo "active animate"; break;case 4: echo "after animate"; break;case 5: echo "after after-1"; break;default: echo "after after-1";}?>">
							<div class="campaign-price">
								<div class="label-value"><b><?php echo para_birim();?></b><?php echo $Sonuc['fiyat']?></div>
								<div class="label-text"><?php echo $Sonuc['bilgi']?></div>
							</div><a <?php echo($Sonuc['sekme'] == 1 ? 'target="_blank"' : '');?> href="https://wa.me/+905355602764?text=Merhaba Bu Araç Hakkında Detaylı Bilgi Almak İstiyorum. <?php echo $Sonuc['adi']; ?> Kiralamak İstiyorum."><img src="<?php echo TEMA;?>/uploads/slider/<?php echo $Sonuc['resim']?>"></a>
							<div class="campaign-title"><?php echo $Sonuc['adi']?></div>
						</div>
						<?php } ?>
					</div>
				</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="https://wa.me/+905355602764?text=Merhaba Bu Araç Hakkında Detaylı Bilgi Almak İstiyorum. <?php echo $Sonuc['adi']; ?> Kiralamak İstiyorum. "</a><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 class="car-class"><span style="color:#FF2400"><center><b>Vale ile Adrese Ücretsiz Teslimat</b></center></span></div>
								<h4><div class="yanipsonenyazi"><span style="color:#FF2400"><center><b>ONLİNE ÖZEL %10 İNDİRİM</b></center></span></div></h4>
								</div>
								<div class="action-btn">
								</div>
								<div class="fiyatliste hidden-xs hidden-sm">
									<div class="fiyatlisteborder">
										<div class="fiyatlistehizala"> 
											<h4 style="text-align: center;">Araç Detaylarını Öğrenmek, Haftalık, Aylık Fiyatlarımız İçin Bizimle İletişime Geçin</h4>
										</div>
									</div>
								</div>
								<div class="action-btn">
									<center><a href="tel:905355602764 "class="btn btn-primary-o" <button>ARA</button></a></center>
								    <br>
								    <center><a href="https://wa.me/+905355602764?text=Merhaba Bu Araç Hakkında Detaylı Bilgi Almak İstiyorum. <?php echo $Sonuc['adi']; ?> Kiralamak İstiyorum. "class="btn btn-primary-o" class="btn btn-primary-o" style="min-width:unset;width:100%;background-color:#25D366;color:white;text-align:center;display:flex;align-items:center;justify-content:center;">
                                    <svg width="34px" height="34px" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg"><g id="SVGRepo_bgCarrier" stroke-width="0"></g><g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round" stroke="#CCCCCC" stroke-width="1.7920000000000003"></g><g id="SVGRepo_iconCarrier">
                                    <path fill-rule="evenodd" clip-rule="evenodd" d="M16 31C23.732 31 30 24.732 30 17C30 9.26801 23.732 3 16 3C8.26801 3 2 9.26801 2 17C2 19.5109 2.661 21.8674 3.81847 23.905L2 31L9.31486 29.3038C11.3014 30.3854 13.5789 31 16 31ZM16 28.8462C22.5425 28.8462 27.8462 23.5425 27.8462 17C27.8462 10.4576 22.5425 5.15385 16 5.15385C9.45755 5.15385 4.15385 10.4576 4.15385 17C4.15385 19.5261 4.9445 21.8675 6.29184 23.7902L5.23077 27.7692L9.27993 26.7569C11.1894 28.0746 13.5046 28.8462 16 28.8462Z" fill="#BFC8D0"></path>
                                    <path d="M28 16C28 22.6274 22.6274 28 16 28C13.4722 28 11.1269 27.2184 9.19266 25.8837L5.09091 26.9091L6.16576 22.8784C4.80092 20.9307 4 18.5589 4 16C4 9.37258 9.37258 4 16 4C22.6274 4 28 9.37258 28 16Z" fill="url(#paint0_linear_87_7264)"></path>
                                    <path fill-rule="evenodd" clip-rule="evenodd" d="M16 30C23.732 30 30 23.732 30 16C30 8.26801 23.732 2 16 2C8.26801 2 2 8.26801 2 16C2 18.5109 2.661 20.8674 3.81847 22.905L2 30L9.31486 28.3038C11.3014 29.3854 13.5789 30 16 30ZM16 27.8462C22.5425 27.8462 27.8462 22.5425 27.8462 16C27.8462 9.45755 22.5425 4.15385 16 4.15385C9.45755 4.15385 4.15385 9.45755 4.15385 16C4.15385 18.5261 4.9445 20.8675 6.29184 22.7902L5.23077 26.7692L9.27993 25.7569C11.1894 27.0746 13.5046 27.8462 16 27.8462Z" fill="white"></path>
                                    <path d="M12.5 9.49989C12.1672 8.83131 11.6565 8.8905 11.1407 8.8905C10.2188 8.8905 8.78125 9.99478 8.78125 12.05C8.78125 13.7343 9.52345 15.578 12.0244 18.3361C14.438 20.9979 17.6094 22.3748 20.2422 22.3279C22.875 22.2811 23.4167 20.0154 23.4167 19.2503C23.4167 18.9112 23.2062 18.742 23.0613 18.696C22.1641 18.2654 20.5093 17.4631 20.1328 17.3124C19.7563 17.1617 19.5597 17.3656 19.4375 17.4765C19.0961 17.8018 18.4193 18.7608 18.1875 18.9765C17.9558 19.1922 17.6103 19.083 17.4665 19.0015C16.9374 18.7892 15.5029 18.1511 14.3595 17.0426C12.9453 15.6718 12.8623 15.2001 12.5959 14.7803C12.3828 14.4444 12.5392 14.2384 12.6172 14.1483C12.9219 13.7968 13.3426 13.254 13.5313 12.9843C13.7199 12.7145 13.5702 12.305 13.4803 12.05C13.0938 10.953 12.7663 10.0347 12.5 9.49989Z" fill="white"></path>
                                    <defs><linearGradient id="paint0_linear_87_7264" x1="26.5" y1="7" x2="4" y2="28" gradientUnits="userSpaceOnUse"><stop stop-color="#5BD066"></stop><stop offset="1" stop-color="#27B43E"></stop></linearGradient></defs></g></svg>Müşteri Temsilcisi</a></center>
								</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 }?>