<?php include 'inc/header.php';?>
<?php include 'inc/sidebar.php';?>
<?php include 'inc/navbar.php';?>
<link href="assets/switch.css" rel="stylesheet"/>
<!-- Page Content-->

		<div class="page-content">
			<div class="container-fluid">
				<!-- Page-Title -->
				<div class="row">
					<div class="col-sm-12">
						<div class="page-title-box">
							<div class="row">
								<div class="col">
									<h4 class="page-title">Ödeme Ayarları</h4>
									<ol class="breadcrumb">
										<li class="breadcrumb-item"><a href="anasayfa">Anasayfa</a></li> 
										<li class="breadcrumb-item active">Ödeme Ayarları</li>
									</ol>
								</div><!--end col-->  
							</div><!--end row-->                                                              
						</div><!--end page-title-box-->
					</div><!--end col-->
				</div><!--end row-->
				<!-- end page title end breadcrumb -->
				<style type="text/css">
					i {  
						font-size: 16px;
					}
				</style>
				<div class="row"> 
					<div class="col-lg-12">
						<div class="card">
							<div class="card-header">
								<h4 class="card-title">Ödeme Ayarları</h4>
								<p class="text-muted mb-0">Değerli kullanıcı, bu alan sayesinde kullanıcıya sunulan ödeme seçeneklerini açıp kapatabilirsiniz. Örneğin online ödeme almak istemiyorsanız eğer online ödemeyi pasif hale getirerek online ödeme almayı kapatabilirsiniz.
								</p>
							</div><!--end card-header-->
							<div class="card-body">
								<div class="table-responsive">
									<table class="table table-bordered mb-0 table-centered">
										<thead>
											<tr>
												<th>#</th> 
												<th>Ödeme Yöntemi Adı</th>
												<th>Durum</th>  
											</tr>
										</thead>
										<tbody>
											<?php
											$ebultensorgu = $dbh->prepare("SELECT * FROM payments_settings ");
											$ebultensorgu->execute();

											while ($ebultensonuc = $ebultensorgu->fetch()) {

												$id = $ebultensonuc['id'];
												$payments_name = $ebultensonuc['payments_name']; 
												$status = $ebultensonuc['status']; 
												?>
												<tr>
													<td style="width: 10px; height: 10px;">#<?=$ebultensonuc['id'];?></td> 
													<td><?=$ebultensonuc['payments_name'];?></td>  
													<td>
														<label class="switch"> 
															<input type="checkbox" id='<?php echo $ebultensonuc['id'] ?>' class="odemePasif" <?php echo $ebultensonuc['status']==1?'checked':'' ?>  />
															<span class="slider round"></span>
														</label>
													</td>
													 
												</tr>


												 
											<?php } ?>


										</tbody>
									</table><!--end /table-->
									<h5 id="ebultensonuc"></h5>
								</div><!--end /tableresponsive-->
							</div><!--end card-body-->
						</div><!--end card-->
					</div> <!-- end col -->
				</div> <!-- end row -->


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


			<script src="https://code.jquery.com/jquery-1.10.2.js"></script>

<script src="assets/jquery.min.js"></script>
<script src="assets/cccustom.js"></script>
<?php include 'inc/footer.php';?>