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

<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">Referans Sistemine Hoş Geldiniz</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-t">Kullanıcı Adı</div>
                                <div class="afip-username">
                                    <span>{USER_USERNAME}</span>
                                    <i class="far fa-badge-check"></i>
                                </div>
                            </div>
                        </div>
                        <div class="col-lg col-md-12">
                            <div class="afip-box">
                                <button class="btn btn-primary afip-btn" onclick="copyToClipboard('{USER_REFERENCE_LINK}')">
                                    <i class="fas fa-copy"></i>
                                </button>
                                <div class="afip-left">
                                    <div class="afip-title">Referans Linki</div>
                                    <div class="afip-text">{USER_REFERENCE_LINK}</div>
                                </div>
                            </div>
                        </div>
                        <div class="col-lg-auto col-md-6">
                            <div class="afip-box">
                                <button class="btn btn-primary afip-btn">
                                    <i class="far fa-badge-percent"></i>
                                </button>
                                <div class="afip-left">
                                    <div class="afip-title">{REFERENCE_TABLE_EARNINGS_TITLE}</div>
                                    <div class="afip-text">%<?= REFERENCE_SHARE ?></div>
                                </div>
                            </div>
                        </div>
                        <div class="col-lg-auto col-md-6">
                            <div class="afip-box">
                                <button class="btn btn-primary afip-btn">
                                    <i class="fas fa-money-bill-wave"></i>
                                </button>
                                <div class="afip-left">
                                    <div class="afip-title">Minimum Ödeme</div>
                                    <div class="afip-text">15.00₺</div>
                                </div>
                            </div>
                        </div>
                    </div><!-- row -->
                </div><!-- ./card-afip-body -->
                <div class="card-afip-body">
                    <div class="row row-cols-lg-6 row-cols-md-3 row-cols-2 mt-4">

												
                    </div><!-- row -->
					<div class="row">
						<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>Referansınızla Üye Olanlar</h2>
												<p>Referansınızla üye olan kullanıcılardan kazandıklarınızı bu alanda görebilirsiniz.</p>
											</div>
										</div>
									</div>
                       
                                    <div class="old-payments">
										<?php foreach ($references as $reference) : ?>
										<div class="card mb-3">
											<div class="py-4 px-lg-3 px-4">
												<div class="row">
													<div class="col-lg-6 col-12">
													    <h4 class="op-title">
															<span>{REFERENCE_TABLE_USERNAME_TITLE}</span>
														</h4>
														<div class="op-status">
															<span data-toggle="tooltip" data-placement="left">123<?= $reference["user_username"] ?></span>
														</div>
													</div>
													<div class="col-lg-6 col-12">
													    <h4 class="op-title">
															<span>{REFERENCE_TABLE_EARNINGS_TITLE}</span>
														</h4>
														<div class="op-status">
															<span data-toggle="tooltip" data-placement="left">123<?= $reference["reference_earnings"] ?></span>
														</div>
													</div>
												</div>
											</div>
										</div>
										<?php endforeach; ?>
                                    </div>

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


               </div><!-- ./card-afip-body(2nd) -->
            </div>

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


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