<?php $__env->startSection('title', 'IV Media - Increase your popularity'); ?>
<?php $__env->startSection('content'); ?>
<!-- Start content -->
<div class="content">
    <div class="container-fluid">

        <div class="row">
            <div class="col-xl-12">
                <div class="page-title-box">
                    <h4 class="page-title float-left">Dashboard</h4>

                    <ol class="breadcrumb float-right">
                        <li class="breadcrumb-item"><a href="<?php echo e(url('/')); ?>"><?php echo \App\Helper::panelName(); ?></a>
                        </li>
                        <li class="breadcrumb-item active">Dashboard</li>
                    </ol>

                    <div class="clearfix"></div>
                </div>
            </div>
        </div>
        <!-- end row -->


        <div class="row">
            <?php if($flash = session('message')): ?> {
              <div class="col-md-12">
                <div class="alert alert-success" role="alert">
                  <ul>
                  <?php $__currentLoopData = $flash; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $val): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                    <li><?php echo e($key.'  '.$val); ?></li>
                  <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                  </ul>
                </div>
              </div>
            <?php endif; ?>
            <div class="col-lg-6 col-md-12">

                <?php if($result = session('result')): ?>
                    <?php echo $result; ?>

                <?php endif; ?>
                <div class="card-box">

                    <h4 class="header-title m-t-0 m-b-30"><span class="label label-primary"><?php echo e(auth()->user()->level); ?></span> <?php echo \App\Helper::panelName(); ?> SERVER <?php echo e(($id != 9) ? $id : '5000&plusmn;'); ?></h4>

                    <div class="row">
                        <div class="col-12">
                                
                                
                                <?php ($like = 'like_1'); ?>
                                <!--<?php ($max = ($id == 1000 ? $max =1000 :1000)); ?>>
                                <?php if(\Carbon\Carbon::now() > auth()->user()->delay->$like): ?>
                                    <form action="<?php echo e(url('server/'.$serverLink.'/'.$id)); ?>" method="POST">
                                        <?php echo app('captcha')->render(); ?>
                                        <?php echo e(csrf_field()); ?>

                                        <fieldset class="form-group">
                                            <label for="url">URL Foto</label>
                                            <input type="text" class="form-control <?php echo e($errors->has('url') ? 'parsley-error' : ''); ?>" id="url" placeholder="https://www.instagram.com/p/Ba6Cz_7hMnT/" name="url">
                                            <?php if($errors->has('url')): ?>
                                                <span class="help-block">
                                                    <ul class="parsley-errors-list filled"><li class="parsley-required"><?php echo e($errors->first('url')); ?></li></ul>
                                                </span>
                                            <?php endif; ?>
                                        </fieldset>
                                        <fieldset class="form-group">
                                            <label for="jumlah">Mau Berapa Likes?</label>
                                            <input type="number" class="form-control <?php echo e($errors->has('jumlah') ? 'parsley-error' : ''); ?>" id="jumlah" placeholder="<?php echo e($max); ?>" name="jumlah">
                                            <?php if($errors->has('jumlah')): ?>
                                                <span class="help-block">
                                                    <ul class="parsley-errors-list filled"><li class="parsley-required"><?php echo e($errors->first('jumlah')); ?></li></ul>
                                                </span>
                                            <?php endif; ?>
                                        </fieldset>
                                        <div class="alert alert-info" role="alert">
                                         Jeda 30 Menits Sampai Esok Jumblah Member Berkurang
                                         Submit Server 1 2x 2000±,
                                         Submit Server 2 Berulang 8000±,
                                         BerI Jarak 2 Menit Untuk Yang Punya Lebih Dari 1 Account
                                        </div>
                                        <button type="submit" id="submitBtn" class="btn btn-block btn-primary">Submit</button>
                                    </form>
                                <?php else: ?>
                                    <div class="alert alert-danger" role="alert">
                                        Please wait <?php echo e(\Carbon\Carbon::parse(auth()->user()->delay->$like)->diffForHumans()); ?> to submit like
                                    </div>
                                    <div class="alert alert-info" role="alert">
                                        Pakai Nya Bergantian Server
                                    </div>
                                <?php endif; ?>
                        </div>
                    </div><!-- end row -->
                </div>
            </div>
            <?php
              $next = 0;
              $sv9 = '/server/forge/9';
              $sv1 = '/server/voyager/1';
              $sv2 = '/server/envoyer/2';
              $sv3 = '/server/forge/3';
              $sv4 = '/server/voyager/4';
              $sv5 = '/server/forge/5';
              $sv6 = '/server/voyager/6';
              $sv7 = '/server/envoyer/7';
              $sv8 = '/server/voyager/8';
              if (intval($id) == 8) {
                $next = $sv1;
              } else {
                @$a = 'sv'.(intval($id) + 1);
                $next = $$a;
              }
            ?>
            <div class="col-lg-6 col-md-12">
                
                <div class="card-box">
                    <h4 class="header-title m-t-0 m-b-30"><span class="label label-primary"><?php echo e(auth()->user()->level); ?></span> <?php echo \App\Helper::panelName(); ?> PANEL SERVER <?php echo e($id); ?></h4>
                    <ul class="list-group">
                      <li class="list-group-item">Selamat Datang Di <?php echo \App\Helper::panelName(); ?> PANEL</li>
                      <li class="list-group-item">Data Base Like 22000±</li>
                      <li class="list-group-item">Database Like Bisa Naik Turun Karena Pemakaian</li>
                      <li class="list-group-item">Jeda Submit 20 Menit</li>
                      <li class="list-group-item">Instagram Jangan Di <span class="label label-danger"><i class="fa fa-lock"></i> Private</span></li>
                      
                    </ul>
                </div>
            </div>

        </div>
        <!-- end row -->


    </div>
    <!-- container -->

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

<?php $__env->startSection('js'); ?>
<script>
  var resizefunc = [];
  var limit = 50; // <---max no of lines you want in textarea

  $(document).ready(function(){
    $('#jumlah').on('input change', function(){
        var submitBtn = $('#submitBtn');
        var value = $('#jumlah').val();
        if(value <= <?php echo e($max); ?>){
            submitBtn.removeAttr("disabled");
            submitBtn.text('Submit');
            submitBtn.removeClass('btn-danger').addClass('btn-primary');
        }
        else{
            submitBtn.attr("disabled", true);
            submitBtn.text('Max <?php echo e($max); ?>! Silahkan Rubah Jumblah');
            submitBtn.removeClass('btn-primary').addClass('btn-danger');
        }
    });
  });
</script>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('layouts.master', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>