<?php
use App\Models\Setting;

$setting = Setting::first();
?>


<?php $__env->startSection('isMobile'); ?>
<div class="content my01">
  <?php echo $__env->make('nav_saldo', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
  
<script type="text/javascript" src="https://cdn.jsdelivr.net/momentjs/latest/moment.min.js"></script>
          <script>
            $(document).ready(function() {
              convertToLocalDate();
            });

            function convertToLocalDate() {
              console.log('convertToLocalDate');
              $('.js-date').each(function(i) {
                var dt = $(this).text().trim();
                var isutc = $(this).hasClass('isutc');

                if (isutc) {

                  if (dt && dt != '-') {

                    if (dt[dt.length - 1] != 'Z') {
                      dt = dt + 'Z';
                    }
                    $(this).text(moment.utc(dt).local().format("YYYY-MM-DD HH:mm:ss"));
                    $(this).removeClass('isutc');
                  }
                }
              });
            }
          </script>

  <div class="container my_promo_view">
    <div class="container-wrapper profile-head">
      <div class="container container-box noSidePadding">
        <div class="title fs-lg clearfix">
          <span class="skew">
            <span>Promo saya</span>    </span>
        </div>
        <div class="head-content">
          <div class="row no-gutters">


            <div class="col-xs-12 ">
              <div class="mdc-tab-bar" role="tablist">
                <div class="mdc-tab-scroller">
                  <div class="mdc-tab-scroller__scroll-area mdc-tab-scroller__scroll-area--scroll" style="margin-bottom: 0px;">
                    <div class="mdc-tab-scroller__scroll-content">
                      <!---->



                      <!---->
                      <a role="tab" href="/promo/my-promo" data-tabname="my-promo" data-active="promomy-promo" class="mdc-tab mdc-tab--active" aria-selected="false" tabindex="-1" id="goog_2098347606-FIXED-2">
                        <span class="mdc-tab__content">

                          <span class="mdc-tab__text-label"><!---->Promo saya<!----></span>

                        </span>

                        <span class="mdc-tab-indicator mdc-tab-indicator--active">
                          <span class="mdc-tab-indicator__content
                            mdc-tab-indicator__content--underline" style=""></span>
                        </span>

                        <span class="mdc-tab__ripple mdc-ripple-upgraded" style="--mdc-ripple-fg-size:102px; --mdc-ripple-fg-scale:1.83267; --mdc-ripple-fg-translate-start:-44.1875px, -35px; --mdc-ripple-fg-translate-end:34.1484px, -27px;"></span>
                      </a>
                      <!---->

                      <!---->

                      <a role="tab" href="/promo/my-bonus" data-tabname="my-bonus" data-active="promomy-bonus" class="mdc-tab" aria-selected="false" tabindex="-1" id="goog_2098347606-FIXED-2">
                        <span class="mdc-tab__content">

                          <span class="mdc-tab__text-label">Bonus saya</span>

                        </span>

                        <span class="mdc-tab-indicator">
                          <span class="mdc-tab-indicator__content
                            mdc-tab-indicator__content--underline" style=""></span>
                        </span>

                        <span class="mdc-tab__ripple mdc-ripple-upgraded" style="--mdc-ripple-fg-size:102px; --mdc-ripple-fg-scale:1.83267; --mdc-ripple-fg-translate-start:-44.1875px, -35px; --mdc-ripple-fg-translate-end:34.1484px, -27px;"></span>
                      </a>


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

          <div class="outlet tab-content">
            <div class="tab-pane active" id="home" role="tabpanel" aria-labelledby="home-tab">

              <div class="container-b3">

                <?php if(Auth::user()->status_promo == 'active'): ?>

                <div class="row my-promo">
                  <div class="col-lg-5 col-xs-12">
                    <div class="row">
                      <div class="col-md-4 noSidePadding">
                        <p class="lbl" i18n="">
                          Promosi:
                        </p>
                      </div>
                      <div class="col-md-8 noSidePadding">
                        <p>
                          <?php echo e(Auth::user()->p_name); ?>


                        </p>
                      </div>
                    </div>
                    <div class="row">
                      <div class=" col-xs-6 col-md-4 noSidePadding">
                        <p class="lbl" i18n="">
                          Jenis Promosi:
                        </p>
                      </div>
                      <div class="col-xs-6 col-md-8 noSidePadding">
                        <p>
                          <?php echo e(Auth::user()->jenis_promosi); ?>

                        </p>
                      </div>
                    </div>
                    <div class="row">
                      <div class="col-xs-6 col-md-4 noSidePadding">
                        <p class="lbl" i18n="">
                          Total Bonus + Deposit:
                        </p>
                      </div>
                      <div class="col-xs-6 col-md-8 noSidePadding">
                        <p>
                          IDR <?php echo e(number_format(Auth::user()->total_deposit_bonus, 2, '.', ',')); ?>

                        </p>
                      </div>
                    </div>
                  </div>
                  <div class="col-lg-7 col-xs-12 ">
                    <div class="row">
                      <div class="col-xs-6 col-md-4 noSidePadding">
                        <p class="lbl" i18n="">
                          Turnover saat ini:
                        </p>
                      </div>
                      <div class="col-xs-6 col-md-8 noSidePadding">
                        <p>
                          IDR <?php echo e(number_format(Auth::user()->user_turnover, 2, '.', ',')); ?>

                        </p>
                      </div>
                    </div>
                    <div class="row">
                      <div class="col-md-4 noSidePadding">
                        <p class="lbl" i18n="">
                          Promosi Kondisi Berakhir:
                        </p>
                      </div>
                      <div class="col-md-8 noSidePadding">
                        <p i18n="">
                          TurnOver tercapai
                          IDR <?php echo e(number_format(Auth::user()->turnover, 2, '.', ',')); ?>

                        </p>
                      </div>

                    </div>
                    <div class="row">
                      <div class=" col-xs-7 col-md-4 noSidePadding">
                        <p class="lbl" i18n="">
                          Tanggal Berakhir Promosi:
                        </p>
                      </div>
                      <div class=" col-xs-5 col-md-8 noSidePadding">
                        <p class="js-date isutc">
                          <?php echo e(Auth::user()->promotion_date_end); ?>

                        </p>
                      </div>

                    </div>

                    <div class="row">
                      <div class="col-xs-2 col-md-4 noSidePadding">
                        <p class="lbl" i18n="">
                          Status:
                        </p>
                      </div>
                      <div class="col-xs-8 col-md-8 noSidePadding">
                        <p>
                          <?php if(Auth::user()->status_promo_running == 'berjalan'): ?>
                          <span class="label label-success">
                            Approved
                          </span>
                          <?php else: ?>
                          <span class="label label-warning">
                            Promotion End
                          </span>
                          <?php endif; ?>
                        </p>
                      </div>

                    </div>
                  </div>

                </div>


                <?php else: ?>

                <!-- my-promo -->
                <div class="row my-promo">
                  <div class="col-lg-5 col-xs-12">
                    <div class="row">
                      <div class="col-md-4 noSidePadding">
                        <p class="lbl" i18n="">
                          Promosi:
                        </p>
                      </div>
                      <div class="col-md-8 noSidePadding">
                        <p>

                          -
                        </p>
                      </div>
                    </div>
                    <div class="row">
                      <div class=" col-xs-6 col-md-4 noSidePadding">
                        <p class="lbl" i18n="">
                          Jenis Promosi:
                        </p>
                      </div>
                      <div class="col-xs-6 col-md-8 noSidePadding">
                        <p>
                          -
                        </p>
                      </div>
                    </div>
                    <div class="row">
                      <div class="col-xs-6 col-md-4 noSidePadding">
                        <p class="lbl" i18n="">
                          Total Bonus + Deposit:
                        </p>
                      </div>
                      <div class="col-xs-6 col-md-8 noSidePadding">
                        <p>
                          -
                        </p>
                      </div>
                    </div>
                  </div>
                  <div class="col-lg-7 col-xs-12 ">
                    <div class="row">
                      <div class=" col-xs-7 col-md-4 noSidePadding">
                        <p class="lbl" i18n="">
                          Tanggal Berakhir Promosi:
                        </p>
                      </div>
                      <div class=" col-xs-5 col-md-8 noSidePadding">
                        <p>
                          -
                        </p>
                      </div>
                    </div>

                    <div class="row">
                      <div class="col-xs-2 col-md-4 noSidePadding">
                        <p class="lbl" i18n="">
                          Status:
                        </p>
                      </div>
                      <div class="col-xs-8 col-md-8 noSidePadding">
                        <p>
                          <span class="label label-">
                            -
                          </span>
                        </p>
                      </div>
                    </div>
                  </div>
                </div>

                <?php endif; ?>



              </div>
            </div>

          </div>

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

</div>
<?php $__env->stopSection(); ?>

<?php $__env->startSection('isDesktop'); ?>
<script type="text/javascript" src="https://cdn.jsdelivr.net/momentjs/latest/moment.min.js"></script>
          <script>
            $(document).ready(function() {
              convertToLocalDate();
            });

            function convertToLocalDate() {
              console.log('convertToLocalDate');
              $('.js-date').each(function(i) {
                var dt = $(this).text().trim();
                var isutc = $(this).hasClass('isutc');

                if (isutc) {

                  if (dt && dt != '-') {

                    if (dt[dt.length - 1] != 'Z') {
                      dt = dt + 'Z';
                    }
                    $(this).text(moment.utc(dt).local().format("YYYY-MM-DD HH:mm:ss"));
                    $(this).removeClass('isutc');
                  }
                }
              });
            }
          </script>

<div class="content my01">

  <div class="container my_promo_view">
    <div class="container-wrapper profile-head">
      <div class="container container-box noSidePadding">
        <div class="title fs-lg clearfix">
          <span class="skew">
            <span>Promo saya</span>    </span>
        </div>
        <div class="head-content">
          <div class="row no-gutters">


            <div class="col-xs-12 ">
              <div class="mdc-tab-bar" role="tablist">
                <div class="mdc-tab-scroller">
                  <div class="mdc-tab-scroller__scroll-area mdc-tab-scroller__scroll-area--scroll" style="margin-bottom: 0px;">
                    <div class="mdc-tab-scroller__scroll-content">
                      <!---->



                      <!---->
                      <a role="tab" href="/promo/my-promo" data-tabname="my-promo" data-active="promomy-promo" class="mdc-tab mdc-tab--active" aria-selected="false" tabindex="-1" id="goog_2098347606-FIXED-2">
                        <span class="mdc-tab__content">

                          <span class="mdc-tab__text-label"><!---->Promo saya<!----></span>

                        </span>

                        <span class="mdc-tab-indicator mdc-tab-indicator--active">
                          <span class="mdc-tab-indicator__content
                            mdc-tab-indicator__content--underline" style=""></span>
                        </span>

                        <span class="mdc-tab__ripple mdc-ripple-upgraded" style="--mdc-ripple-fg-size:102px; --mdc-ripple-fg-scale:1.83267; --mdc-ripple-fg-translate-start:-44.1875px, -35px; --mdc-ripple-fg-translate-end:34.1484px, -27px;"></span>
                      </a>
                      <!---->

                      <!---->

                      <a role="tab" href="/promo/my-bonus" data-tabname="my-bonus" data-active="promomy-bonus" class="mdc-tab" aria-selected="false" tabindex="-1" id="goog_2098347606-FIXED-2">
                        <span class="mdc-tab__content">

                          <span class="mdc-tab__text-label">Bonus saya</span>

                        </span>

                        <span class="mdc-tab-indicator">
                          <span class="mdc-tab-indicator__content
                            mdc-tab-indicator__content--underline" style=""></span>
                        </span>

                        <span class="mdc-tab__ripple mdc-ripple-upgraded" style="--mdc-ripple-fg-size:102px; --mdc-ripple-fg-scale:1.83267; --mdc-ripple-fg-translate-start:-44.1875px, -35px; --mdc-ripple-fg-translate-end:34.1484px, -27px;"></span>
                      </a>


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

          <div class="outlet tab-content">
            <div class="tab-pane active" id="home" role="tabpanel" aria-labelledby="home-tab">

              <div class="container-b3">
                <?php if(Auth::user()->status_promo == 'active'): ?>

                <div class="row my-promo">
                  <div class="col-lg-5 col-xs-12">
                    <div class="row">
                      <div class="col-md-4 noSidePadding">
                        <p class="lbl" i18n="">
                          Promosi:
                        </p>
                      </div>
                      <div class="col-md-8 noSidePadding">
                        <p>
                          <?php echo e(Auth::user()->p_name); ?>


                        </p>
                      </div>
                    </div>
                    <div class="row">
                      <div class=" col-xs-6 col-md-4 noSidePadding">
                        <p class="lbl" i18n="">
                          Jenis Promosi:
                        </p>
                      </div>
                      <div class="col-xs-6 col-md-8 noSidePadding">
                        <p>
                          <?php echo e(Auth::user()->jenis_promosi); ?>

                        </p>
                      </div>
                    </div>
                    <div class="row">
                      <div class="col-xs-6 col-md-4 noSidePadding">
                        <p class="lbl" i18n="">
                          Total Bonus + Deposit:
                        </p>
                      </div>
                      <div class="col-xs-6 col-md-8 noSidePadding">
                        <p>
                          IDR <?php echo e(number_format(Auth::user()->total_deposit_bonus, 2, '.', ',')); ?>

                        </p>
                      </div>
                    </div>
                  </div>
                  <div class="col-lg-7 col-xs-12 ">
                    <div class="row">
                      <div class="col-xs-6 col-md-4 noSidePadding">
                        <p class="lbl" i18n="">
                          Turnover saat ini:
                        </p>
                      </div>
                      <div class="col-xs-6 col-md-8 noSidePadding">
                        <p>
                          IDR <?php echo e(number_format(Auth::user()->user_turnover, 2, '.', ',')); ?>

                        </p>
                      </div>
                    </div>
                    <div class="row">
                      <div class="col-md-4 noSidePadding">
                        <p class="lbl" i18n="">
                          Promosi Kondisi Berakhir:
                        </p>
                      </div>
                      <div class="col-md-8 noSidePadding">
                        <p i18n="">
                          TurnOver tercapai
                          IDR <?php echo e(number_format(Auth::user()->turnover, 2, '.', ',')); ?>

                        </p>
                      </div>

                    </div>
                    <div class="row">
                      <div class=" col-xs-7 col-md-4 noSidePadding">
                        <p class="lbl" i18n="">
                          Tanggal Berakhir Promosi:
                        </p>
                      </div>
                      <div class=" col-xs-5 col-md-8 noSidePadding">
                        <p class="js-date isutc">
                          <?php echo e(Auth::user()->promotion_date_end); ?>

                        </p>
                      </div>

                    </div>

                    <div class="row">
                      <div class="col-xs-2 col-md-4 noSidePadding">
                        <p class="lbl" i18n="">
                          Status:
                        </p>
                      </div>
                      <div class="col-xs-8 col-md-8 noSidePadding">
                        <p>
                          <?php if(Auth::user()->status_promo_running == 'berjalan'): ?>
                          <span class="label label-success">
                            Approved
                          </span>
                          <?php else: ?>
                          <span class="label label-warning">
                            Promotion End
                          </span>
                          <?php endif; ?>
                        </p>
                      </div>

                    </div>
                  </div>

                </div>


                <?php else: ?>

                <!-- my-promo -->
                <div class="row my-promo">
                  <div class="col-lg-5 col-xs-12">
                    <div class="row">
                      <div class="col-md-4 noSidePadding">
                        <p class="lbl" i18n="">
                          Promosi:
                        </p>
                      </div>
                      <div class="col-md-8 noSidePadding">
                        <p>

                          -
                        </p>
                      </div>
                    </div>
                    <div class="row">
                      <div class=" col-xs-6 col-md-4 noSidePadding">
                        <p class="lbl" i18n="">
                          Jenis Promosi:
                        </p>
                      </div>
                      <div class="col-xs-6 col-md-8 noSidePadding">
                        <p>
                          -
                        </p>
                      </div>
                    </div>
                    <div class="row">
                      <div class="col-xs-6 col-md-4 noSidePadding">
                        <p class="lbl" i18n="">
                          Total Bonus + Deposit:
                        </p>
                      </div>
                      <div class="col-xs-6 col-md-8 noSidePadding">
                        <p>
                          -
                        </p>
                      </div>
                    </div>
                  </div>
                  <div class="col-lg-7 col-xs-12 ">
                    <div class="row">
                      <div class=" col-xs-7 col-md-4 noSidePadding">
                        <p class="lbl" i18n="">
                          Tanggal Berakhir Promosi:
                        </p>
                      </div>
                      <div class=" col-xs-5 col-md-8 noSidePadding">
                        <p>
                          -
                        </p>
                      </div>
                    </div>

                    <div class="row">
                      <div class="col-xs-2 col-md-4 noSidePadding">
                        <p class="lbl" i18n="">
                          Status:
                        </p>
                      </div>
                      <div class="col-xs-8 col-md-8 noSidePadding">
                        <p>
                          <span class="label label-">
                            -
                          </span>
                        </p>
                      </div>
                    </div>
                  </div>
                </div>

                <?php endif; ?>



              </div>
            </div>

          </div>

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

</div>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('layouts.main', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/ybjqutnd/jp.royalkingz.top/resources/views/my-promo.blade.php ENDPATH**/ ?>