<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>our menus</span></h1>
						<nav aria-label="breadcrumb">
						  <ol class="breadcrumb">
							<li class="breadcrumb-item"><a href="<?php echo base_url().'menus'; ?>">Menus</a></li>
							 
						  </ol>
						</nav>
					</div>
				</div>
			</div>
		</div>
	</div>
	<!----Special Menu Section Start---->
	<?php if($this->hs->getwebsettings('specialmenu_section') == 1){  ?>
	 <?php if(!empty($all_products)){ ?>
	<div class="fd_spcl_menu">
		<div class="container">
			<div class="row">
				<div class="col-lg-12">
					<div class="fd_heading text-center btm_marger20">
					 <?php if($this->hs->getwebsettings('specialmenuheading_show') == 1){  ?>
						<h2><?php echo $this->hs->getwebsettings('specialmenuheading_text'); ?></h2>
					 <?php } ?>
					 <?php if($this->hs->getwebsettings('specialmenutitle_show') == 1){  ?>
						<h1><?php echo $this->hs->getwebsettings('specialmenutitle_text'); ?></h1>
					 <?php } ?>
					</div>
				</div>
				<div class="col-lg-6">
				 <?php 
				      $i=0;
				      foreach($all_products as $random_products){ 
					  if($random_products->prod_featured == 1){
				   ?>
					<div class="fd_menu_box">
						<div class="fd_menu_img">
						<img src="<?php echo base_url().$random_products->prod_specialmenu_img; ?> " alt="">
						</div>
						<div class="fd_menu_text">
							<h3><a href="<?php echo base_url().'product/'.$random_products->prod_slug.'/'.$random_products->prod_code; ?>"><?php echo $random_products->prod_name; ?></a></h3>
							<p><?php echo $random_products->prod_description; ?></p>
						</div>
						<span class="menu_price"><?php echo $this->hs->getwebsettings('currency_symbol'); ?><?php echo $random_products->prod_price; ?></span>
						<span class="menu_bucket"><a href="javascript:;" onclick="add_to_cart(<?php echo $random_products->prod_id; ?>,1)" ><img src="<?php echo base_url(); ?>themeassets/images/svg/cart.svg" title="Add To Cart"></a></span>
					</div>
					<div class="fd_border"></div>
					 
					<?php 
						$i++;
                        if($i == 4){ echo '</div><div class="col-lg-6"> '; }
						if($i == 8){ break;}   
						}
					  }
					?>
					 
				</div>
	        </div>
		</div>
	</div></div>
	 <?php }
	   }
	?>
<!----Complete Solution Wrapper Start---->
<?php if($this->hs->getwebsettings('alldayfood_section') == 1){  ?>
<?php if(!empty($all_products)){ 
 
						 if(!empty($all_category)){  
						    $cate_count=0;
							$overlay_count = 0;
							$heading_count=1;
                            $page=2; 							
						    foreach($all_category as $category){
							
							$chek_prod = $this->Data_access_model->select_data('*','hs_products',array('prod_cateid' =>$category->category_id,));
		                    if($chek_prod->num_rows() > 0){
							    if($cate_count == 0){  ?>													
                            <div class="fd_sol_wrapper fd_inner_sol_wrapper">
  
                          <?php $cate_count=1; }else if($cate_count == 1){ ?>

                             <div class="fd_lunch_wrapper fd_inner_sol_wrapper">
                          <?php  $cate_count=0; } ?> 
 					  
	    <div class="container">
			<div class="row">
		        <div class="col-lg-12">
					<?php if($heading_count == 1){ ?>
						<div class="fd_heading text-center btm_marger50">
						<?php if($this->hs->getwebsettings('foodsectionheading_show') == 1){  ?>
							<h2><?php echo $this->hs->getwebsettings('foodsectionheading_text'); ?></h2>
						<?php } ?>
							<?php if($this->hs->getwebsettings('foodsectiontitle_show') == 1){  ?>
							<h1><?php echo $this->hs->getwebsettings('foodsectiontitle_text'); ?></h1>
							<?php } ?>
						</div>
					<?php $heading_count=0; } ?>
						<div class="fd_sub_heading">
							<h2><span class="dot_border dot_border1"></span><?php echo $category->category_name; ?><span class="dot_border"></span></h2>
						</div>
				</div>
				<div class="col-lg-12">
					<div class="custom">
                        <div class="row">
						<?php
							$count_prod=0;
							foreach($all_products as $menu_prod){ 
						        if($menu_prod->prod_cateid == $category->category_id ){ 
								$count_prod++;
								?>
                            <div class="col-md-3">
								<div class="fd_food_box">
									<div class="fd_food_img">
										<img src="<?php echo  base_url().$menu_prod->prod_image; ?>" alt="">
									</div>
									<div class="fd_food_name">
										<h3><a href="<?php echo base_url().'product/'.$menu_prod->prod_slug.'/'.$menu_prod->prod_code; ?>"><?php echo  $menu_prod->prod_name; ?></a></h3>
										<span class="food_price"><?php echo $this->hs->getwebsettings('currency_symbol'); ?><?php echo  $menu_prod->prod_price; ?></span>
										<span class="food_name_arrow"><img src="<?php echo base_url(); ?>themeassets/images/svg/up_arrow.svg" alt=""></span>
									</div>
									<div class="fd_food_detail">
										<h3><a href="<?php echo base_url().'product/'.$menu_prod->prod_slug.'/'.$menu_prod->prod_code; ?>"><?php echo  $menu_prod->prod_name; ?></a></h3>
										<span class="food_price"><?php echo $this->hs->getwebsettings('currency_symbol'); ?><?php echo  $menu_prod->prod_price; ?></span>
										<div class="add_to_cart"><a href="javascript:;" onclick="add_to_cart(<?php echo $menu_prod->prod_id; ?>,1)">add to cart <i class="fa fa-shopping-basket" aria-hidden="true"></i></a></div>
									</div>
									<div class="fd_food_overlay"></div>
								</div>
                            </div>
						<?php } 
						if($count_prod == 8){ break; }
							} 
						?>
                          
                        </div>
					</div>
				</div>
			</div>
		</div>
		<?php 
		if($overlay_count == 0){ ?>
			<div class="fd_overlay"></div>
		<?php $overlay_count = 1; }else if($overlay_count == 1){
				$overlay_count = 0;
			} ?>	
			<div class="custom_button">
				<div class="fd_btn_wrapper">
					<a href="<?php echo base_url().'menus/category/'.$category->category_slug; ?>" class="fd_btn">view more</a>
				</div>
			</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
	  } 
	 ?>

<!----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 } ?>
	 