<input type="hidden" id="baseurl" value="<?php echo base_url(); ?>" >
<!----Banner Start---->
	<div class="fd_bread_wrapper">
		<div class="container">
			<div class="row">
				<div class="col-lg-12">
					<div class="fd_bread">
						<h1 class="fd_page_title"><span>about us</span></h1>
						<nav aria-label="breadcrumb">
						  <ol class="breadcrumb">
							<li class="breadcrumb-item"><a href="<?php echo base_url(); ?>">Home</a></li>
							<li class="breadcrumb-item active" aria-current="page">about us</li>
						  </ol>
						</nav>
					</div>
				</div>
			</div>
		</div>
	</div>
	<!----About Section Start---->
	<?php if($this->hs->getwebsettings('aboutpage_section') == 1){  ?>
	<?php if(!empty($all_pages)){ ?>
	<div class="fd_about_wrapper fd_about_page">
		<div class="container">
			<div class="row">
				<div class="col-lg-6 col-md-4">
					<div class="fd_about_img">
						<img src="<?php echo base_url().$all_pages[0]->page_image;  ?>" alt="" class="img-fluid"/>
					</div>
				</div>
				<div class="col-lg-6 col-md-8">
					<div class="fd_about_data">
						<div class="fd_heading">
							<h2><?php echo $all_pages[0]->page_heading; ?><span class="dot_border"></span></h2>
							<h1><?php echo $all_pages[0]->page_title; ?></h1>
						</div>
						<p><?php echo $all_pages[0]->page_shortcontent; ?></p>
					</div>
				</div>
			</div>
			<div class="row">
				<div class="col-lg-6 col-md-8 top_padder35">
					<div class="fd_about_data">
					     <?php echo $all_pages[0]->page_massage; ?> 
					</div>
				</div>
				<?php if(!empty($all_category)){ ?>
				<div class="col-lg-6 col-md-6  top_padder110">
					<div class="fd_skill_wrapper">
						<h1>statistic</h1>
						<?php 
						 $total_prod =$this->hs->count_table_column('prod_id','hs_products',array('prod_status' =>1));
						 $progress_count = 0;
						 foreach($all_category as $cate_count)
						 { 
								$chek_prod = $this->Data_access_model->select_data('*','hs_products',array('prod_cateid' =>$cate_count->category_id,));
								if($chek_prod->num_rows() > 0){ 	
									$progress_count++;
									$cate_prod_count =$this->hs->count_table_column('prod_id','hs_products',array('prod_cateid' =>$cate_count->category_id,'prod_status' =>1));
									$percentage = round(($cate_prod_count/$total_prod)*100);
						?>	
							<div class="candidatos">
								<div class="parcial">
									<div class="info">
										<div class="percentagem-num"><?php echo $percentage; ?>%</div>
									</div>
									<div class="progressBar">
										<div class="percentagem" style="width: <?php echo $percentage; ?>%;"></div>
									</div>
									<div class="partidas"><?php echo $cate_count->category_name; ?></div>
								</div>
							</div>
						<?php 
								}
								if($progress_count ==5){
									break;
								} 
						}
						?>
					</div>
				</div>
				<?php } ?>
			</div>
		</div>
	</div>	
	<?php 
	   }
	}	   
	?>
	<!----Service Section Start---->
	<?php if($this->hs->getwebsettings('category_section') == 1){  ?>
	<?php if(!empty($all_category)){ ?>
	<div class="fd_service_wrapper fd_service_inner">
		<div class="container">
			<div class="row">
			<?php
             $cate=0;			
			  foreach($all_category as $categories){  
			    if($categories->category_featured == 1){
				    ++$cate;  
			?>
				<div class="col-lg-4 col-md-6">
					<div class="fd_service_box">
						<div class="fd_ser_img">
							<div class="fd_ser_img_inner">
								<img src="<?php echo base_url().$categories->category_image; ?>" alt=""/>
							</div>
						</div>
						<div class="fd_ser_data">
							<h1><?php  echo $categories->category_name; ?></h1>
							<p><?php echo $categories->category_description; ?></p>
							<a href="<?= base_url('menus'); ?>" class="view_link">view menu <i class="fa fa-long-arrow-right" aria-hidden="true"></i></a>
						</div>
					</div>
				</div>
		    <?php  
		        if($cate == 3){
					break;
				}
              }   
			}
			?>
				 
			</div>
		</div>
		<div class="fd_overlay"></div>
	</div>
	<?php } 
      } 
    ?>
