{% if user['auth'] %}
{% include 'header.twig' %}




        <!-- Main variables *content* -->
        <style>
@media only screen and (min-width: 992px) {
    .services-wrapper .s-col:last-child {
      display: none
    }
}
</style>
    <main>
                 <div class="container-fluid mt-3">
                 <div class="row">
        <div class="col-lg-12 col-md-12 col-12">
            <div class="card card_type_3 service__card__wrap">
                <div class="card-header">
                    <div class="update__nav">
                        <form action="/services" method="get" id="history-search">
                            <div class="input-group">
                                <input type="text" class="form-control"
                                    placeholder="Search"
                                    data-search-service="#service-table">
                                <span class="input-group-btn">
                                    <button type="submit" class="btn btn-default"><i class="fa fa-search"
                                            aria-hidden="true"></i></button>
                                </span>
                            </div>
                        </form>
                        <div class="dropdown update_dropDwon service_filters">
                            <button class="btn btn-secondary dropdown-toggle" type="button" data-bs-toggle="dropdown"
                                aria-expanded="false">
                                <span class="fal fa-filter"></span>
                                <span data-filter-active-category="true" class="text-service-filters">Service
                                    Filter</span>
                                <span class="caret"></span>
                            </button>
                            <ul class="dropdown-menu service_filter-drop">
                                                                <li>
                                            <a class="dropdown-item" href="#" data-filter-category-id="All">All</a>{% for category in serviceCategory %}
                                                                                                                                                                                                <a class="dropdown-item" href="services#" data-filter-category-id="{{ category["category_id"] }}" data-filter-category-name="{{ category["category_name"] }}">{{ category["category_name"] }}</a>{% endfor %}
                                                                                                                                   
                                                                                                                                   </li>
                                                                                                                                   </ul>                                                             
                                                                                                                                          
                                        </div>
                                    </div>
                                </div>
                               

</ul>
                        </div>
                    </div>
                </div>
            
            
            <div class="row">
               <div class="col-lg-12">
                  <div class="page overflow-hidden">
                     <div class="page-body pb-4 pb-xl-6 mt-4">
                            <div class="services-head-row">
                              <div class="si-wrapper">
                                <div class="service-item mb-4">
                                  <div class="s-row s-title">
                                                                        <div class="s-col s-col-sm">
                                       Fav
                                    </div>
                                                                        <div class="s-col s-col-sm">
                                      ID
                                    </div>
                                    <div class="s-col s-title">
                                      Service
                                    </div>
                                    <div class="s-col s-col-md">
                                      Rate per 1000
                                    </div>
                                    <div class="s-col s-col-md">
                                      Min order
                                    </div>
                                    <div class="s-col s-col-md">
                                      Max order
                                    </div>
                                     <div class="s-col s-col-md">
                                                    <span>Average Time</span>
                                                    <span class="ml-1 mr-1 fa fa-exclamation-circle" data-toggle="tooltip" data-placement="top" title="The average time is based on 10 latest completed orders per 1000 quantity."></span>
                                                </div>
                                            
                                                                        <div class="s-col s-col-md">
                                      
                                    </div>
                                  </div>
                                </div>
                              </div>
                            </div>
                            
                            <div class="nothing-found" style="display: none;">
                              <div class="card card-bg">
                                <div class="card-body p-4 p-lg-5 text-center">
                                  <div style="font-size: 64px;">
                                    <i class="ri-search-eye-line w-color"></i>
                                  </div>
                                  <h3>There were no results!</h3>
                                  <p>We searched everywhere but found nothing. Try with different keywords.</p>
                                </div>
                              </div>
                            </div>
                            
                            
                            <!-- start -->
                        
                    {% for category in serviceCategory %}
                    
                  
                                                <div class="category-card" data-category="{{ category["category_id"] }}" >
                              <div class="si-header" data-filter-table-category-id="{{ category["category_id"] }}">
                                <h2 class="si-title">
                              {{ category["category_name"] }}  
                                </h2>
                              </div>
                              
                              <!-- end -->
                                            
                                            
                                             {% for service in category['services'] %}
                                            

                    <div class="">
                                                            <div class="services-wrapper">
                                 
                                  <div class="si-wrapper" data-filter-table-category-id="{{ category["category_id"] }}">
                                    <div class="service-item" data-service-id="{{ service["service_id"] }}" data-platform="Instagram">
                                      <div class="s-row">
                                                                                <div class="s-col s-col-sm s-col-fav">
