<?php
include 'cp_header.php';
/****************************************** صفحة فروع الجمعية ***************************************/ 
?>
	
	<!-- هيدر الصفحات  الداخلية-->
	<?php include('inside_header.php'); ?>
    <!-- هيدر الصفحات  الداخلية-->
	
  <!-- ================ بداية السيكشن ================= -->
  <section class="contact-section" style='padding-bottom:0px;background:var(--white_bg);padding-bottom:100px;overflow:hidden;'>
	<div class="container-fluid p-0"  >


      <div class="row " style='padding-bottom:0px;' >
	 
	<!-- ================ صورة خلفية مع اسم الصفحة ================= --> 
	<div class="col-lg-12 backcolor_3 page_head page_title_background" >
			<span class='page_title  text-center' style='margin:80px 0px 0px 0px !important;' >
			
	
				<h1 >
					فروع الجمعية
					<span class='title_span'><a href="<?php echo $website_url ;?>/" >الرئيسية </a> /فروع الجمعية</span>

				</h1>
			
			
			</span>
	</div>
    



		
		</div>
		
		<div class="col-lg-12 contact_padding" style='background:var(--white_bg);margin-bottom:0px' >
			
		<div class='container'>
		
		<div class="row">
		
		
		<div class='col-md-12'>
			
			<!-- ================ عنوان الصقحة ================= --> 
			<div class="page_title_right_white"> فروع الجمعية فى المملكة</div>
			<div class="right_lines"></div>
			<div class="right_lines l2"></div>
		
		</div>		
		
		
		
		<?php  
			$branches_contact_query="select `name`,`manager`,`time_from`,`time_to`,`address`,`tel1`,`tel2`,`mobile1`,`mobile2`,`email1`,`email2`,`fax` from branches ";

			$branches_contact_result=mysqli_query($conn,$branches_contact_query);	

			
   /*بداية التكرار */  
	while($branches_contact_fetch = mysqli_fetch_array($branches_contact_result)) {
   		 $branches_contact_fetch = clean_array($branches_contact_fetch);
  
		?>
		<div class="col-lg-6 col-md-12 " >
		<div class='branch_div'> 
			<h2 class="contact-title"  style='color:var(--dark2) !important'><?php echo $branches_contact_fetch['name']; ?></h2>


		<?php if($branches_contact_fetch['address']!=''){ ?>
	
			<div class="media contact-info" >

				<div class="media-body">
	
					<span class="contact-info__icon"  ><i class="las la-map-marker"></i></span>
					 <div class="media-body">
						<p>العنوان</p>
						<h3><?php echo $branches_contact_fetch['address']?></h3>
					</div>	
					
					
				</div>
			</div>
		
		<?php }?>
		
		
		<?php if($branches_contact_fetch['mobile1']!='' and  $branches_contact_fetch['mobile2'] !=''){ ?>
          
		  <div class="media contact-info">
            
            <div class="media-body">
			<span class="contact-info__icon"  ><i class="lar la-clock"></i></span>
			 <p>مواعيد العمل</p>
              
			  <?php if($branches_contact_fetch['time_from']!='' ){ ?>
				<h3 style='height:25px;'><span>من : <?php echo $branches_contact_fetch['time_from']?></span></h3>
				<h3 style='height:25px;'><span>الى : <?php echo $branches_contact_fetch['time_to']?></span></h3>
			

			  <?php } ?>
			  
			
			  
			   
            </div>
          </div>
		  
		<?php } ?>
		
		
	
		
		  
		<?php if($branches_contact_fetch['mobile1']!='' || $branches_contact_fetch['mobile2'] !=''){ ?>
          
		  <div class="media contact-info">
            
            <div class="media-body">
			<span class="contact-info__icon"  ><i class="las la-mobile-alt"></i></span>
			 <p>الجوال</p>
              
			  <?php if($branches_contact_fetch['mobile1']!='' ){ ?>
				<h3><a  rel='nofollow'  class='inactive a_background' href='tel:<?php echo $branches_contact_fetch['mobile1']?>'><?php echo $branches_contact_fetch['mobile1']?></a></h3>
			

			  <?php } ?>
			  
			  <?php if($branches_contact_fetch['mobile2']!='' ){ ?>
				<h3><a  rel='nofollow'  class='inactive a_background' href='tel:<?php echo $branches_contact_fetch['mobile2']?>'><?php echo $branches_contact_fetch['mobile2']?></a></h3>
              <?php } ?>
			  
			   
            </div>
          </div>
		  
		<?php } ?>
		
		
		
		  
		  <?php if($branches_contact_fetch['email1']!='' || $branches_contact_fetch['email2']!=''){ ?>
		  
		  
			  <div class="media contact-info">
				
					<div class="media-body">
					   <span class="contact-info__icon" style='margin-bottom: 140px;'><i class="las la-envelope"></i></span>
					   <?php if($branches_contact_fetch['email1']!='' ){ ?>
						    <p>المبيعات</p>
						    <h3> <a  rel='nofollow'  class="footer_link_none inactive a_background" href="mailto:<?php echo $branches_contact_fetch['email1']?>"><?php echo $branches_contact_fetch['email1']?></a></h3>
							
					   <?php }?>
					  
					  <?php if($branches_contact_fetch['email1']!='' ){ ?>
						    <p>الدعم الفنى</p>
						    <h3> <a  rel='nofollow'  class="footer_link_none inactive a_background"  href="mailto:<?php echo $branches_contact_fetch['email2']?>"><?php echo $branches_contact_fetch['email2']?></a></h3>
					  <?php }?>
					</div>
			  </div>

		  <?php }?>
		  </div>
		  </div>
		  <?php }?>
		  
		  
	
			</div>
		  </div>
        </div>

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

 

	
	

  
 
<!-- ================ صفحة الفوتر ================= --> 
 <?php include'cp_footer.php'; ?>