

<head>
  
	<meta charset="utf-8">
	<meta name="viewport" content="width=device-width, initial-scale=1">
	<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.0/css/bootstrap.min.css">
	<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
	<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.0/js/bootstrap.min.js"></script>
  
</head>

<?php $__env->startSection('breadcrumb'); ?>
   ##parent-placeholder-6e5ce570b4af9c70279294e1a958333ab1037c86##
   <li>transfer penjualan to XLS</li>
<?php $__env->stopSection(); ?>


<?php $__env->startSection('content'); ?>
<br>

<div class="container-fluid">
    <div class="box">
    
    <div class="box-body">
    
    <div style="padding:10px 30px;">
    
<form class="form-horizontal" data-toggle="validator" method="patch" id="form-report">    
<?php echo e(csrf_field()); ?> <?php echo e(method_field('POST')); ?>       
    
    <h4>Transfer data Penjualan to XLS </h4>
    <br>
        <div class="form-group">
            <br>
            <label>Tanggal</label>
			<input id="awal" type="date" class="form-control" name="awal" autofocus required>
        </div>
    	
    	<div class="form-group">
    	    <label>Option</label>
    	    <select id="opt" name="opt" type="text" class="form-control" required autofocus>
    	        <option value="1">NO. Ganjil</option>
    	        <option value="2">NO. Genap</option>
    	    </select>
    	</div>
    	<br><br>
    	<div class="text-center"> 
    		<a onclick="exportExcell()" class="btn btn-primary"><i class="fa fa-file-excel-o"></i> Export to Excell </a>
    		<button type="button" class="btn btn-success" onclick="window.history.back()"><i class="fa fa-undo"></i> Close </button>
    		<br>
    	</div>
    	
    	<br><br>
</form>

            </div>
         </div>
    </div>
</div>

<?php $__env->stopSection(); ?>

<?php $__env->startSection('script'); ?>

<script type="text/javascript">

var table, tgl1, tgl2, cus, tbl_report;

$(document).ready(function(){

})

function exportExcell(){
	
	tgl1=$('#awal').val();
    opt=$('#opt').val();
    
	_url="<?php echo e(DIR_APP); ?>penjualan/"+tgl1+"/"+opt+"/transfer_xls2";
	window.open(_url,'_blank');		//open new tab
	
    $('#form-report').attr('action', "<?php echo e(DIR_APP); ?>penjualan/transfer_xls1").submit();       //--> open new windows
}

</script>

<?php $__env->stopSection(); ?>
<?php echo $__env->make('layouts.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/myprojeq/public_html/wawan/resources/views/penjualan/index_transfer.blade.php ENDPATH**/ ?>