templates/order/partials/tk_pictures.html.twig line 1

Open in your IDE?
  1. <div class="row">
  2.     <div class="col-lg-6 offset-lg-3" ng-controller="TkPicturesController">
  3.         <div class="select__offer px-3 py-3 mb-4" ng-if="currentStep === 'igSelectProfile'">
  4.             <h2 class="text-center">Get Started</h2>
  5.             <form name="orderSelect" ng-submit="goToShowProfile(true)" id="enter-profile-anshore">
  6.                 <div class="mb-3 mt-3">
  7.                     <label for="username" class="form-label">Enter username</label>
  8.                     <div class="package-container">
  9.                         <input type="text" class="form-control ps-5" id="username" placeholder="TikTok username" ng-model="profile.username" ng-class="{'is-invalid': validation.username.length > 0}">
  10.                         <i class="fab fa-{{ current_service.SocialNetwork | lower }}"></i>
  11.                     </div>
  12.                 </div>
  13.                 <div class="mb-3 mt-3">
  14.                     <label for="package" class="form-label">Select package</label>
  15.                     <div class="package-container">
  16.                         <select class="form-control ps-5" id="package" ng-model="order.IDService" ng-change="onOfferChange()">
  17.                             <option ng-repeat="item in current_sub_service.offers" ng-value="item.IDService">[{(item.Offer + ' - ' + item.Quantity + ' ' + current_sub_service.Text)}]</option>
  18.                         </select>
  19.                         <i class="{{ icons[current_sub_service.Text] }}"></i>
  20.                     </div>
  21.                 </div>
  22.                 <button type="submit" class="btn btn-primary btn-lg d-block w-100" ng-disabled="loading" ng-class="{'loading': loading}">
  23.                     <span ng-show="loading">Please wait [{countdown | number:2}]</span>
  24.                     <span ng-show="!loading">Continue</span>
  25.                 </button>
  26.             </form>
  27.         </div>
  28.         <div ng-if="currentStep === 'igShowProfile'">
  29.             <div class="select__offer px-3 py-3 mb-3" id="posts-list-anshore">
  30.                 <div class="d-flex gap-3">
  31.                     <div class="img-profile-container">
  32.                         <div class="img-profile-preview" style="background-image: url([{profile.profile_pic_url}]); background-size: cover;"></div>
  33.                     </div>
  34.                     <div class="summary">
  35.                         <p class="username mb-2">
  36.                             [{profile.username}] 
  37.                             <span class="float-end" style="font-size: 12px;color: var(--bs-indigo);text-decoration: underline; cursor: pointer"  ng-click="goToSelectProfile()">Change</span>
  38.                         </p>
  39.                         <p class="package mb-0 d-flex">
  40.                             <span style="flex: 1;text-align: start;line-height: 18px;font-size: 13px;">Followers<br /><b>[{profile.follower_count | megaNumber}]</b></span>
  41.                             <span style="flex: 1;text-align: center;line-height: 18px;font-size: 13px;">Following<br /><b>[{profile.following_count | megaNumber}]</b></span>
  42.                             <span style="flex: 1;text-align: end;line-height: 18px;font-size: 13px;">Medias<br /><b>[{profile.media_count | megaNumber}]</b></span>
  43.                         </p>
  44.                     </div>
  45.                 </div>
  46.                 <hr />
  47.                 <div class="d-flex d-row gap-3 mt-4 align-items-center">
  48.                     <span><i class="{{ icons[current_sub_service.Text] }}"></i></span>
  49.                     <span style="flex: auto;font-size: 16px;font-weight: bold;line-height: 18px;">
  50.                         [{current_offer.Quantity}] [{current_sub_service.Text}]
  51.                         <br />
  52.                         <em style="font-size: 13px;font-weight: normal;">[{current_offer.Quantity}] [{current_sub_service.Text}] / 1 profile</em>
  53.                     </span>
  54.                     <span style="font-size: 20px;font-weight: bold;">
  55.                         <sub style="bottom: -2px;margin-right: 5px;color: red;" class="text-decoration-line-through">
  56.                             [{truncateToTwoDecimals(current_offer.Price * (1 + (current_offer.Discount / 100)))}]
  57.                         </sub> 
  58.                         {{get_currency()}}[{current_offer.Price}]
  59.                     </span>
  60.                 </div>
  61.             </div>
  62.             <div class="select__offer px-3 py-3 mb-3">
  63.                 <h2 class="text-center">Select Posts</h2>
  64.                 <p class="text-center">Your package will be split evenly between your posts.</p>
  65.                 <div class="medias__list mb-3">
  66.                     <div class="medias__list-item" style="background-image: url([{post.cover}]); aspect-ratio: 3/5;" ng-click="onPostClicked(post)" ng-repeat="post in profile.posts">
  67.                         <div class="medias__list-item-selected" ng-if="isPostSelected(post.url)">
  68.                             [{getQuantityPerPost()}]
  69.                         </div>
  70.                     </div>
  71.                 </div>
  72.                 <button class="btn btn-primary btn-lg d-block w-100" ng-click="goToCheckout()">Continue</button>
  73.             </div>
  74.         </div>
  75.         <div ng-if="currentStep === 'igCheckout'">
  76.             <div class="select__offer px-3 py-3 mb-3" id="checkout-anshore">
  77.             
  78.                 <div class="d-flex" style="justify-content: space-between;">
  79.                     <h3 class"mb-0">Order summary</h3>
  80.                 </div>
  81.                 <hr />
  82.                 <div class="d-flex gap-3">
  83.                     <div class="img-profile-container">
  84.                         <div class="img-profile-preview" style="background-image: url([{profile.profile_pic_url}]); background-size: cover;"></div>
  85.                     </div>
  86.                     <div class="summary">
  87.                         <p class="username mb-2">
  88.                             [{profile.username}] 
  89.                             <span class="float-end" style="font-size: 12px;color: var(--bs-indigo);text-decoration: underline; cursor: pointer"  ng-click="goToSelectProfile()">Change</span>
  90.                         </p>
  91.                         <p class="package mb-0 d-flex">
  92.                             <span style="flex: 1;text-align: start;line-height: 18px;font-size: 13px;">Followers<br /><b>[{profile.follower_count | megaNumber}]</b></span>
  93.                             <span style="flex: 1;text-align: center;line-height: 18px;font-size: 13px;">Following<br /><b>[{profile.following_count | megaNumber}]</b></span>
  94.                             <span style="flex: 1;text-align: end;line-height: 18px;font-size: 13px;">Medias<br /><b>[{profile.media_count | megaNumber}]</b></span>
  95.                         </p>
  96.                     </div>
  97.                 </div>
  98.                 <hr />
  99.                 <div class="d-flex d-row gap-3 mt-4 align-items-center">
  100.                     <span><i class="{{ icons[current_sub_service.Text] }}"></i></span>
  101.                     <span style="flex: auto;font-size: 16px;font-weight: bold;line-height: 18px;">
  102.                         [{current_offer.Quantity}] [{current_sub_service.Text}]
  103.                         <br />
  104.                         <em style="font-size: 13px;font-weight: normal;">[{current_offer.Quantity}] [{current_sub_service.Text}] / 1 profile</em>
  105.                     </span>
  106.                     <span style="font-size: 20px;font-weight: bold;">
  107.                         <sub style="bottom: -2px;margin-right: 5px;color: red;" class="text-decoration-line-through">
  108.                             [{truncateToTwoDecimals(current_offer.Price * (1 + (current_offer.Discount / 100)))}]
  109.                         </sub> 
  110.                         {{get_currency()}}[{current_offer.Price}]
  111.                     </span>
  112.                 </div>
  113.                 <hr />
  114.                 <div class="d-flex flex-column gap-3 mt-3 align-items-center">
  115.                     <p style="font-size: 20px;display: flex;align-items: center;width: 100%;justify-content: space-between;margin: 0; font-weight: bold">
  116.                         Selected Posts
  117.                         <span class="float-end" style="font-size: 12px;color: var(--bs-indigo);text-decoration: underline; cursor: pointer" ng-click="goToShowProfile(false)">Change</span>
  118.                     </p>
  119.                     <div class="medias__list" style="grid-template-columns: auto auto auto auto auto; width: 100%">
  120.                         <div class="medias__list-item" style="background-image: url([{post.cover}]); aspect-ratio: 4/4;" ng-repeat="post in profile.posts" ng-if="isPostSelected(post.url)">
  121.                             <div class="medias__list-item-selected" style="background-color: #00000042; font-size: 15px;align-items: end;">
  122.                                 <div>
  123.                                     <span>[{getQuantityPerPost()}]</span>
  124.                                     <i class="{{ icons[current_sub_service.Text] }}"></i>
  125.                                 </div>
  126.                             </div>
  127.                         </div>
  128.                     </div>
  129.                 </div>
  130.                 <hr />
  131.                 {# <div class="input-group mb-3">
  132.                     <input type="text" class="form-control" placeholder="Enter coupon code" aria-describedby="basic-addon2">
  133.                     <span class="input-group-text" id="basic-addon2">Apply</span>
  134.                 </div> #}
  135.                 <div class="d-flex" style="justify-content: space-between;">
  136.                     <h3 class"mb-0">Total to pay</h3>
  137.                     <b class="h3 mb-0">{{get_currency()}}[{current_offer.Price}]</b>
  138.                 </div>
  139.             </div>
  140.             <div class="select__offer px-3 py-3 mb-3">
  141.                 <h2 class="text-center">Checkout</h2>
  142.                 <div class="mb-3">
  143.                     <label for="email" class="form-label">Enter your e-mail to receive the confirmation order</label>
  144.                     <input type="text" class="form-control" id="email" placeholder="Enter your email" ng-model="order.email" ng-class="{'is-invalid': validation.email.length > 0}">
  145.                 </div>
  146.                 {# <div class="form-check mb-3">
  147.                     <input class="form-check-input" type="checkbox" value="" id="flexCheckDefault">
  148.                     <label class="form-check-label" for="flexCheckDefault">
  149.                         Send me special promotions and discounts
  150.                     </label>
  151.                 </div> #}
  152.                 <div class="mb-3">
  153.                     {# <button class="btn btn-lg btn-primary d-block w-100" ng-click="proceedToCheckout()">Pay {{get_currency()}}[{current_offer.Price}]</button> #}
  154.                     <button class="btn btn-primary btn-lg d-block w-100" ng-click="proceedToCheckout()" ng-disabled="submitting" ng-class="{'loading': submitting}">
  155.                         <span ng-show="submitting">Please wait while submitting your order</span>
  156.                         <span ng-show="!submitting">Pay {{get_currency()}}[{current_offer.Price}]</span>
  157.                     </button>
  158.                 </div>
  159.                 <div class="text-center">
  160.                     <p>
  161.                         By completing your order, you agree to the <a href="/terms/terms" target="_blank">terms of services</a> 
  162.                         and <a href="/terms/privacy" target="_blank">privacy policy</a>.
  163.                     </p>
  164.                             
  165.                     <p>
  166.                         <strong>All pricing is in {{get_currency()}}.</strong> If paying with a different currency, the billed amount is 
  167.                         subject to exchange rates and additional fees.
  168.                     </p>
  169.                 </div>
  170.             </div>
  171.         </div>
  172.     </div>
  173. </div>