

<?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 Contest</h6>
            <p class="text-sm mb-0">Fill Data</p>

            <form action="/contest/store" method="POST"  enctype="multipart/form-data">
            <?php echo csrf_field(); ?>
            
            
            <div class="form-group">
                <label for="recipient-name" class="form-label">Select Contest Type</label>
                <select name="type" class="form-control" required>
                    <option value="refer">Refer Task ( User need to invite x user and get bonus )</option>
                    <option value="level">Reach Level ( User need to compelte x level and to get bonus )</option>
                </select>
            </div>
            
            <div class="row">
                <div class="col-3">
                    <div class="form-group">
                        <label for="recipient-name" class="form-label">Title English</label>
                        <input type="text" class="form-control" name="title_en" placeholder="Invite 5 Friend /Reach at level 5" required>
                    </div>
                </div>
                
                <div class="col-3">
                    <div class="form-group">
                        <label for="recipient-name" class="form-label">Title Arabic</label>
                        <input type="text" class="form-control" name="title_ar" placeholder="Invite 5 Friend /Reach at level 5" required>
                    </div>
                </div>
                
                <div class="col-3">
                    <div class="form-group">
                        <label for="recipient-name" class="form-label">Title Indonesian</label>
                        <input type="text" class="form-control" name="title_in" placeholder="Invite 5 Friend /Reach at level 5" required>
                    </div>
                </div>
                
                <div class="col-3">
                    <div class="form-group">
                        <label for="recipient-name" class="form-label">Title French</label>
                        <input type="text" class="form-control" name="title_fr" placeholder="Invite 5 Friend /Reach at level 5" required>
                    </div>
                </div>
                
            </div>
            
            <div class="row">
                <div class="col-3">
                    <div class="form-group">
                        <label for="recipient-name" class="form-label">Title German</label>
                        <input type="text" class="form-control" name="title_de" placeholder="Invite 5 Friend /Reach at level 5" required>
                    </div>
                </div>
                
                <div class="col-3">
                    <div class="form-group">
                        <label for="recipient-name" class="form-label">Title Spanish</label>
                        <input type="text" class="form-control" name="title_es" placeholder="Invite 5 Friend /Reach at level 5" required>
                    </div>
                </div>
                
                <div class="col-3">
                    <div class="form-group">
                        <label for="recipient-name" class="form-label">Title Vietnamese</label>
                        <input type="text" class="form-control" name="title_vi" placeholder="Invite 5 Friend /Reach at level 5" required>
                    </div>
                </div>
                
                <div class="col-3">
                    <div class="form-group">
                        <label for="recipient-name" class="form-label">Title Italian</label>
                        <input type="text" class="form-control" name="title_it" placeholder="Invite 5 Friend /Reach at level 5" required>
                    </div>
                </div>
                
            </div>
            
            <div class="row">
                <div class="col-3">
                    <div class="form-group">
                        <label for="recipient-name" class="form-label">Title Bangla</label>
                        <input type="text" class="form-control" name="title_bn" placeholder="Invite 5 Friend /Reach at level 5" required>
                    </div>
                </div>
               
                
            </div>
            
            
            

            <div class="form-group">
                <label for="recipient-name" class="form-label">Icon </label>
                <input type="file" class="form-control" name="icon" required>
            </div>

            <div class="form-group">
                <label for="recipient-name" class="form-label">(Refer/Level) Required</label>
                <input type="number" class="form-control" name="task_require" placeholder="5" required>
            </div>

            
            <div id="date" class="row">
                <div class="form-group col-6">
                    <label for="recipient-name" class="form-label">Start From</label>
                    <input type="date" class="form-control" name="start_from" id="start_from" placeholder="Pick Start Date">
                </div>
                
                 <div class="form-group col-6">
                    <label for="recipient-name" class="form-label">Valid Till</label>
                    <input type="date" class="form-control" name="expired_at" id="expired_at" placeholder="Pick End Date">
                </div>
            </div>

            <div class="form-group">
                <label for="recipient-name" class="form-label">After Complete Contest user get Coin</label>
                <input type="number" class="form-control" name="coin" placeholder="10" required>
            </div>
                    
            <div class="d-flex justify-content-end mt-4">
                <a href="<?php echo e(url('/contest')); ?>" 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">Create Contest</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 src="//cdn.ckeditor.com/4.14.1/standard/ckeditor.js"></script>
<script>
     $(document).ready(function () {
        $("#alert-success").delay(3000).slideUp(300);
    });

    if (document.getElementById('choices-tag')) {
        var tag = document.getElementById('choices-tag');
        const example = new Choices(tag);
    }

    
</script>
<?php $__env->stopPush(); ?>
<?php echo $__env->make('user_type.auth', ['parentFolder' => '', 'childFolder' => ''], \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/techufct/public_html/rewardpoint.techappinnovation.in/resources/views/contest/add.blade.php ENDPATH**/ ?>