<button data-service-id="{{ service["service_id"] }}" class="btn btn-dark btn-rounded btn-sm favorite d-flex align-items-center justify-content-center">
     <i class="ri-heart-line"></i>
</button>
                                        </div>
                                                                                <div class="s-col s-col-sm s-col-id">
                                          <span class="sp-serv-sm" data-filter-table-service-id="{{ category["category_id"] }}">{{ category["category_id"] }}</span>
                                        </div>
                                        <div class="s-col s-title">
                                          <span class="sp-serv-title" data-filter-table-service-name="true">{{ service["service_name"] }}
                                            <div class="align-items-center gap-1 mt-3 badgearea"></div></span>
                                        </div>
                                        <div class="s-col s-col-md s-col-c" data-title="Rate per 1000">
                                          <span class="sp-serv-sm">
                                                                                         {{ service["service_price"] }}   
                                                                                      </span>
                                        </div>
                                        <div class="s-col s-col-md s-col-c" data-title="Min order">
                                          <span class="orlc min text-success">{{ service["service_min"] }}</span>
                                        </div>
                                        <div class="s-col s-col-md s-col-c" data-title="Max order">
                                          <span class="orlc max text-danger">{{ service["service_max"] }}</span>
                                        </div>
                                        
                                        
                                                                            
                                                                <!-- start -->			
                                                                            
                                                                            
                                                                             <td class="service-description">
                     <!-- Modal -->
                        <div class="modal fade" id="servis{{ service["service_id"] }}" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
                          <div class="modal-dialog" role="document">
                                <div class="modal-box">
                                          <div class="m-header">
                              
                                <h5 class="m-title" id="exampleModalLabel">{{ service["service_id"] }}&nbsp;-&nbsp;{{ service["service_name"] }} </h5> 
                                <button type="button" class="m-close" data-dismiss="modal" aria-label="Close">
                                    
                                  <i class="ri-close-line"></i>
                                </button>
                              </div>
                              
                              
                              <div class="m-body">
                                <p class="detail-data details-split-959"> {{ service["service_description"] }}</p>
                              </div>
                             <!-- <div class="modal-footer">
                                <button type="button" class="btn-primary btn-actions" data-dismiss="modal">Close</button>
                              </div> -->
                            </div>
                          </div>
                          
                        </div><a href="javascript:void(0)"  class="btn btn-primary btn-rounded  btn-sm" data-toggle="modal" data-target="#servis{{ service["service_id"] }}">
                         Description
                      </a>
                  <a href="/?set_service_id={{ service["service_id"] }}"  class="btn btn-primary btn-rounded  btn-sm" data-toggle="modal" style="background-color:#8B04A9;">
                         Buy Now
                      </a>
                                                                               <td class="avarage_time_Services">{{ service["time"] }}</td>
                        </td>
                                                                              </div>
                                    </div>
                                  </div>
                                </div>
                                
                                
                                
                     
                      
                      <!-- end -->
                    
               
                  </tr>
                {% endfor %}
                  
                  
                  
                  
                   {% endfor %}
                   </tbody>
            </table>
          </div>
        </div>
      </div>
          </div>
  </div>
</div>


        </div>
      </div>
    </div> <!-- wrapper End -->
                  
    
                                        
                                                                                                            
{% include 'footer.twig' %}	
{% else %}
 {% include 'header1.twig' %}
<link rel="stylesheet" type="text/css" href="https://cdn.mypanel.link/a3vltc/7j4kauifzjbbi8l2.css">
                    <link rel="stylesheet" type="text/css" href="https://smm.smmpaw.com/231.css">
                    <link rel="stylesheet" type="text/css" href="https://cdn.mypanel.link/libs/bootstrap-datetimepicker/4.17.47/bootstrap-datetimepicker.min.css">
                    <link rel="stylesheet" type="text/css" href="https://cdn.mypanel.link/css/font-awesome/css/all.min.css">
                    <link rel="stylesheet" type="text/css" href="https://cdn.mypanel.link/global/cuw6iix855efzrw3.css">
                    <link rel="stylesheet" type="text/css" href="https://cdn.mypanel.link/global/ny6mhzbbh07u28pq.css">
                <script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
        <link href="https://cdn.jsdelivr.net/npm/remixicon@2.5.0/fonts/remixicon.css" rel="stylesheet">
  
