<?php 
$team_enable = get_theme_mod( 'advance_education_pro_radio_search_enable' );
if ( 'Disable' == $team_enable ) {
  return;
}
/*team*/
if( get_theme_mod('advance_education_pro_search_bgcolor') ) { 
  $search_backg = 'background-color:'.esc_attr(get_theme_mod('advance_education_pro_search_bgcolor')).';';
}elseif( get_theme_mod('advance_education_pro_search_bgimage') ){
  $search_backg = 'background-image:url(\''.esc_url(get_theme_mod('advance_education_pro_search_bgimage')).'\')';
}else{
  $search_backg = '';   
}
  $att_style="";
  $image_att = get_theme_mod( 'advance_education_pro_search_bgimage_attachment',true );
  if ( 'Scroll' == $image_att ) {
    $att_style="section_bg_scroll";
  }else{
    $att_style="section_bg_fixed";
  } 
?>
<section id="search" style="<?php echo esc_attr($search_backg); ?>" class="<?php echo esc_attr($att_style); ?>">
  <div class="container">
    <div class="container">
      <div class="section-heading">
		<?php if(get_theme_mod('advance_education_pro_title_icon')){?> 
		  <i class="<?php echo esc_html(get_theme_mod('advance_education_pro_title_icon')) ?>"></i>
		<?php } ?>
        <?php if(get_theme_mod('advance_education_pro_search_title') != ''){?>
          <h6><?php echo esc_html(get_theme_mod('advance_education_pro_search_title'))?></h6>
        <?php } ?>
      </div>
      <form action="<?php if(get_theme_mod('advance_education_pro_search_page_settings',true) != ''){
        echo esc_url(get_permalink(get_theme_mod('advance_education_pro_search_page_settings')));
      }?>" method="POST" class="search_tour">
        <div class="container">
          <div class="row">
            <div class="col-lg-3 col-md-3 col-sm-12 col-12 p-2">
              <select id="course_categories" name="course_categories">
                <option value=""><?php echo esc_html(get_theme_mod('advance_education_pro_default_dropdown_title')); ?></option>
                <?php $taxonomies = get_terms('createcategory');
                      if ($taxonomies) {
                           foreach ($taxonomies as $taxonomy ) { ?>
                             <option value="<?php echo esc_attr($taxonomy->name); ?>"><?php echo esc_html($taxonomy->name); ?></option> <?php
                           }
                       }
                      ?>
              </select>        
            </div>
            <div class="col-lg-2 col-md-2 col-sm-12 col-12 p-2">
               <input type="number" id="course_price" placeholder="<?php echo esc_html(get_theme_mod('advance_education_pro_search_price'))?>" name="course_price">
            </div>
            <div class="col-lg-4 col-md-4 col-sm-12 col-12 p-2">
              <input type="text" id="course_keyword" placeholder="<?php echo esc_html(get_theme_mod('advance_education_pro_search_course_keyword'))?>" name="course_keyword">
            </div>
            <div class="search-submit col-lg-3 col-md-3 col-sm-12 col-12 p-2">
              <input type="submit" value="<?php echo esc_html(get_theme_mod('advance_education_pro_search_courses_label'));?>">
            </div>
          </div>
      </div>
    </form>
  </div>
</div>
</section>