<!----Booking Section Start---->
<?php if($this->hs->getwebsettings('booking_section') == 1){  ?> 
	<div class="fd_booking_wrapper">
		<div class="container">
			<div class="row">
				<div class="col-lg-12">
					<div class="fd_heading text-center btm_marger50">
						<?php if($this->hs->getwebsettings('bookingheading_show') == 1){  ?>
						<h2><?php echo $this->hs->getwebsettings('bookingheading_text'); ?></h2>
					  <?php } ?>
						  <?php if($this->hs->getwebsettings('bookingtitle_show') == 1){  ?>
						<h1><?php echo $this->hs->getwebsettings('bookingtitle_text'); ?></h1>
						<?php } ?>
					</div>
				</div>
				<div class="col-lg-8">
					<div class="fd_booking_form">
					 <?php if($this->hs->getwebsettings('bookingformheading_show') == 1){  ?>
			 			<h3><?php echo $this->hs->getwebsettings('bookingformheading_text'); ?> </h3>
					 <?php } ?>
						<div class="row">
							<div class="col-lg-4">
							<input type="hidden" name="btable_id" id="btable_id" value="0">
								<div class="fd_input_group">
									<label>date</label>
									<div class="input-group">
									  <input class="form-control datepicker" placeholder="Date" id="b_date" name="b_date"/><span class="input-group-icon"><img src="<?php echo base_url(); ?>themeassets/images/svg/calendr.svg" alt="" ></span>
									</div>
								</div>
								<div class="fd_input_group">
									<label>Occasion (Optional)</label>
									<select class="cusom_select" id="b_occasion" name="b_occasion">
									 <option value="">Occasion</option>
									 <?php if(!empty($all_occasion)){ 
									      foreach($all_occasion as $occasion_list){
									  ?>
									 
									  <option value="<?php echo $occasion_list->occasion_id; ?>"><?php echo $occasion_list->occasion_name; ?></option>
									 <?php } } ?>
									  <option value="0">Other</option>
									</select>
								</div>
								<div class="fd_input_group">
									<label>name</label>
									<div class="input-group">
									  <input type="text" class="form-control" placeholder="Name" id="b_name" name="b_name" value="<?php if(isset($_SESSION['userid'])){ echo $this->hs->get_userdetails('user_name',$_SESSION['userid']); } ?>" <?php if(isset($_SESSION['userid'])){ echo "disabled"; } ?>/>
									</div>
								</div>
							</div>
							<div class="col-lg-4">
								<div class="fd_input_group">
									<label>time</label>
									<div class="input-group">
									  <input class="form-control timepicker" placeholder="Time" id="b_time" name="b_time"><span class="input-group-icon"><img src="<?php echo base_url(); ?>themeassets/images/svg/time.svg" alt="" ></span>
									</div>
								</div>
								<div class="fd_input_group">
									<label>Preferred Food (Optional)</label>
									<select class=" cusom_select" id="b_preferredfood" name="b_preferredfood[]">
									  <option value="0" selected>Select Food</option>
									  <?php if(!empty($all_products)){ 
									      foreach($all_products as $food_list){
									  ?>
									  <option value="<?php echo $food_list->prod_id; ?>"><?php echo $food_list->prod_name; ?></option>
									  <?php } } ?>
									</select>
								</div>
								<div class="fd_input_group">
									<label>Email</label>
									<div class="input-group">
									  <input class="form-control" placeholder="Email" type="text" name="b_email" id="b_email" value="<?php if(isset($_SESSION['userid'])){ echo $this->hs->get_userdetails('user_email',$_SESSION['userid']); } ?>" <?php if(isset($_SESSION['userid'])){ echo "disabled"; } ?>/>
									</div>
								</div>
							</div>
							<div class="col-lg-4">
								<div class="fd_input_group">
									<label>people</label>
									<div class="input-group">
									 <select class=" cusom_select" id="no_of_people" name="no_of_people">
									  <option value="0">Select No of People</option>
									  <?php $i =1; 
									     for($i =1;$i<=100;$i++){ ?>
									  <option value="<?php echo $i; ?>"><?php echo $i; ?>  People</option>
									<?php } ?>
									</select>
									</div>
								</div>
								<div class="fd_input_group">
									<label>Message (Optional)</label>
									<textarea class="form-control" placeholder="Message" id="b_msg" name="b_msg"></textarea>
								</div>
							</div>
							<div class="col-lg-8">
								<div class="book_form_note">Please Submit your reservation details and we will contact you to confirm your booking</div>
							</div>
							<div class="col-lg-4">
								<div class="fd_btn_wrapper">
								<?php if($this->hs->getwebsettings('bookingbutton_show') == 1){  ?>
									<a onclick="table_booking()" class="fd_btn"><?php echo $this->hs->getwebsettings('bookingbutton_text'); ?></a>
								<?php } ?>
								</div>
							</div>
						</div>		
					</div>
				</div>
				<div class="col-lg-4">
					<div class="fd_book_img">
							<?php  $booksec_img = $this->hs->getwebsettings('bookingsection_img');
							if(!empty($booksec_img)){ ?>
							<img src="<?php echo base_url().$booksec_img; ?>" alt="" class="img-fluid"/>
							<?php }else{  ?>
							<img src="<?php echo base_url(); ?>themeassets/images/book_img.jpg" alt="" class="img-fluid"/>
							<?php } ?>
					</div>
				</div>
			</div>
		</div>
	</div>
	<?php
	  } 
	?>
	<!----Team Section Start---->
	<?php if($this->hs->getwebsettings('chefmemberteam_section') == 1){  ?> 
	<?php if(!empty($all_chefteam)){ ?>
	<div class="fd_team_wrapper">
		<div class="container">
			<div class="row">
				<div class="col-lg-12">
					<div class="fd_heading text-center btm_marger50">
					<?php if($this->hs->getwebsettings('teamsectionheading_show') == 1){  ?>
						<h2><?php echo $this->hs->getwebsettings('teamsectionheading_text'); ?></h2>
					<?php } ?>
						<?php if($this->hs->getwebsettings('teamsectiontitle_show') == 1){  ?>
						<h1><?php echo $this->hs->getwebsettings('teamsectiontitle_text'); ?></h1>
						<?php } ?>
					</div>
				</div>
			</div>
			<div class="row">
				<div class="col-lg-12">
					<div class="fd_team_slider">
						<div class="swiper-container">
							<div class="swiper-wrapper">
							<?php foreach($all_chefteam as $chefteam){ ?>
								<div class="swiper-slide">
									<div class="fd_team_box">
										<div class="fd_team_img">
											<img src="<?php echo base_url().$chefteam->chef_image;?>" alt="">
										</div>
										<div class="fd_team_name">
											<h3><a href="javascript:;"><?php echo $chefteam->chef_name; ?></a></h3>
											<p><?php echo $chefteam->chef_desig; ?></p>
											<span class="food_name_arrow"><img src="<?php echo base_url(); ?>themeassets/images/svg/up_arrow.svg" alt=""></span>
										</div>
										<div class="fd_team_detail">
											<h3><a href="javascript:;"><?php echo $chefteam->chef_name; ?></a></h3>
											<p><?php echo $chefteam->chef_desig; ?></p>
											<ul>
											<?php if($chefteam->chef_facebook !== '' ){  ?>
												<li><a href="<?php echo $chefteam->chef_facebook; ?>"><i class="fa fa-facebook" aria-hidden="true"></i></a></li>
											<?php } ?>
											<?php if($chefteam->chef_youtube !== '' ){  ?>
												<li><a href="<?php echo $chefteam->chef_youtube; ?>"><i class="fa fa-youtube-play" aria-hidden="true"></i></a></li>
											<?php } ?>	
											<?php if($chefteam->chef_twitter !== '' ){  ?>
												<li><a href="<?php echo $chefteam->chef_twitter; ?>"><i class="fa fa-twitter" aria-hidden="true"></i></a></li>
											<?php } ?>	
											<?php if($chefteam->chef_linkedin !== '' ){  ?>
												<li><a href="<?php echo $chefteam->chef_linkedin; ?>"><i class="fa fa-linkedin" aria-hidden="true"></i></a></li>
											<?php } ?>	
											</ul>
										</div>
										<div class="fd_food_overlay"></div>
									</div>
								</div>
							<?php } ?>
								 
							</div>
						</div>
						<!-- Add Pagination -->
						<div class="swiper-button-next5 slider_nav_next"><span class="slider_icon_next"></span></div>
						<div class="swiper-button-prev5 slider_nav_prev"><span class="slider_icon_prev"></span></div>						
					</div>
				</div>
			</div>
		</div>
		<div class="fd_overlay"></div>
	</div>
	<?php } 
	   } 
    ?>
    <!----Testimonial Start---->
	<?php if($this->hs->getwebsettings('testimonial_section') == 1){  ?> 
	<?php if(!empty($all_testimonial)){  ?>
	<div class="fd_test_wrapper">
		<div class="container">
			<div class="row">
				<div class="col-lg-12">
					<div class="fd_heading text-center btm_marger50">
					<?php if($this->hs->getwebsettings('testimonialheading_show') == 1){  ?>
						<h2><?php echo $this->hs->getwebsettings('testimonialheading_text'); ?></h2>
					<?php } ?>
						<?php if($this->hs->getwebsettings('testimonialtitle_show') == 1){  ?>
						<h1><?php echo $this->hs->getwebsettings('testimonialtitle_text'); ?></h1>
					<?php } ?>
					</div>
				</div>
				<div class="col-lg-12">
					<div class="fd_test_slider">
						<div class="swiper-container">
							<div class="swiper-wrapper">
							<?php 
							foreach($all_testimonial as $testimonial){ 
							?> 
								<div class="swiper-slide">
									<div class="fd_test_box">
										<div class="fd_test_img">
											<img src="<?php echo base_url().$testimonial->testi_image; ?>" alt="">
										</div>
										<div class="fd_test_data">
											<p><?php echo $testimonial->testi_msg; ?></p>
											<div class="fd_test_footer">
												<h3><?php echo $testimonial->testi_name; ?></h3>
												<span> - <?php echo $testimonial->testi_desig; ?></span>
													<ul class="fd_test_icons">
											 <?php if($testimonial->testi_facebook_link !== ''){ ?>
													<li><a href="<?php echo $testimonial->testi_facebook_link; ?>"><i class="fa fa-facebook" aria-hidden="true"></i></a></li>
											 <?php } ?>	
											<?php if($testimonial->testi_youtube_link !== ''){ ?>		<li><a href="<?php echo $testimonial->testi_youtube_link; ?>"><i class="fa fa-youtube-play" aria-hidden="true"></i></a></li>
											<?php } ?>	
											<?php if($testimonial->testi_twitter_link !== ''){ ?>
													<li><a href="<?php echo $testimonial->testi_twitter_link; ?>"><i class="fa fa-twitter" aria-hidden="true"></i></a></li>
											<?php } ?>	
											<?php if($testimonial->testi_linkedin_link !== ''){ ?>
													<li><a href="<?php echo $testimonial->testi_linkedin_link; ?>"><i class="fa fa-linkedin" aria-hidden="true"></i></a></li>
											<?php } ?>	
												</ul>
											</div>
										</div>
									</div>
								</div>
								
							<?php } ?>
								 
							</div>
						</div>
						<!-- Add Pagination -->
						<div class="swiper-button-next slider_nav_next"><span class="slider_icon_next"></span></div>
						<div class="swiper-button-prev slider_nav_prev"><span class="slider_icon_prev"></span></div>
					</div>
				</div>
			</div>
		</div>
	</div>
	<?php }
	   } 
	?>
	<!----App Wrapper Section Start---->
