<?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 style="margin-bottom:0;">
                  <?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; ?>
            <?php if(isset($errors) && count($errors) != 0): ?>
              <div class="col-md-12">
                <div class="alert alert-danger" role="alert">
                  <ul style="margin-bottom:0;">
                  <?php $__currentLoopData = $errors->all(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $error): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                    <li><?php echo e($error); ?></li>
                  <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                  </ul>
                </div>
              </div>
            <?php endif; ?>
            <div class="col-md-6 col-xs-12">
              <?php if($data = session('auto_extend')): ?>
              <div class="card-box" style="overflow:hidden;position:relative">
                <div class="text-center" style="width:100%;height:100%;position:absolute;z-index:99;margin: -20px;background:#fff;display:none;" id="loader-submit">
                    <i class="fa fa-spinner fa-pulse fa-3x fa-fw" style="font-size: 60px;margin-top: 35%;"></i>
                </div>
                  <h4 class="header-title m-t-0 m-b-30">Transfer Uang ada ke rek tujuan (Harap transfer sesuai nominal yang tertera)</h4>
                  <ul class="list-group" style="margin-bottom:20px;">
                    <li class="list-group-item">Id: <?php echo e($data['id']); ?></li>
                    <li class="list-group-item">Username: <?php echo e($data['username']); ?></li>
                    <li class="list-group-item">Tujuan Transfer: <?php echo e($data['tujuan']); ?></li>
                    <li class="list-group-item">Jumlah Transfer: Rp <?php echo e(number_format($data['jumlah'],0)); ?></li>
                    <li class="list-group-item">Durasi Hari : <?php echo e(number_format($data['durasi'],0)); ?> Hari</li>
                    <li class="list-group-item">Tanggal Transaksi: <?php echo e($data['tanggal']); ?></li>
                    <li class="list-group-item">Keterangan: <?php echo e($data['keterangan']); ?></li>
                  </ul>
                  <div class="row">
                      <div class="col-md-6 text-center">
                        <form action="<?php echo e(url('/user/auto_extend/confirm')); ?>" method="POST">
                          <?php echo e(csrf_field()); ?>

                          <fieldset class="form-group">
                            <button type="submit" onclick="submitDisabled(this)" class="btn btn-block btn-outline-success btn-rounded waves-light waves-effect">Confirm</button>
                          </fieldset>
                        </form>
                      </div>
                      <div class="col-md-6 text-center">
                        <form action="<?php echo e(url('/user/auto_extend/back')); ?>" method="POST">
                          <?php echo e(csrf_field()); ?>

                          <fieldset class="form-group">
                            <button type="submit" class="btn btn-block btn-outline-danger btn-rounded waves-light waves-effect">Back</button>
                          </fieldset>
                        </form>
                      </div>
                    </div>
              </div>
              <?php else: ?>
              <div class="card-box">
                  <h4 class="header-title m-t-0 m-b-30">Tambah Durasi</h4>
                  <div class="row">
                      <div class="col-12">
                          <form action="<?php echo e(url('user/auto_extend')); ?>" method="POST">
                              <?php echo e(csrf_field()); ?>


                              <fieldset class="form-group">
                                  <label for="durasi">Durasi</label>
                                  <select class="form-control" id="durasi" name="durasi">
                                    <option value="3">3 Hari</option>
                                    <option value="7">1 Minggu</option>
                                    <option value="14">2 Minggu</option>
                                    <option value="30">1 Bulan</option>
                                  </select>
                              </fieldset>

                              <fieldset class="form-group">
                                  <label for="method">Payment Method</label>
                                  <select class="form-control" id="method" name="method">
                                    <option value="bca">BANK BCA</option>
                                  </select>
                              </fieldset>

                              <button type="submit" class="btn btn-primary btn-block">Submit</button>

                          </form>
                      </div>
                  </div><!-- end row -->
              </div>
              <?php endif; ?>
            </div>
            <div class="col-md-6 col-xs-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(); ?>ADD DURASI OTOMATIS</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">Jika ingin menambah durasi secara otomatis , silahkan pilih durasi </li>
                  <li class="list-group-item">Pilih method pembayaran , lewat saldo atau bank </li>
                  <li class="list-group-item">setelah itu kirim uang anda ke tujuan transfer</li>
                  <li class="list-group-item">jika sudah terkirim tekan tombol Confirm</li>
                  <li class="list-group-item">jika anda ingin membatalkan tekan tombol Back</li>
                  <li class="list-group-item">Pastikan Kamu Men Transfers Nominal Yang Sesuai Dengan 3 Digit Akhir</li>
                </ul>
              </div>
            </div>
          </div>
        <!-- end row -->


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

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

<?php $__env->startSection('js'); ?>
<script>
  var resizefunc = [];
</script>
<?php $__env->stopSection(); ?>

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