<!-- Main variables *content* -->
        <style>
@media only screen and (min-width: 992px) {
    .services-wrapper .s-col:last-child {
      display: none
    }
}
</style>
    <main>
                 <div class="container-fluid mt-3">
                 <div class="row">
        <div class="col-lg-12 col-md-12 col-12">
            <div class="card card_type_3 service__card__wrap">
                <div class="card-header">
                    <div class="update__nav">
                        <form action="/services" method="get" id="history-search">
                            <div class="input-group">
                                <input type="text" class="form-control"
                                    placeholder="Search"
                                    data-search-service="#service-table">
                                <span class="input-group-btn">
                                    <button type="submit" class="btn btn-default"><i class="fa fa-search"
                                            aria-hidden="true"></i></button>
                                </span>
                            </div>
                        </form>
                        <div class="dropdown update_dropDwon service_filters">
                            <button class="btn btn-secondary dropdown-toggle" type="button" data-bs-toggle="dropdown"
                                aria-expanded="false">
                                <span class="fal fa-filter"></span>
                                <span data-filter-active-category="true" class="text-service-filters">Service
                                    Filter</span>
                                <span class="caret"></span>
                            </button>
                            <ul class="dropdown-menu service_filter-drop">
                                                                <li>
                                            <a class="dropdown-item" href="#" data-filter-category-id="All">All</a>{% for category in serviceCategory %}
                                                                                                                                                                                                <a class="dropdown-item" href="services#" data-filter-category-id="{{ category["category_id"] }}" data-filter-category-name="{{ category["category_name"] }}">{{ category["category_name"] }}</a>{% endfor %}
                                                                                                                                   
                                                                                                                                   </li>
                                                                                                                                   </ul>                                                             
                                                                                                                                          
                                        </div>
                                    </div>
                                </div>
                               

</ul>
                        </div>
                    </div>
                </div>
            
            
            <div class="row">
               <div class="col-lg-12">
                  <div class="page overflow-hidden">
                     <div class="page-body pb-4 pb-xl-6 mt-4">
                            <div class="services-head-row">
                              <div class="si-wrapper">
                                <div class="service-item mb-4">
                                  <div class="s-row s-title">
                                                                        <div class="s-col s-col-sm">
                                       Fav
                                    </div>
                                                                        <div class="s-col s-col-sm">
                                      ID
                                    </div>
                                    <div class="s-col s-title">
                                      Service
                                    </div>
                                    <div class="s-col s-col-md">
                                      Rate per 1000
                                    </div>
                                    <div class="s-col s-col-md">
                                      Min order
                                    </div>
                                    <div class="s-col s-col-md">
                                      Max order
                                    </div>
                                                                        <div class="s-col s-col-md">
                                      
                                    </div>
                                  </div>
                                </div>
                              </div>
                            </div>
                            
                            <div class="nothing-found" style="display: none;">
                              <div class="card card-bg">
                                <div class="card-body p-4 p-lg-5 text-center">
                                  <div style="font-size: 64px;">
                                    <i class="ri-search-eye-line w-color"></i>
                                  </div>
                                  <h3>There were no results!</h3>
                                  <p>We searched everywhere but found nothing. Try with different keywords.</p>
                                </div>
                              </div>
                            </div>
                            
                            
                            <!-- start -->
                        
                    {% for category in serviceCategory %}
                    
                  
                                                <div class="category-card" data-category="{{ category["category_id"] }}" >
                              <div class="si-header" data-filter-table-category-id="{{ category["category_id"] }}">
                                <h2 class="si-title">
                              {{ category["category_name"] }}  
                                </h2>
                              </div>
                              
                              <!-- end -->
                                            
                                            
                                             {% for service in category['services'] %}
                                            

                    <div class="">
                                                            <div class="services-wrapper">
                                 
                                  <div class="si-wrapper" data-filter-table-category-id="{{ category["category_id"] }}">
                                    <div class="service-item" data-service-id="{{ service["service_id"] }}" data-platform="Instagram">
                                      <div class="s-row">
                                                                                <div class="s-col s-col-sm s-col-fav">
