{% include 'header.twig' %}

            <main class="main_content">
                <div class="container-fluid">
    <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">
                    <ul class="nav nav-pills service-filters mb-3" id="category_filter_wrap" role="tablist">

                        <a href="javascript:void(0)" onclick="searchNow('youtube')" class="filter_item brand-category">
                            <span class="icons" data-id="youtube"> <i class="fab fa-youtube"></i> </span>Youtube </a>

                        <a href="javascript:void(0)" onclick="searchNow('facebook')" class="filter_item brand-category">
                            <span class="icons" data-id="facebook"> <i class="fab fa-facebook"></i> </span>Facebook </a>

                        <a href="javascript:void(0)" onclick="searchNow('instagram')" class="filter_item brand-category"
                            data-id="instagram"> <span class="icons"> <i class="fab fa-instagram"></i> </span>Instagram
                        </a>

                        <a href="javascript:void(0)" onclick="searchNow('twitter')" class="filter_item brand-category">
                            <span class="icons" data-id="twitter"> <i class="fab fa-twitter"></i> </span>Twitter </a>

                        <a href="javascript:void(0)" onclick="searchNow('spotify')" class="filter_item brand-category"
                            data-id="spotify"> <span class="icons"> <i class="fab fa-spotify"></i> </span>Spotify </a>

                        <a href="javascript:void(0)" onclick="searchNow('tiktok')" class="filter_item brand-category">
                            <span class="icons" data-id="tiktok"> <i class="fab fa-tiktok"></i> </span>Tiktok </a>

                        <a href="javascript:void(0)" onclick="searchNow('linkedin')" class="filter_item brand-category"
                            data-id="linkedin"> <span class="icons"> <i class="fab fa-linkedin"></i> </span>Linkedin
                        </a>

                        <a href="javascript:void(0)" onclick="searchNow('google')" class="filter_item brand-category"
                            data-id="google"> <span class="icons"> <i class="fab fa-google"></i> </span>Google </a>

                        <a href="javascript:void(0)" onclick="searchNow('telegram')" class="filter_item brand-category"
                            data-id="telegram"> <span class="icons"> <i class="fab fa-telegram"></i> </span>Telegram
                        </a>

                        <a href="javascript:void(0)" onclick="searchNow('discord')" class="filter_item brand-category"
                            data-id="telegram"> <span class="icons"> <i class="fab fa-discord"></i> </span>Discord </a>

                        <a href="javascript:void(0)" onclick="searchNow('snapchat')" class="filter_item brand-category"
                            data-id="telegram"> <span class="icons"> <i class="fab fa-snapchat"></i> </span>Snapchat
                        </a>

                        <a href="javascript:void(0)" onclick="searchNow('twitch')" class="filter_item brand-category"
                            data-id="telegram"> <span class="icons"> <i class="fab fa-twitch"></i> </span>Twitch </a>

                        <a href="javascript:void(0)" onclick="searchNow('traffic')" class="filter_item brand-category"
                            data-id="traffic"> <span class="icons"> <i class="fas fa-globe"></i> </span>Website Traffic
                        </a>

                        <a href="javascript:void(0)" onclick="searchNow('reviews')" class="filter_item brand-category"
                            data-id="other"> <span class="icons"><i class="fas fa-star"></i> </span>Reviews </a>

                        <a href="javascript:void(0)" onclick="clearSearch()" class="filter_item brand-category"
                            data-id="everything"> <span class="icons"> <i class="fab fa-audible"></i> </span>Everythings
                        </a>

                    </ul>
                    <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" id="searchBBox">
                                <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-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>
                                            <div class="dropdown-menu"><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 %}
                                                                                                                                   </li>
                                                                                                                                   </ul>                                                             
                                                                                                                                          
                                        </div>
                                    </div>
                                </div>
                               

</ul>
                        </div>
                    </div>
                </div>
</div>





                <div class="card-body">
                    <div class="table-responsive">
                        <table class="table" id="service-table">
                            <thead>
                                <tr>
                                    <th>ID</th>
                                    <th class="width-service-name">Service</th>
                                    <th class="nowrap">Rate per 1000</th>
                                    <th class="nowrap">Min order</th>
                                    <th class="nowrap">Max order</th>
                                                                        <th class="avarage_time_Services">Average time </th>
                                                                                                            <th>Description</th>
                                    </thead>
                                    <tbody>
            

                                       {% for category in serviceCategory %}
                                            <tr class="services-list-category-title" data-filter-table-category-id="{{ category["category_id"] }}">
                                                <td colspan="100%" class="service_category_title">
                                                
                                                       <span></span>
                                                         
                                                          <strong class=" si-title mk-icons"> {{ category["category_name"] }}</strong>
                                                
                                                </td>
                                            </tr>


                                                

                         {% for service in category['services'] %}
                  <tr data-filter-table-category-id="{{ category["category_id"] }}">
                    <td data-label="ID" data-filter-table-service-id="{{ service["service_id"] }}"><div class="s-col s-col-sm s-col-id"><span class="sp-serv-sm" id="service-{{ service["service_id"] }}">{{ service["service_id"] }}</span>
                                        <a>
                                            <span
                                                data-clip="true"
                                                title="Service id copied"
                                                data-clipboard-action="copy"
                                                data-clipboard-target="#service-{{ service["service_id"] }}"
