{% include 'header.twig' %}
      <div class="content">
        <!-- page and other top info -->
        <div id="page_info">

        </div>
        <!-- // page and other top info -->
        <style>
    .order_id {
    display: block;
    background: var(--text-primary);
    text-align: center;
    color: #fff;
    padding: 3px 8px;
    border-radius: 10px;
}
</style>
<div id="top_services">
    <div class="container-fluid">
        <div class="row">
            <div class="col-md-12">
                <div class="card card_v2">
                    <div class="card-body">
                        <div class="row">
                            <div class="col-md-12">
                                <div class="service_button_filter">
                                <div class="service_button_filter" id="dc-body">
                                


 

                                </div>
                            </div>
                        </div>
                        
                        
                        <div class="row">
                           <div class="col-md-6">
                                <div class="row">
                                    <div class="col-md-6">
                                        <div class="drop_dwon_menu" id="cat_filter">
                                            <div class="text_filter">
                                            <button class="btn btn-primary dropdown-toggle" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
          <span class="fal fa-filter"></span>
          <span data-filter-active-category="true">Select Catogery</span>
          <span class="caret"></span>
        </button>
        <ul class="dropdown-menu">
                    <li>
                                                <a class="dropdown-item"  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 %}
</ul>
                                            
                                            
                                            
                                               </div>
                                        </div>
                                    </div>
{% if user['auth'] == 0 %}
<br>
<div class="col-md-auto mb-3 mb-md-0">
<div class="component_filter_currency_button">
<div class="dropdown dropdown-currency">
<a class="btn btn-big-primary w-sm-auto w-100 dropdown-toggle" href="#" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
<span class="services-filter__active-currency">{{site_base_currency}}</span>
</a>
<div class="dropdown-menu w-100" id="curr_anchor">
{{ without_login_currencies_item }}

</div>

</div>
</div></div>
<br>
{% endif %}

                                    
                                </div>
                           </div>
                            <div class="col-md-6"><div class="input-group">
                                        <input type="text" class="form-control" placeholder="Search" id="priceService" data-search-service="#service-table">
                                            <span class="input-group-append component_button_search">
                                            <button class="btn btn-big-secondary" type="button" data-filter-serch-btn="true">
                                                <i class="fas fa-search"></i>
                                            </button>
                                </span>
                            </div></div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>




<section id="table" class="services_page">
    <div class="container-fluid">
        <div class="row">
            <div class="col-md-12">
                <div class="responsive-table def_table">
                       <div class="table-responsive">
                            
                             <table id="serv-table" class="app-mtable table results table-mobile-cards">
                                 
                                        <th>ID</th>
                                        <th class="nowrap">Service</th>
                                        <th class="nowrap">Rate for 1000</th>
                                        <th class="nowrap">Min order</th>
                                        <th class="nowrap">Max order</th>
                                        <th class="nowrap" nowrap>
                                                <div class="d-flex align-items-center">
                                                    <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>
                                            </th>
                                     <th class="hidden-xs hidden-sm service-description__th">Service <br> Description</th> </tr>
                                    </thead>
                                    <tbody>
            

                                       {% for category in serviceCategory %}
                                            <tr class="catetitle" data-filter-table-category-id="{{ category["category_id"] }}">
                                                <td colspan="8">
                                                   <div class="catetitle ">
                                                       <div class="style-bg-primary-alpha-20 style-text-primary services-category" style="font-size:20px; font-weight:bold;">
                                                          <strong class="mk-icons"> {{ category["category_name"] }}</strong>
                                                       </div>
                                                   </div>
                                                </td>
                                            </tr>


                                                

                         {% for service in category['services'] %}
                  <tr data-filter-table-category-id="{{ category["category_id"] }}">
                    <td data-filter-table-service-id="{{ service["service_id"] }}">
                        <span id="service-{{ service["service_id"] }}" class="order_id">{{ service["service_id"] }}</span>
                                        </td>
                    <td data-label="Service" class="app-col mk-icons" data-filter-table-service-name="true">{{ service["service_name"] }}</td>
