																		<?php require view('theme/header'); ?>

<?php if ($child): ?>
<main class="app-main">
    <div class="page-content">
        <div class="container-fluid">
		
			<div class="hp-bbox mt-5 mb-5">
                <div class="row">
                    <div class="col-lg-6">
                        <div class="hpbb-body">
                            <h2 class="hp-title">Yeni Nesil Bayilik Paneli !</h2>
                            <p class="hpbb-text">
								Para yatırmadan önce hüküm ve koşullarımızı okuduğunuzdan emin olun.<br /> 
								Bonusları olan ödeme yöntemlerini kullanmayı öneririz.
							</p>
                        </div>
                    </div>
                </div>
            </div>
            
                <div class="card">
                    <div class="col-lg-12">
                    <div class="card">
                        <div class="py-4 px-lg-3 px-4">
						
									<div class="t-head th-3">
										<div class="d-flex align-items-center">
											<div class="col-lg-2">
												<div class="t-icon">
													<i class="fal fa-receipt"></i>
												</div>
											</div>
											<div class="col-lg-10 col-12">
												<h2>Bayi Paneli</h2>
												<p>Kiraladığınız panelleri buradan görüntüleyebilirsiniz.</p>
											</div>
										</div>
									</div>
                       
                                    <div class="old-payments">
																				<div class="card mb-3">
											<div class="py-4 px-lg-3 px-4">
												<div class="row">
													<div class="col-lg-2 col-6">
														<h4 class="op-title">Domain Adı</h4>
														<div class="/*op-id*/op-status"><?= $child['panel_domain'] ?></div>
													</div>
													<div class="col-lg-2 col-6">
														<h4 class="op-title">
															<span>Admin Kullanıcı Adı</span>
														</h4>
														<div class="op-date"><?= $childadmin->username ?></div>
													</div>
													<div class="col-lg-2 col-6">
														<h4 class="op-title">
															<span>Admin Şifre</span>
														</h4>
														<div class="op-date"><?= $childadmin->password ?></div>
													</div>
													<div class="col-lg-2 col-6">
														<h4 class="op-title">
															<span>Para Birimi</span>
														</h4>
														<div class="op-date"><?= $child['panel_currency'] ?></div>
													</div>
													<div class="col-lg-2 col-6">
														<h4 class="op-title">
															<span>Aylık Bayilik Bedeli</span>
														</h4>
														<div class="op-date"><?= $cp->price ?></div>
													</div>
													<div class="col-lg-2 col-12">
													    <h4 class="op-title">
															<span></span>
														</h4>
														<div class="op-status">
															<a href="//<?= $child['panel_domain'] ?>/admin" data-toggle="tooltip" target="_blank" data-placement="left" data-bs-original-title="" title="" style="color:#fff;">Admin Paneli</a>
														</div>
													</div>
												</div>
											</div>
										</div>
									</div>

                        </div>
                    </div>
                </div>
                </div><!-- card -->
        </div>
    </div>
</main>

<?php else: ?>
<main class="app-main">
    <div class="page-content">
        <div class="container-fluid">
		
			<div class="hp-bbox mt-5 mb-5">
                <div class="row">
                    <div class="col-lg-6">
                        <div class="hpbb-body">
                            <h2 class="hp-title">Yeni Nesil Bayilik Paneli !</h2>
                            <p class="hpbb-text">
								Para yatırmadan önce hüküm ve koşullarımızı okuduğunuzdan emin olun.<br /> 
								Bonusları olan ödeme yöntemlerini kullanmayı öneririz.
							</p>
                        </div>
                    </div>
                </div>
            </div>

                <div class="card">
                    <div class="card-afip-body">
                        <div class="row align-items-center">
                            <div class="col-lg-auto col-md-12">
                                <div class="px-4">
                                    <div class="afip-username">
                                        <span>Lütfen NS'lerinizi ayarlayın:</span>
                                    </div>
                                </div>
                            </div>
                            <div class="col-lg col-md-6">
                                <div class="afip-box" onclick="copyToClipboard('ns1.elindns.com')">
                                    <button class="btn btn-primary afip-btn">
                                        <i class="far fa-copy"></i>
                                    </button>
                                    <div class="afip-left">
                                        <div class="afip-title">Nameserver 1</div>
                                        <div class="afip-text">ns1.elindns.com</div>
                                    </div>
                                </div>
                            </div>
                            <div class="col-lg col-md-6">
                                <div class="afip-box" onclick="copyToClipboard('ns2.elindns.com')">
                                    <button class="btn btn-primary afip-btn">
                                        <i class="fas fa-copy"></i>
                                    </button>
                                    <div class="afip-left">
                                        <div class="afip-title">Nameserver 2</div>
                                        <div class="afip-text">ns2.elindns.com</div>
                                    </div>
                                </div>
                            </div>
                        </div><!-- row -->
                    </div><!-- ./card-afip-body -->
                    <div class="card-afip-body">
                    <form id="child_order" onsubmit="return false;">

                           <div class="row mt-4">
                                <div class="col-lg-6">
                                    <div class="fga mb-4">
                                        <label class="fla" for="domain">Kurulacak Domain Adı</label>
                                        <div class="fg">
                                            <input type="text" id="domain" name="domain" class="fg-control">
                                        </div>
                                    </div><!-- ./fga -->
                                </div><!-- ./col -->
                                <div class="col-lg-6">
                                    <div class="fga mb-4">
                                        <label class="fla" for="currency">Para Birimi</label>
                                        <div class="fg">
                                            <select id="createorderform-currency" name="currency" aria-required="true" class="fg-control">
													<option value="try" >TRY</option>									
													<option value="usd" >USD</option>									
													<option value="eur" >EUR</option>									
											</select>
                                        </div>
                                    </div><!-- ./fga -->
                                </div><!-- ./col -->
                                
                            </div><!-- row -->
                            <div class="row mt-4">
                                <div class="col-lg-6">
                                    <div class="fga mb-4">
                                        <label class="fla" for="admUsername">Admin Kullanıcı Adı</label>
                                        <div class="fg">
                                            <input type="text" id="username" name="username" readonly="" aria-required="true" value="admin" class="fg-control">
                                        </div>
                                    </div><!-- ./fga -->
                                </div><!-- ./col -->
                                <div class="col-lg-6">
                                    <div class="fga mb-4">
                                        <label class="fla" for="adminPass">Admin Şifre</label>
                                        <div class="fg">
                                            <input type="text" id="createorderform-password" readonly="" name="password" aria-required="true" value="123456" class="fg-control">
                                        </div>
                                    </div><!-- ./fga -->
                                </div><!-- ./col -->
                            </div><!-- row -->

                            <div class="row mt-3">
                                <div class="col-lg-6 mb-4 mb-lg-0">
                                    <a href="#" class="btn btn-dark btn-block" id="price">Aylık Bayilik Bedeli: <?= $cp->price ?> </a>
                                </div>
                                <div class="col-lg-6 mb-4 mb-lg-0">
                                    <button type="submit" class="btn btn-primary btn-block">Sipariş Oluştur</button>
                                </div>
                            </div>
                            
                        </form>
                    </div><!-- ./card-afip-body(2nd) -->
                </div><!-- card -->

        </div>
    </div>
</main>

<?php endif; ?>
    
<?php require view('theme/footer'); ?>																