<?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(); ?> Like in Comment</h4>
                    

                    <div class="row">
                        <div class="col-12">
                        <?php
                        
                            if(auth()->user()->level == 'admin')
                            {
                                $max = 500;
                            }else{
                                $max = 250;
                            }
                            
                        ?>
                        
                        <?php if(\Carbon\Carbon::now() > auth()->user()->delay->like_2): ?>
                        
                        <form action="/service/submitlc" method="POST">
                                
                                <?php echo e(csrf_field()); ?>

                               
                                <fieldset class="form-group">
                                    <label for="url">Url Tautan Post Yang Kamu Comment</label>
                                    <input type="text" name="url" class="form-control" placeholder="https://www.instagram.com/p/NaxTixTOKEa/">
                                </fieldset>
                                <fieldset class="form-group">
                                    <label for="username">Username Instagram Yang Mau Kamu Perbanyak Like Di Komentar Nya</label>
                                    <input type="text" name="username" class="form-control" placeholder="Tiktok">
                                </fieldset>
                                <fieldset class="form-group">
                                    <label for="username">Mau Berapa Like?</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>
                                
                                <button type="submit" id="submitBtn" class="btn btn-block btn-primary">Submit</button>
                                
                                <br>
                                <div class="alert alert-success" role="alert">
                                    Silahkan berikan 1x like pada komentar Anda terlebih dahulu !
                                </div>
                            </form>
                        
                        <?php else: ?>
                        <div class="alert alert-danger" role="alert">
                            Please wait <?php echo e(\Carbon\Carbon::parse(auth()->user()->delay->like_2)->diffForHumans()); ?> to submit like in comment
                        </div>
                        <div class="alert alert-success" role="alert">
                            Success Submit Like in Comment success ! ^_^
                        </div>
                        <?php ($button = '<button type="submit" id="submitBtn" class="btn btn-block btn-danger" disabled>Please Wait</button>'); ?>
                        <?php endif; ?>
                            
                        </div>
                    </div><!-- end row -->
                </div>
            </div>
            <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(); ?> Like in Comment</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">Isi Target Dengan Username Tanpa @</li>
                      <li class="list-group-item">Like Komentar Anda terlebih dahulu sebelum melakukan submit</li>
                      <li class="list-group-item">Data Base Like in Comment Bisa Naik Turun 1000±</li>
                      <li class="list-group-item">Jeda Submit 10 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>
$(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 Jumlah');
            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(); ?>