<td><span class="badge" style="background:#13e760e0;">

{% if user["auth"] == "1" %} 
{{service["service_price"]}} 

{% else %}
{{service["without_login_service_price"]}} 
{% endif %}
    </span></td>

<td data-th="Min" data-column="column3"><strong style="font-weight: bold"><p class="text-success">{{ service["service_min"] }}</td>
<td data-th="Max" data-column="column3"><strong style="font-weight: bold"><p class="text-danger">{{ service["service_max"] }}</td>
                    <td>{{ service["time"] }}</td>
                    <td>
                     <!-- Modal -->
                        <div class="modal fade" id="servis{{ service["service_id"] }}" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
                          <div class="modal-dialog modal-dialog-centered" role="document">
                            <div class="modal-content">
                              <div class="modal-header">
                                <h5 class="modal-title" id="exampleModalLabel"><span id="servId">{{ service["service_id"] }}</span>{{ service["service_name"] }} </h5> 
                                <button type="button" class="serv_modal_close" data-dismiss="modal" aria-label="Close"><i class="fas fa-times"></i></button>
                              </div>
                              <div class="modal-body text-left">
                                <p class="detail-data details-split-959"> {{ service["service_description"] }}</p>
                              </div>
                              <div class="modal-footer">
                               
                                <button type="button" class="btn btn-big-secondary" data-dismiss="modal" id="servId" style="width:70%">Close</button>
                              </div>
                            </div>
                          </div>
                          {% if service["service_description"]  %}
                        </div><a href="javascript:void(0)" class="btn btn-primary btn_serv btn_detail " style="padding-top:10px;padding-bottom:10px;" data-toggle="modal" data-target="#servis{{ service["service_id"] }}">
                         Details
                      </a>
                  {% endif %} 
                        </td>
                  </tr>
                {% endfor %}
              {% endfor %}
          </tbody>
        </table>
      </div></br></br>
    </div>
  </div>
</div>

<div class="divider-top"></div>
        <div class="divider-bottom"></div>
        <div class="container-fluid">
            <div class="row">
            <div class="col-lg-12">
		{% if contentText2 %}
<div class="card mb-2 "style="margin-top:-32px;">
{{ contentText2 }}
</div>
{% endif %}
</div></div></div>