<?php if($this->hs->getwebsettings('mobileapp_section') == 1){  ?> 
	<div class="fd_app_wrapper">
		<div class="container">
			<div class="row">
				<div class="col-lg-6">
					<div class="fd_app_img">
						<?php $mobileapp_img = $this->hs->getwebsettings('mobileapp_img');
							if(!empty($mobileapp_img)){
						?>
							<img src="<?php echo base_url().$mobileapp_img; ?>" alt="" class="img-fluid">
						<?php }else{ ?>
							<img src="<?php echo base_url()?>themeassets/images/app.png" alt="" class="img-fluid">
						<?php } ?>
					</div>
				</div>
				<div class="col-lg-6">
					<div class="fd_app_data">
						<div class="fd_heading">
						<?php if($this->hs->getwebsettings('mobileappheading_show') == 1){  ?>
						    <h2><?php echo $this->hs->getwebsettings('mobileappheading_text'); ?></h2>
						<?php } ?>
							<?php if($this->hs->getwebsettings('mobileapptitle_show') == 1){  ?>
							<h1><?php echo $this->hs->getwebsettings('mobileapptitle_text'); ?></h1>
							<?php } ?>
						</div>
						<?php if($this->hs->getwebsettings('mobileappdescr_show') == 1){  ?>
						<p><?php echo $this->hs->getwebsettings('mobileappdescr_text'); ?></p>
						<?php } ?>
						<?php if($this->hs->getwebsettings('mobileappdownload_show') == 1){  ?>
						<h3><?php echo $this->hs->getwebsettings('mobileappdownload_text'); ?></h3>
						<?php } ?>
						<div class="fd_app_btn">
							<a <?php if($this->hs->getwebsettings('googleplayurl_show') == 1){ ?>href="<?php echo $this->hs->getwebsettings('googleplayurl_text'); } ?>">
							<?php  $google_store_img = $this->hs->getwebsettings('googlestore_img');
							if(!empty($google_store_img)){
							?>
							<img src="<?php echo base_url().$google_store_img; ?>" alt="" class="img-fluid">
							<?php }else{   ?>
								<img src="<?php echo base_url(); ?>themeassets/images/google_play.png" alt="" class="img-fluid">
							<?php } ?></a>
							<a <?php if($this->hs->getwebsettings('iosstoreurl_show') == 1){ ?> href="<?php echo $this->hs->getwebsettings(
							'iosstoreurl_text'); } ?>">
							<?php  $iosmob_img = $this->hs->getwebsettings('iosstore_img');
							if(!empty($iosmob_img)){
							?>
							<img src="<?php echo base_url().$iosmob_img; ?>" alt="" class="img-fluid">
							<?php }else{  ?>
							<img src="<?php echo base_url(); ?>themeassets/images/app_store.png" alt="" class="img-fluid">
							<?php } ?>
							</a>
						</div>
					</div>
				</div>
			</div>
		</div>
		<div class="fd_overlay"></div>
	</div>	
	<?php } ?>
	
	 