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

$sqlRetrive = "select ID,phone,mobile,email,location,accountNumber,ibanNumber from manager_ar";
$excuteSql = mysqli_query($connection,$sqlRetrive);
$retriveDataAR = mysqli_fetch_row($excuteSql);
$sqlRetrive = "select ID,phone,mobile,email,location,accountNumber,ibanNumber from manager_en";
$excuteSql = mysqli_query($connection,$sqlRetrive);
$retriveDataEN = mysqli_fetch_row($excuteSql);
?>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>خذ فرصة</title>
    <?php include 'cssFile.php'; ?>

</head>
<body dir='rtl'>
    <?php include 'navbar.php';?>

    <div class="content-body">
        <div class='container' style='margin-top:30px;'>
        <div class="row justify-content-center">
            <div class="col-md-3 text-center col-manager">
                <h3>الإدارة العامة</h3>
            </div>
        </div>
        <!-- End row -->
        <div class='row justify-content-center'>
            <div class='col-md-10 text-right' style='margin:0 10px 10px 0px;padding-left:50px;'>
                <a href='edit-manager.php' class='btn btn-yellow' style='font-weight:bold'>تعديل </a>
            </div>
            <!-- End col -->
        </div>
        <!-- End row -->

            <div class="row justify-content-center" id="row-about">
        <div class="col-10 text-right">
            <h4 class='text-center' style='color:#002539;direction:ltr;'>
            <?php echo  $retriveDataAR[1];?>
            :
       موبايل
       |
       Phone 
            </h4>
            <hr>
        </div>
    </div><br>
    <!-- End row -->
    <div class="row justify-content-center" id="row-about">
        <div class="col-10 text-right">
            <h4 class='text-center' style='color:#FC5272;direction:ltr;'>
            <?php echo  $retriveDataAR[2];?>
            :
        الهاتف
       |
       Mobile 
            </h4>
            <hr>
        </div>
    </div><br>
    <!-- End row -->

    <div class="row justify-content-center" id="row-about">
        <div class="col-10 text-right">
            <h4 class='text-center' style='color:#0080BB;direction:ltr;'>
            <?php echo  $retriveDataAR[3];?>
            :
        البريد الإلكتروني
       |
       E-mail 
            </h4>
            <hr>
        </div>
    </div><br>
    <!-- End row -->
   
    <div class="row justify-content-center" id="row-about">
        <div class="col-10 text-right">
            <h4 class='text-center' style='color:#002539;direction:ltr;font-weight:bold'>
            :
        موقعنا
       |
       Location <br>
       <span style='font-size:25px;'><?php echo  $retriveDataAR[4];?></span>
    <br>
    <span style='font-size:25px;'><?php echo  $retriveDataEN[4];?></span>

            </h4>
            <hr>
        </div>
    </div><br>
    <!-- End row -->

       
    <div class="row justify-content-center" id="row-about">
        <div class="col-10 text-right">
            <h4 class='text-center' style='color:#FC5272;direction:ltr;font-weight:bold'>
            :
        رقم الحساب
       |
       Account Number <br>
       <span style='font-size:25px;'><?php echo  $retriveDataAR[5];?></span>
    <br>
    <span style='font-size:25px;'><?php echo  $retriveDataEN[5];?></span>

            </h4>
            <hr>
        </div>
    </div><br>
    <!-- End row -->

    <div class="row justify-content-center" id="row-about">
        <div class="col-10 text-right">
            <h4 class='text-center' style='color:#0080BB;direction:ltr;font-weight:bold'>
            :
            الرقم الدولي للحساب البنكي
       |
       International Bank Account Number <br>
       <span style='font-size:25px;'><?php echo  $retriveDataAR[6];?></span>
    <br>
    <span style='font-size:25px;'><?php echo  $retriveDataEN[6];?></span>

            </h4>
            <hr>
        </div>
    </div><br>
    <!-- End row -->


        </div>
        <!-- End container -->
    </div>
    <!-- End content-body -->

    <?php include 'jsFile.php'; ?>
    <script>
    <?php
if(!isset($_SESSION))
  session_start();
if(isset($_SESSION["updatesuccessmanager"]) && $_SESSION["updatesuccessmanager"] == 1)
{ 
?>
Swal.fire(
  'تم التعديل بنجاح',
  '',
  'success'
)
<?php
$_SESSION["updatesuccessmanager"] = 0;
}
?>

  </script>
</body>
</html>