<script>
function ikon(opt) {
    var ikon = "";
    if (opt.indexOf("Instagram") >= 0) {
        ikon = "<span class=\"fs-ig\"><i class=\"fab fa-instagram\" aria-hidden=\"true\"></i> </span>";
    } else if (opt.indexOf("YouTube") >= 0) {
        ikon = "<span class=\"fs-yt\"><i class=\"fab fa-youtube\" aria-hidden=\"true\"></i> </span>";
    } else if (opt.indexOf("Facebook") >= 0) {
        ikon = "<span class=\"fs-fb\"><i class=\"fab fa-facebook\" aria-hidden=\"true\"></i> </span>";
    } else if (opt.indexOf("Youtube") >= 0) {
        ikon = "<span class=\"fs-yt\"><i class=\"fab fa-youtube\" aria-hidden=\"true\"></i> </span>";
    } else if (opt.indexOf("Twitter") >= 0) {
        ikon = "<span class=\"fs-tw\"><i class=\"fab fa-twitter\" aria-hidden=\"true\"></i> </span>";
    } else if (opt.indexOf("Google") >= 0) {
        ikon = "<span class=\"fs-gp\"><i class=\"fab fa-google-plus\" aria-hidden=\"true\"></i> </span>";
    } else if (opt.indexOf("Swarm") >= 0) {
        ikon = "<span class=\"fs-fsq\"><i class=\"fab fa-forumbee\" aria-hidden=\"true\"></i> </span>";
    } else if (opt.indexOf("Dailymotion") >= 0) {
        ikon = "<span class=\"fs-dm\"><i class=\"fab fa-hospital-o\" aria-hidden=\"true\"></i> </span>";
    } else if (opt.indexOf("Soundcloud") >= 0) {
        ikon = "<span class=\"fs-sc\"><i class=\"fab fa-soundcloud\" aria-hidden=\"true\"></i> </span>";
    } else if (opt.indexOf("Vine") >= 0) {
        ikon = "<span class=\"fs-vn\"><i class=\"fab fa-vine\" aria-hidden=\"true\"></i> </span>";
    } else if (opt.indexOf("Spotify") >= 0) {
        ikon = "<span class=\"fs-sp\"><i class=\"fab fa-spotify\" aria-hidden=\"true\"></i> </span>";
    } else if (opt.indexOf("Snapchat") >= 0) {
        ikon = "<span class=\"fs-snap\"><i class=\"fab fa-snapchat-ghost\" aria-hidden=\"true\"></i> </span>";
    } else if (opt.indexOf("Pinterest") >= 0) {
        ikon = "<span class=\"fs-pt\"><i class=\"fab fa-pinterest-p\" aria-hidden=\"true\"></i> </span>";

    } else if (opt.indexOf("Apple") >= 0) {
        ikon = "<span class=\"fs-apple\"><i class=\"fab fa-apple\" aria-hidden=\"true\"></i> </span>";

    } else if (opt.indexOf("M���zik") >= 0) {
        ikon = "<span class=\"fs-music\"><i class=\"fab fa-music\" aria-hidden=\"true\"></i> </span>";

    } else if (opt.indexOf("Vimeo") >= 0) {
        ikon = "<span class=\"fs-videmo\"><i class=\"fab fa-vimeo\" aria-hidden=\"true\"></i> </span>";

    } else if (opt.indexOf("Periscope") >= 0) {
        ikon = "<span class=\"fs-peri\"><i class=\"fab fa-periscope\" aria-hidden=\"true\"></i> </span>";

    } else if (opt.indexOf("Telegram") >= 0) {
        ikon = "<span class=\"fs-telegram\"><i class=\"fab fa-telegram-plane\" aria-hidden=\"true\"></i> </span>";

    }else if (opt.indexOf("Mix Servisler") >= 0) {
        ikon = "<span class=\"fs-mag\"><i class=\"fas fa-magic\" aria-hidden=\"true\"></i> </span>";

    }else if (opt.indexOf("Twitch") >= 0) {
        ikon = "<span class=\"fs-twc\"><i class=\"fab fa-twitch\" aria-hidden=\"true\"></i> </span>";

    } else if (opt.indexOf("Zomato") >= 0) {
        ikon = "<span class=\"fs-zom\"><i class=\"fab fa-cutlery\" aria-hidden=\"true\"></i> </span>";
 } else if (opt.indexOf("Amazon") >= 0) {
        ikon = "<span class=\"fs-amaz\"><i class=\"fab fa-amazon\" aria-hidden=\"true\"></i> </span>";
   } else if (opt.indexOf("Tumblr") >= 0) {
        ikon = "<span class=\"fs-tumb\"><i class=\"fab fa-tumblr\" aria-hidden=\"true\"></i> </span>";
  
   } else if (opt.indexOf("Yandex") >= 0) {
        ikon = "<span class=\"fs-yndx\"><i class=\"fab fa-yoast\" aria-hidden=\"true\"></i> </span>";
  
  } else if (opt.indexOf("LinkedIn") >= 0) {
        ikon = "<span class=\"fs-lnk\"><i class=\"fab fa-linkedin-in\" aria-hidden=\"true\"></i> </span>";
  
  } else if (opt.indexOf("Trendyol") >= 0) {
        ikon = "<span class=\"fs-trnd\"><i class=\"fas fa-tag\" aria-hidden=\"true\"></i> </span>";
  
  } else if (opt.indexOf("Clubhouse") >= 0) {
        ikon = "<span class=\"fs-club\"><i class=\"fas fa-camera-home\" aria-hidden=\"true\"></i> </span>";
  
  } else if (opt.indexOf("Discord") >= 0) {
        ikon = "<span class=\"fs-discord\"><i class=\"fab fa-discord\" aria-hidden=\"true\"></i> </span>";
        
  } else if (opt.indexOf("Whatsapp") >= 0) {
        ikon = "<span class=\"fs-whatsapp\"><i class=\"fab fa-whatsapp\" aria-hidden=\"true\"></i> </span>";
        
  } else if (opt.indexOf("line") >= 0) {
        ikon = "<span class=\"fs-line\"><i class=\"fab fa-line\" aria-hidden=\"true\"></i> </span>";
        
  } else if (opt.indexOf("SoundCloud") >= 0) {
        ikon = "<span class=\"fs-soundcloud\"><i class=\"fab fa-soundcloud\" aria-hidden=\"true\"></i> </span>";
        
  } else if (opt.indexOf("Linkedin") >= 0) {
        ikon = "<span class=\"fs-linkedin\"><i class=\"fab fa-linkedin\" aria-hidden=\"true\"></i> </span>";
        
  } else if (opt.indexOf("Deezer") >= 0) {
        ikon = "<span class=\"fs-deezer\"><i class=\"fab fa-deezer\" aria-hidden=\"true\"></i> </span>";
        
  } else if (opt.indexOf("Audiomack") >= 0) {
        ikon = "<span class=\"fs-headphones\"><i class=\"far fa-headphones\" aria-hidden=\"true\"></i> </span>";
        
  } else if (opt.indexOf("Shopee") >= 0) {
        ikon = "<span class=\"fs-shopware\"><i class=\"fab fa-shopware\" aria-hidden=\"true\"></i> </span>";
        
  } else if (opt.indexOf("Likee") >= 0) {
        ikon = "<span class=\"fs-gratipay\"><i class=\"fab fa-gratipay\" aria-hidden=\"true\"></i> </span>";
        
  } else if (opt.indexOf("VK") >= 0) {
        ikon = "<span class=\"fs-vk\"><i class=\"fab fa-vk\" aria-hidden=\"true\"></i> </span>";
        
  } else if (opt.indexOf("Reddit") >= 0) {
        ikon = "<span class=\"fs-reddit\"><i class=\"fab fa-reddit\" aria-hidden=\"true\"></i> </span>";
        
  } else if (opt.indexOf("Quora") >= 0) {
        ikon = "<span class=\"fs-quora\"><i class=\"fab fa-quora\" aria-hidden=\"true\"></i> </span>";
        
  } else if (opt.indexOf("TikTok") >= 0) {
        ikon = "<span class=\"fs-tiktok\"><i class=\"fab fa-tiktok\" aria-hidden=\"true\"></i> </span>";
        
  } else if (opt.indexOf("Threads") >= 0) {
        ikon = "<span class=\"fs-threads\"><i class=\"fas fa-at\" aria-hidden=\"true\"></i> </span>";
  
    } else if (opt.indexOf("Onlyfans") >= 0) {
        ikon = "<span class=\"fs-ofans\"><i class=\"far fa-lock-alt\" aria-hidden=\"true\"></i> </span>";
    } else if (opt.indexOf("Tik Tok") >= 0) {
        ikon = "<span class=\"fs-tiktok\"><i class=\"fab fa-tiktok\" aria-hidden=\"true\"></i> </span>";
    } else {
        ikon = "<span class=\"\"><i class=\"far fa-star\" aria-hidden=\"true\"></i> </span>  ";
    }
    return ikon;
}
  

$(document).ready(function() {

    
    $(".mk-icons").each(function() {
                var ico = ikon($(this).text());
                $(this).html(ico + $(this).text() );
                console.log($(this).text());
        }); 
    
      
        
        
        
        //console.log(ico);
        //console.log($(".mk-icon").html());
       // $("#mk-icon").html(ico );
});



</script>





{% include 'footer.twig' %}