

<?php $__env->startSection('title','Manage Requisition - Purcahse Requisition'); ?>
<?php $__env->startSection('style'); ?>
    <style>
        .check_label{
            padding: 5px;
        }
    </style>
<?php $__env->stopSection(); ?>

<?php $__env->startSection('content'); ?>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/jquery-confirm/3.3.4/jquery-confirm.min.css">

    <!-- Content Header (Page header) -->
    <section class="content-header">
        <div class="container-fluid">
            <div class="row mb-2">

            </div>
        </div><!-- /.container-fluid -->
    </section>
    <section class="content-header">
        <div class="container-fluid">
            <div class="row mb-2">
                <div class="col-sm-6">
                    <h1>Purchase Customized Report Search</h1>
                </div>
            </div>
        </div><!-- /.container-fluid -->
    </section>
    <section class="content-header">
        <div class="container-fluid">
            <div class="row mb-2">
                <div class="col-sm-6">
                </div>
                <div class="col-sm-6 text-right">
                    
                </div>
            </div>
        </div><!-- /.container-fluid -->
    </section>


    <section class="content no-print">
        <div class="container-fluid">
            
            <div class="col-lg-12 col-sm-8 col-md-6 col-xs-12">
                <div class="card card-primary card-outline">
                    <div class="card-body " style="padding-bottom:0">
                        
                     <form method="POST" action=<?php echo e(route('purchase.customized.report.serch')); ?>>
                        <?php echo csrf_field(); ?>

                        <div class="form-row">
                            
                            <div class="form-group col-md-3" >
                                <div>
                                    <div style= "padding-bottom : 10px"> Cost Center </div> 
                                    
                                    <select name="cost_center" id="category" class="form-control">
                                        <option value="">Cost Centre</option>
                                       
                                         <option value="1">L/C</option>   
                                         <option value="0">Overall Fund</option> 
                                        
                                    </select>
                                </div>
                                
                            </div>
    
    
                            <div class="form-group col-md-3" >
                                <div>
                                    <div style="padding-bottom : 10px"> Payment Mode </div>
                                    <select name="payment_mode" id="payment_mode" class="form-control">
                                        <option value="">Payment Mode</option>
                                       
                                         <option value="1">Cash</option>   
                                         <option value="0">On credit</option> 
                                    </select>
                                </div>
                                
                            </div>
    
                            <div class="form-group col-md-2" style="padding-top: 33px">
                                <button class="btn btn-info btn-md" type="submit"><i class="fa fa-search"></i> Search</button>
                                
                            </div>
                           
    
                        </div>
                    </form>
                        
                    </div>
                </div>
                <!-- /.card -->
            </div>
        </div>
    </section>



    



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

<?php $__env->startSection('style'); ?>
    <!-- DataTables -->
     <link rel="stylesheet" href="<?php echo e(asset('plugins/datatables/dataTables.bootstrap4.css')); ?>">

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

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


    <!-- DataTables -->
    <script src="<?php echo e(asset('plugins/datatables/jquery.dataTables.js')); ?>"></script>
    <script src="<?php echo e(asset('plugins/datatables/dataTables.bootstrap4.js')); ?>"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery-confirm/3.3.4/jquery-confirm.min.js"></script>

    <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>

    <!-- page script -->
    <script type="text/javascript">
        $(document).ready(function () {
            table = $("#myRequisitionTable").DataTable();
        });


          function Delete(id) {
            $.confirm({
                title: 'Confirm!',
                content: '<hr><strong class="text-danger">Are you sure to delete ?</strong><hr>',
                buttons: {
                    confirm: function () {
                        $.ajax({
                          headers: { 'X-CSRF-TOKEN' : '<?php echo e(csrf_token()); ?>' },
                          url: "<?php echo e(url('Inventory/delete-purchase-requisition')); ?>/"+id,
                          type: 'DELETE',
                          dataType: 'json',
                          data: {},
                          success:function(response) {
                            if(response.success){
                              $('#tr-'+id).fadeOut();
                            }else{
                              $.alert({
                                title:"Whoops!",
                                content:"<hr><strong class='text-danger'>Something Went Wrong!</strong><hr>",
                                type:"red"
                              });
                            }
                          }
                        });
                    },
                    cancel: function () {

                    }
                }
            });   
          }
    </script>

<script type="text/javascript">
    $.ajaxSetup({
        headers: {
            'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
        }
    });

    $(document).ready(function () {
     
        $('#category').on('change',function(e) {
         
         var cat_id = e.target.value;

         $.ajax({
               
               url:"<?php echo e(route('subcat')); ?>",
               type:"POST",
               data: {
                   cat_id: cat_id
                },
              
               success:function (data) {

                $('#subcategory').empty();

                $.each(data.subcategories[0].subcategories,function(index,subcategory){
                    
                    $('#subcategory').append('<option value="'+subcategory.id+'">'+subcategory.id+'</option>');
                })

               }
           })
        });

    });

</script> 


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

<?php echo $__env->make('layouts.fixed', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/welluugs/purchase.wellgrouperp.com/resources/views/inventory/goodsin/customized-report.blade.php ENDPATH**/ ?>