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

Open in your IDE?
  1. <div class="row">
  2.     <div class="col-lg-6 offset-lg-3" ng-controller="IGReelController">
  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)">
  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="Instagram 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">
  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}])"></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.picture_url}]); aspect-ratio: 3/4;" 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.                 <div class="d-flex flex-column flex-md-row gap-2">
  73.                     <button
  74.                             class="btn btn-success btn-lg w-100"
  75.                             ng-if="tokenReels"
  76.                             ng-click="loadMoreMedias()"
  77.                             ng-disabled="isLoadingMedia"
  78.                             ng-class="{'loading': isLoadingMedia}">
  79.                         <span ng-show="isLoadingMedia">Loading...</span>
  80.                         <span ng-show="!isLoadingMedia">Load More</span>
  81.                     </button>
  82.                     <button class="btn btn-primary btn-lg w-100" ng-click="goToCheckout()">Continue >> </button>
  83.                 </div>
  84.             </div>
  85.         </div>
  86.         <div ng-if="currentStep === 'igCheckout'">
  87.             <div class="select__offer px-3 py-3 mb-3">
  88.             
  89.                 <div class="d-flex" style="justify-content: space-between;">
  90.                     <h3 class="mb-0">Order summary</h3>
  91.                 </div>
  92.                 <hr />
  93.                 <div class="d-flex gap-3">
  94.                     <div class="img-profile-container">
  95.                         <div class="img-profile-preview" style="background-image: url([{profile.profile_pic_url}])"></div>
  96.                     </div>
  97.                     <div class="summary">
  98.                         <p class="username mb-2">
  99.                             [{profile.username}] 
  100.                             <span class="float-end" style="font-size: 12px;color: var(--bs-indigo);text-decoration: underline; cursor: pointer"  ng-click="goToSelectProfile()">Change</span>
  101.                         </p>
  102.                         <p class="package mb-0 d-flex">
  103.                             <span style="flex: 1;text-align: start;line-height: 18px;font-size: 13px;">Followers<br /><b>[{profile.follower_count | megaNumber}]</b></span>
  104.                             <span style="flex: 1;text-align: center;line-height: 18px;font-size: 13px;">Following<br /><b>[{profile.following_count | megaNumber}]</b></span>
  105.                             <span style="flex: 1;text-align: end;line-height: 18px;font-size: 13px;">Medias<br /><b>[{profile.media_count | megaNumber}]</b></span>
  106.                         </p>
  107.                     </div>
  108.                 </div>
  109.                 <hr />
  110.                 <div class="d-flex d-row gap-3 mt-4 align-items-center">
  111.                     <span><i class="{{ icons[current_sub_service.Text] }}"></i></span>
  112.                     <span style="flex: auto;font-size: 16px;font-weight: bold;line-height: 18px;">
  113.                         [{current_offer.Quantity}] [{current_sub_service.Text}]
  114.                         <br />
  115.                         <em style="font-size: 13px;font-weight: normal;">[{current_offer.Quantity}] [{current_sub_service.Text}] / 1 profile</em>
  116.                     </span>
  117.                     <span style="font-size: 20px;font-weight: bold;">
  118.                         <sub style="bottom: -2px;margin-right: 5px;color: red;" class="text-decoration-line-through">
  119.                             [{truncateToTwoDecimals(current_offer.Price * (1 + (current_offer.Discount / 100)))}]
  120.                         </sub> 
  121.                         {{get_currency()}}[{current_offer.Price}]
  122.                     </span>
  123.                 </div>
  124.                 <hr />
  125.                 <div class="d-flex flex-column gap-3 mt-3 align-items-center">
  126.                     <p style="font-size: 20px;display: flex;align-items: center;width: 100%;justify-content: space-between;margin: 0; font-weight: bold">
  127.                         Selected Posts
  128.                         <span class="float-end" style="font-size: 12px;color: var(--bs-indigo);text-decoration: underline; cursor: pointer" ng-click="goToShowProfile(false)">Change</span>
  129.                     </p>
  130.                     <div class="medias__list" style="grid-template-columns: auto auto auto auto auto; width: 100%">
  131.                         <div class="medias__list-item" style="background-image: url([{post.picture_url}]); aspect-ratio: 3/4;" ng-repeat="post in profile.posts" ng-if="isPostSelected(post.url)">
  132.                             <div class="medias__list-item-selected" style="background-color: #00000042; font-size: 15px;align-items: end;">
  133.                                 <div>
  134.                                     <span>[{getQuantityPerPost()}]</span>
  135.                                     <i class="{{ icons[current_sub_service.Text] }}"></i>
  136.                                 </div>
  137.                             </div>
  138.                         </div>
  139.                     </div>
  140.                 </div>
  141.                 <hr />
  142.                 {# <div class="input-group mb-3">
  143.                     <input type="text" class="form-control" placeholder="Enter coupon code" aria-describedby="basic-addon2">
  144.                     <span class="input-group-text" id="basic-addon2">Apply</span>
  145.                 </div> #}
  146.                 <div class="d-flex" style="justify-content: space-between;">
  147.                     <h3 class="mb-0">Total to pay</h3>
  148.                     <b class="h3 mb-0">{{get_currency()}}[{current_offer.Price}]</b>
  149.                 </div>
  150.             </div>
  151.             <div class="select__offer px-3 py-3 mb-3">
  152.                 <h2 class="text-center">Checkout</h2>
  153.                 <div class="mb-3">
  154.                     <label for="email" class="form-label">Enter your e-mail to receive the confirmation order</label>
  155.                     <input type="text" class="form-control" id="email" placeholder="Enter your email" required ng-model="order.email" ng-class="{'is-invalid': validation.email.length > 0}">
  156.                 </div>
  157.                 {# <div class="form-check mb-3">
  158.                     <input class="form-check-input" type="checkbox" value="" id="flexCheckDefault">
  159.                     <label class="form-check-label" for="flexCheckDefault">
  160.                         Send me special promotions and discounts
  161.                     </label>
  162.                 </div> #}
  163.                 <div class="mb-3">
  164.                     {# <button class="btn btn-lg btn-primary d-block w-100" ng-click="proceedToCheckout()">Pay {{get_currency()}}[{current_offer.Price}]</button> #}
  165.                     <button class="btn btn-primary btn-lg d-block w-100" ng-click="proceedToCheckout()" ng-disabled="submitting" ng-class="{'loading': submitting}">
  166.                         <span ng-show="submitting">Please wait while submitting your order</span>
  167.                         <span ng-show="!submitting">Pay {{get_currency()}}[{current_offer.Price}]</span>
  168.                     </button>
  169.                 </div>
  170.                 <div class="text-center">
  171.                     <p>
  172.                         By completing your order, you agree to the <a href="/terms/terms" target="_blank">terms of services</a> 
  173.                         and <a href="/terms/privacy" target="_blank">privacy policy</a>.
  174.                     </p>
  175.                             
  176.                     <p>
  177.                         <strong>All pricing is in {{get_currency()}}.</strong> If paying with a different currency, the billed amount is 
  178.                         subject to exchange rates and additional fees.
  179.                     </p>
  180.                 </div>
  181.             </div>
  182.         </div>
  183.     </div>
  184. </div>