<button data-service-id="{{ service["service_id"] }}" class="btn btn-dark btn-rounded btn-sm favorite d-flex align-items-center justify-content-center">
     <i class="ri-heart-line"></i>
</button>
                                        </div>
                                                                                <div class="s-col s-col-sm s-col-id">
                                          <span class="sp-serv-sm" data-filter-table-service-id="{{ category["category_id"] }}">{{ category["category_id"] }}</span>
                                        </div>
                                        <div class="s-col s-title">
                                          <span class="sp-serv-title" data-filter-table-service-name="true">{{ service["service_name"] }}
                                            <div class="align-items-center gap-1 mt-3 badgearea"></div></span>
                                        </div>
                                        <div class="s-col s-col-md s-col-c" data-title="Rate per 1000">
                                          <span class="sp-serv-sm">
                                                                                         {{ service["service_price"] }}   
                                                                                      </span>
                                        </div>
                                        <div class="s-col s-col-md s-col-c" data-title="Min order">
                                          <span class="orlc min text-success">{{ service["service_min"] }}</span>
                                        </div>
                                        <div class="s-col s-col-md s-col-c" data-title="Max order">
                                          <span class="orlc max text-danger">{{ service["service_max"] }}</span>
                                        </div>
                                        
                                        
                                                                            
                                                                <!-- start -->			
                                                                            
                                                                            
                                                                             <td class="service-description">
                     <!-- Modal -->
                        <div class="modal fade" id="servis{{ service["service_id"] }}" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
                          <div class="modal-dialog" role="document">
                                <div class="modal-box">
                                          <div class="m-header">
                              
                                <h5 class="m-title" id="exampleModalLabel">{{ service["service_id"] }}&nbsp;-&nbsp;{{ service["service_name"] }} </h5> 
                                <button type="button" class="m-close" data-dismiss="modal" aria-label="Close">
                                    
                                  <i class="ri-close-line"></i>
                                </button>
                              </div>
                              
                              
                              <div class="m-body">
                                <p class="detail-data details-split-959"> {{ service["service_description"] }}</p>
                              </div>
                             <!-- <div class="modal-footer">
                                <button type="button" class="btn-primary btn-actions" data-dismiss="modal">Close</button>
                              </div> -->
                            </div>
                          </div>
                          <td class="avarage_time_Services">{{ service["time"] }}</td>
                        </div><a href="javascript:void(0)"  class="btn btn-primary btn-rounded  btn-sm" data-toggle="modal" data-target="#servis{{ service["service_id"] }}">
                         Description
                      </a>
                   
                        </td>
                                                                              </div>
                                    </div>
                                  </div>
                                </div>
                                
                                
                                
                     
                      
                      <!-- end -->
                    
               
                  </tr>
                {% endfor %}
                  
                  
                  
                  
                   {% endfor %}
                   </tbody>
            </table>
          </div>
        </div>
      </div>
          </div>
  </div>
</div>


        </div>
      </div>
    </div> <!-- wrapper End -->
        {% include 'footer1.twig' %}	          
    
{% endif %}
    <script src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-datepicker/1.9.0/js/bootstrap-datepicker.min.js"></script>

  <script type="text/javascript" src="/public/global/ch3915babussofa4.js">
      </script>
  <script type="text/javascript" src="/public/global/cgtptn05b64bwcs4.js">
      </script>
  <script type="text/javascript" src="/public/global/xcz59lmywkfdgsp4.js">
      </script>
  <script type="text/javascript" src="/public/global/wnzsoolloslhfumj.js">
      </script>
      <script type="text/javascript" src="/public/global/qri1ac173hshc2hdjc.js">
</script>

  <script type="text/javascript" >
     window.modules.layouts = {"auth":0};   </script>
  <script type="text/javascript" >
     window.modules.signin = [];   </script>
  <script type="text/javascript" >
      </script>

    <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery.tablesorter/2.27.6/js/jquery.tablesorter.js"></script>
