HEX
Server: Apache/2.4.41 (Amazon) OpenSSL/1.0.2k-fips PHP/5.6.40
System: Linux ip-172-31-40-18 4.14.146-93.123.amzn1.x86_64 #1 SMP Tue Sep 24 00:45:23 UTC 2019 x86_64
User: apache (48)
PHP: 5.6.40
Disabled: NONE
Upload Files
File: /var/www/html/punjabcabs/storage/framework/views/41736766d5182b9554f06e6d341d4709fe12adee.php
<?php $__env->startSection('title', 'Upload CSV | '); ?>
<?php $__env->startSection('content'); ?>
<div class="content-area py-1">
<div class="container-fluid">
  <div class="row bg-title">
    <div class="col-lg-4 col-md-4 col-sm-4 col-xs-12">
        <h4 class="page-title"><?php echo app('translator')->get('admin.payout.upload_csv'); ?></h4>
        <?php if($message != ''&& $color != ''){ ?>
          <div style="color: <?=$color?>" class="flashdata">
            <h5><?=$message?></h5>
          </div>
        <?php } ?>
    </div>
  </div>
  <form class="form-horizontal" action="<?php echo e(route('admin.upload-csv')); ?>" method="POST" enctype="multipart/form-data" role="form">
    <?php echo e(csrf_field()); ?>

    <div class="form-group row">
      <label for="promo_code" class="col-xs-2 col-form-label">CSV *</label>
      <div class="col-xs-6">
        <input class="form-control" autocomplete="off" type="file" name="csv_file" id="csv_file" required>
        <span style="color: red" id="alertSpan"></span>
      </div>
    </div>
    <div class="form-group row">
      <label for="zipcode" class="col-xs-2 col-form-label"></label>
      <div class="col-xs-6">
        <button type="submit" name="submit" class="btn btn-success"> <i class="fa fa-check"></i> <?php echo app('translator')->get('admin.payout.upload_csv'); ?></button>
        <a href="<?php echo e(route('admin.dashboard')); ?>" class="btn btn-inverse waves-effect waves-light"><?php echo app('translator')->get('admin.member.cancel'); ?></a>
      </div>
    </div>
  </form>
</div>
<?php $__env->stopSection(); ?>
<?php $__env->startSection('scripts'); ?>

<script>
  $("#csv_file").change(function () {
    var fileExtension = ['csv'];
    if ($.inArray($(this).val().split('.').pop().toLowerCase(), fileExtension) == -1) {
      $('#alertSpan').text("Only format is allowed : "+fileExtension.join(', '));
      $("#csv_file").val('');
    }else{
      $('#alertSpan').text('');
    }
  });
  $(window).bind("load", function () {
    window.setTimeout(function () {
      $(".flashdata").fadeTo(500, 0).slideUp(500, function () {
        $(this).remove();
      });
    }, 2000);
  });
</script>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('admin.layout.base', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>