<?php
include '../connection.php'; 
if(!isset($_SESSION)) session_start();
if(!isset($_SESSION["ID"])){header('Location: index.php');}

$sqlretriveAR = "select ID,company,bank,denark,Financialcollection from donate_ar";
$executeSqlAR = mysqli_query($connection,$sqlretriveAR);
$retriveDataAR = mysqli_fetch_row($executeSqlAR);
$sqlretriveEN = "select ID,company,bank,denark,Financialcollection from donate_en";
$executeSqlEN = mysqli_query($connection,$sqlretriveEN);
$retriveDataEN = mysqli_fetch_row($executeSqlEN);
?>
<!doctype html>
<html lang="ar">
  <head>
    <title>خذ فرصة</title>
    <!-- Required meta tags -->
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">

    <!-- assets / css -->
    <?php include 'cssFile.php'; ?>

  </head>
  <body dir="rtl">
  <?php include 'navbar.php'; ?>
<div class="content-body" style='margin-bottom:30px;'>
    <div class='container' style='margin-top:30px;'>
        <div class="row justify-content-center">
            <div class="col-md-3 text-center col-donate">
                <h3>تبرع الآن</h3>
            </div>
            
        </div>
        <!-- End row -->
        <div class="row">
            <div class='col-md-5 text-center' style='margin:0 10px 10px 0px;'>
                <a class='btn btn-pink' href='edit-donate.php'>تعديل المحتوى </a>
            </div>
            <!-- End col -->
        </div>
        <div class='row text-right justify-content-center ' style='margin-top:30px;'>
            <div class="col-md-10 col-company" style='border-color:#002539'>
                <h4>تحصيل مالي</h4><hr>
                <p>
                    <?php echo $retriveDataAR[4];?>
                </p><br>
                <h4 class='text-left'>Financial collection</h4><hr>
                <p class='text-left'>
                    <?php echo $retriveDataEN[4];?>
                </p>
            </div>
        </div>
        <!-- End row -->
        <div class='row text-right justify-content-center ' style='margin-top:30px;'>
            <div class="col-md-10 col-company">
                <h4>الموقع</h4><hr>
                <p>
                    <?php echo $retriveDataAR[1];?>
                </p><br>
                <h4 class='text-left'>COMPANY</h4><hr>
                <p class='text-left'>
                    <?php echo $retriveDataEN[1];?>
                </p>
            </div>
        </div>
        <!-- End row -->
        <div class='row text-right justify-content-center ' style='margin-top:30px;'>
            <div class="col-md-10 col-bank">
                <h4>البنك</h4><hr>
                <p>
                    <?php echo $retriveDataAR[2];?>
                <p><br>
                <h4 class='text-left'>BANK</h4><hr>
                <p class='text-left'>
                    <?php echo $retriveDataEN[2];?>
                </p>
            </div>
        </div>
        <!-- End row -->
        <div class='row text-right justify-content-center ' style='margin-top:30px;'>
            <div class="col-md-10 col-denark">
                <h4>دينارك</h4><hr>
                <p>
                    <?php echo $retriveDataAR[3];?>
                <p><br>
                <h4 class='text-left'>DENARK</h4><hr>
                <p class='text-left'>
                    <?php echo $retriveDataEN[3];?>
                <p><br>
            </div>
        </div>
        <!-- End row -->
    </div>
    <!-- End container -->
</div>
<!-- End content body -->
<!-- assets / js -->
    <?php include 'jsFile.php'; ?>
    <script>

<?php
if(!isset($_SESSION))
  session_start();
if(isset($_SESSION["updatesuccessapp"]) && $_SESSION["updatesuccessapp"] == 1)
{ 
?>
Swal.fire(
  'تم تعديل المعلومات بنجاح',
  '',
  'success'
)
<?php
$_SESSION["updatesuccessapp"] = 0;
}
?>
</script>
  </body>
</html>
<!-- onload="reloader()" -->