class="fas fa-clone"></span>
                                        </a></td>
                    <td data-label="Service" class="app-col mk-icons" data-filter-table-service-name="true">{{ service["service_name"] }}</td>
<td><span class="sp-serv-sm"><strong style="font-weight: bold">

{% 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 -->
                     
                     
                     
                     
                     <!-- Modal -->
<div class="modal fade" id="exampleModal" tabindex="-1" aria-labelledby="exampleModalLabel" aria-hidden="true">
    <div class="modal-dialog modal-dialog-centered">
        <div class="modal-content service-modal">
            <div class="modal-body">
                <button type="button" class="btn-close srv_modal_btn" data-bs-dismiss="modal"
                    aria-label="Close"></button>
                <div class="services_name mb-4">
                    <h4 id="serviceNameEl" class="text-center"></h4>
                </div>
                <div class="services_descriptions" id="servicesDescEl">

                </div>
                <div class="orders_info">
                    <div class="order_info_item">
                        <div class="icon">
                            <i class="fas fa-download"></i>
                        </div>
                        <div class="text">
                            <h4>Min Order</h4>
                            <p class="mb-0" id="minOrder"></p>
                        </div>
                    </div>
                    <div class="order_info_item">
                        <div class="icon">
                            <i class="fas fa-upload"></i>
                        </div>
                        <div class="text">
                            <h4>Max Order</h4>
                            <p class="mb-0" id="maxOrder"></p>
                        </div>
                    </div>
                    <div class="order_info_item">
                        <div class="icon">
                            <i class="fas fa-dollar-sign"></i>
                        </div>
                        <div class="text">
                            <h4>Price Per 1000</h4>
                            <p class="mb-0" id="pricePer"></p>
                        </div>
                    </div>
                </div>
                <div class="pt-2 pb-1">
                    <a href="" class="btn btn-primary w-100" id="orderBtn">Order Now</a>
                </div>
            </div>
        </div>
    </div>
</div>

<script>
    function showModalContent(serviceName, serviceId, minorder, maxorder, priceonce) {
        const serviceNameEle = document.getElementById('serviceNameEl');
        const serviceDescEle = document.getElementById('servicesDescEl');
        const orderBtn = document.getElementById('orderBtn');
        const minOrder = document.getElementById('minOrder');
        const maxOrder = document.getElementById('maxOrder');
        const pricePer = document.getElementById('pricePer');
        const targetDesc = 'servicesDescriptions' + serviceId;
        console.log(minorder);
        serviceNameEle.innerText = serviceName;
        minOrder.innerHTML = minorder;
        maxOrder.innerHTML = maxorder;
        pricePer.innerHTML = priceonce;
        const getDescriptions = document.getElementById(targetDesc).innerHTML;
        serviceDescEle.innerHTML = getDescriptions;
        orderBtn.setAttribute('href', `https://ridesmm.com/?service=${serviceId}`);
    }
</script>
                     

                     {% if service["service_description"]  %}
                                        <button class="btn btn-view-details" data-bs-toggle="modal"
                                            data-bs-target="#exampleModal"
                                            onclick="showModalContent('{{ service["service_name"] }} ','{{ service["service_id"] }}', '{{ service["service_min"] }}','{{ service["service_max"] }}','{{service["service_price"]}} ') ">
                                            Details</button>
                                        <span class="d-none" id="servicesDescriptions{{ service["service_id"] }}">{{ service["service_description"] }}</span>
                                    
  {% 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("Onlyfans") >= 0) {
        ikon = "<span class=\"fs-ofans\"><i class=\"far fa-lock-alt\" 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("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("Whatsapp") >= 0) {
        ikon = "<span class=\"fs-whatsapp \"><i class=\"fab fa-whatsapp\" aria-hidden=\"true\"></i> </span>";
    } else {
        ikon = "<span class=\"\"><i class=\"far fa-crown\" 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' %}