

<?php $__env->startSection('content'); ?>
<div class="row">
    <div class="col-lg-9 col-12 mx-auto">
        <?php if($errors->get('msgError')): ?>
          <div class="m-3  alert alert-warning alert-dismissible fade show" role="alert">
            <span class="alert-text text-white">
              <?php echo e($errors->first()); ?></span>
            <button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close">
              <i class="fa fa-close" aria-hidden="true"></i>
            </button>
          </div>
          <?php endif; ?>
          <?php if(session('success')): ?>
          <div class="m-3  alert alert-success alert-dismissible fade show" id="alert-success" role="alert">
            <span class="alert-text text-white">
              <?php echo e(session('success')); ?></span>
            <button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close">
              <i class="fa fa-close" aria-hidden="true"></i>
            </button>
          </div>
          <?php endif; ?>
        <div class="card card-body mt-4">
            <h6 class="mb-0">Add Withdraw Method</h6>
            <p class="text-sm mb-0">Fill Data</p>

            <form action="/withdrawal/method/create" method="POST">
            <?php echo csrf_field(); ?>
            
            <div class="col-sm-12 mt-4">
                <label for="categoryName" class="form-label">Select Withdrawal Category</label>
                <select class="form-control" name="category" id="choices-tag" placeholder="Select Tag" required>
                    <?php $__currentLoopData = $cat; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                    <option value="<?php echo e($item->id); ?>"><?php echo e($item->name); ?></option>
                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                </select>
            </div>

            
            <hr class="horizontal dark my-3">
            <label for="projectName" class="form-label">Redeem Title</label> 
            <input type="text" class="form-control" name="title" placeholder="Gift Card $5" required>

            <hr class="horizontal dark my-2">
            <label for="projectName" class="form-label">Coin Required for Redeem</label>
            <input type="number" class="form-control" name="points" placeholder="1000" required>
            
            <hr class="horizontal dark my-2">
            <label for="projectName" class="form-label">Input Type</label>
            <select class="form-control" name="input_type" id="choices-tag" placeholder="Input Type" required>
                <option value="text">TEXT</option>
                <option value="number">NUMBER</option>
                <option value="email">EMAIL</option>
            </select>     
             
            <hr class="horizontal dark my-2">
            <label for="projectName" class="form-label">Text Placeholder</label>
            <input type="text" class="form-control" name="placeholder" placeholder="Enter Email" required>

            <hr class="horizontal dark my-2">
            <label for="projectName" class="form-label">Referral Required for Redeem (0= not Required)</label>
            <input type="number" class="form-control" name="refer" value="0" required>
            
            <hr class="horizontal dark my-2">
            <label for="projectName" class="form-label">Redeem Quantity (Note: 00 = Unlimited)</label>
            <input type="text" class="form-control" name="quantity" value="00" placeholder="20" required>

           
            <hr class="horizontal dark my-2">
            <label for="projectName" class="form-label">Task Complete Required (Note: Before Redeem user need to complete selected All Task)</label>
            <select class="form-control" name="task" id="choices-tag2" placeholder="Task Complete Required" REQUIRED>
                <option value="0" selected="0">NO TASK REQUIRED</option>
                <option value="1">COMPLETE SPIN, SCRATCH TO UNLOCK</option>
                <option value="2">COMPLETE SPIN, SCRATCH, MATH QUIZ TO UNLOCK</option>
                <option value="3">COMPLETE SPIN, SCRATCH, READ ARTICLE TO UNLOCK</option>
                <option value="4">COMPLETE SPIN, SCRATCH, READ ARTICLE, VIDEOZONE TO UNLOCK</option>
            </select> 
                  
            
            <hr class="horizontal dark my-2">
            <label for="projectName" class="form-label">Available in Country (Note: all = Available in Country)</label>
            <input type="text" class="form-control" name="country" value="all" placeholder="all or IN,CS">
            

            <div class="d-flex justify-content-end mt-4">
                <a href="<?php echo e(url('/withdrawal')); ?>" type="button" name="button" class="btn btn-light m-0">BACK TO LIST</a>
                
              <button type="submit" name="button" class="btn bg-gradient-info m-0 ms-2">Add </button>
            </div>
            </form>
        </div>
    </div>
</div>
<?php $__env->stopSection(); ?>

<?php $__env->startPush('js'); ?>
<script src="<?php echo e(URL::asset('assets/js/plugins/choices.min.js')); ?>"></script>
<script>
    if (document.getElementById('editor')) {
        var quill = new Quill('#editor', {
            theme: 'snow' // Specify theme in configuration
        });
    }

    if (document.getElementById('choices-tag')) {
        var tag = document.getElementById('choices-tag');
        const example = new Choices(tag);
    }
    
    if (document.getElementById('choices-tag2')) {
        var tag = document.getElementById('choices-tag2');
        const example = new Choices(tag);
    }
</script>
<?php $__env->stopPush(); ?>
<?php echo $__env->make('user_type.auth', ['parentFolder' => 'withdrawal', 'childFolder' => ''], \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /Users/souheiljabbour/Sites/lebara.test/resources/views/withdrawal/addmethod.blade.php ENDPATH**/ ?>