<?php $__env->startSection('content'); ?>
<!-- start page title -->

<div class="container-xxl flex-grow-1 container-p-y">
<?php if(isset($success)): ?>
        <div class="alert alert-success">
            <?php echo e($success); ?>

        </div>
    <?php elseif(isset($error)): ?>
        <div class="alert alert-danger">
           Minimal Penarikan Rp. 100.000
        </div>
    <?php endif; ?>

<div class="card mb-3">
    <div class="card-body">
        <h4 class="mb-3 header-title mt-0">Tarik Saldo Tokopay</h4>
        <form action="<?php echo e(route('tarik-saldo')); ?>" method="POST">
            <?php echo csrf_field(); ?>
            <div class="form-group">
                <div class="mb-3 row">
                    <label class="col-lg-2 col-form-label" for="nominal">Nominal Penarikan:</label>
                    <div class="col-lg-10">
                        <input type="number" class="form-control" name="nominal" id="nominal" required>
                        <?php if(isset($error)): ?>
                            <div class="text-danger">
                               <?php echo e($error); ?>

                            </div>
                        <?php endif; ?>
                    </div>
                </div>
            </div>
            <button type="submit" class="btn btn-primary">Tarik Saldo</button>
        </form>
    </div>
    </div>
    
    
<div class="card mb-3">
    <div class="card-body">
        <h4 class="mb-3 header-title mt-0">Daftar Penarikan</h4>
      <table class="table table-dark table-bordered table-striped m-0">
        <thead>
            <tr>
                <th>#ID</th>
                <th>Rekening</th>
                <th>Total Transfer</th>
                <th>Biaya Admin</th>
                <th>Status</th>
                <th>Tanggal & Waktu Dibuat</th>
                <th>Tanggal & Waktu Diupdate</th>
            </tr>
        </thead>
        <tbody>
            <?php $__currentLoopData = $withdrawals; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $withdrawal): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                <tr>
                    <td><?php echo e($withdrawal->id); ?></td>
                    <td><?php echo e($withdrawal->rekening); ?></td>
                    <td><?php echo e($withdrawal->total_transfer); ?></td>
                    <td><?php echo e($withdrawal->biaya_admin); ?></td>
                    <td><?php echo e($withdrawal->status); ?></td>
                    <td><?php echo e($withdrawal->created_at); ?></td>
                    <td><?php echo e($withdrawal->updated_at); ?></td>
                </tr>
            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
        </tbody>
    </table>
    </div>
    </div>
</div>


<?php $__env->stopSection(); ?>
<script>
$(document).ready(function() {
    setTimeout(function() {
        $('#loadingSpinnerBangjeff').addClass('d-none');
        $('#bangjeffTableContainer').removeClass('d-none');
    }, 500);
});
</script>

<script type="text/javascript">
    $(document).ready(function(){
        $('.table').DataTable();
    });
   
</script>



<?php echo $__env->make('main-admin', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/u870822285/domains/ramstopup.id/public_html/project/resources/views/components/admin/payment/tokopay/tariksaldo.blade.php ENDPATH**/ ?>