Server : Apache System : Linux host44.registrar-servers.com 4.18.0-513.18.1.lve.2.el8.x86_64 #1 SMP Sat Mar 30 15:36:11 UTC 2024 x86_64 User : vapecompany ( 2719) PHP Version : 7.4.33 Disable Function : NONE Directory : /home/vapecompany/demo.vapecompany.com.bd/storage/framework/views/ |
Upload File : |
<?php $__env->startSection('content'); ?> <style type="text/css"> @media screen and (max-width: 767px){ #dtables_filter{ margin-top: 10px; } } </style> <!-- ============================================================== --> <!-- Page wrapper --> <!-- ============================================================== --> <div class="page-wrapper"> <!-- ============================================================== --> <!-- Bread crumb and right sidebar toggle --> <!-- ============================================================== --> <div class="page-breadcrumb"> <div class="row"> <div class="col-5 align-self-center"> <h4 class="page-title">Stock Summary</h4> <div class="d-flex align-items-center"> <nav aria-label="breadcrumb"> <ol class="breadcrumb"> <li class="breadcrumb-item"><a href="#">Home</a></li> <li class="breadcrumb-item active" aria-current="page">Reports</li> </ol> </nav> </div> </div> </div> </div> <!-- ============================================================== --> <!-- End Bread crumb and right sidebar toggle --> <!-- ============================================================== --> <!-- ============================================================== --> <!-- Container fluid --> <!-- ============================================================== --> <div class="container-fluid"> <!-- ============================================================== --> <!-- Start Page Content --> <!-- ============================================================== --> <div class="row"> <div class="col-md-12"> <div class="card"> <div class="card-body"> <h4 class="card-title">Search Stock Summary</h4> <div id="education_fields" class=" m-t-20"></div> <form id="search" method="GET" class=""> <div class="row"> <!-- <div class="col-sm-12 col-lg-4"> <div class="form-group row"> <label for="email2" class="col-sm-5 text-right control-label col-form-label">Summary Type</label> <div class="col-sm-7"> <select id="by_duration" name="by_duration" class="form-control select2"> <option value="c1" >Product Wise</option> <option value="c2" >Category Wise</option> <option value="c3" >Supplier Wise</option> </select> </div> </div> </div> --> <!-- <div class="col-sm-12 col-lg-4"> <div class="form-group row"> <label for="email2" class="col-sm-4 text-right control-label col-form-label">Start Date</label> <div class="col-sm-8"> <input value="<?php echo e($s_date); ?>" autocomplete="off" id="start_date" name="start_date" type="text" class="form-control mydatepicker" placeholder="dd/mm/yyyy"> </div> </div> </div> <div class="col-sm-12 col-lg-4"> <div class="form-group row"> <label for="email2" class="col-sm-3 text-right control-label col-form-label">End Date</label> <div class="col-sm-9"> <input value="<?php echo e($e_date); ?>" autocomplete="off" id="end_date" name="end_date" type="text" class="form-control mydatepicker" placeholder="dd/mm/yyyy"> </div> </div> </div> --> <div class="col-sm-12 col-lg-4" id="showcategory"> <div class="form-group row"> <label for="email2" class="col-sm-3 text-right control-label col-form-label">category</label> <div class="col-sm-9"> <select onchange="get_product();" name="category" id="category" class="form-control select2"> <option value="all">Select</option> <?php $__currentLoopData = $categories; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $category): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <option value="<?php echo e($category->category_id); ?>"><?php echo e($category->category_name); ?></option> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </select> </div> </div> </div> <div class="col-sm-12 col-lg-4" id="showProduct"> <div class="form-group row"> <label for="email2" class="col-sm-3 text-right control-label col-form-label">Product</label> <div class="col-sm-9"> <select name="product" id="product" class="form-control select2"> <option value="">Select Product</option> </select> </div> </div> </div> <div style="display: none" class="col-sm-12 col-lg-4" id="showSupplier"> <div class="form-group row"> <label for="email2" class="col-sm-3 text-right control-label col-form-label">Supplier</label> <div class="col-sm-9"> <select name="supplier" id="supplier" class="form-control select2"> <option value="">Select Supplier</option> <?php $__currentLoopData = $suppliers; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $category): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <option value="<?php echo e($category->supplier_id); ?>"><?php echo e($category->supplier_name); ?></option> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </select> </div> </div> </div> <div style="display: none" class="col-sm-12 col-lg-4" id="showCNF"> <div class="form-group row"> <label for="email2" class="col-sm-3 text-right control-label col-form-label">C&F</label> <div class="col-sm-9"> <select name="cnf" id="cnf" class="form-control select2"> <option value="">Select C&F</option> <?php $__currentLoopData = $cnfs; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $category): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <option value="<?php echo e($category->cnf_id); ?>"><?php echo e($category->cnf_name); ?></option> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </select> </div> </div> </div> <div class="col-sm-2"> <div class="form-group"> <button id="btnsearch" class="btn btn-success" type="submit" >Search</button> </div> </div> </div> </form> </div> </div> </div> <div class="col-12" id="search_result"> <?php echo $__env->make('backend.reports.tables.stock_summary_c1', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?> </div> </div> <!-- ============================================================== --> <!-- End PAge Content --> <!-- ============================================================== --> <!-- ============================================================== --> <!-- Right sidebar --> <!-- ============================================================== --> <!-- .right-sidebar --> <!-- ============================================================== --> <!-- End Right sidebar --> <!-- ============================================================== --> </div> <!-- ============================================================== --> <!-- End Container fluid --> <?php $__env->stopSection(); ?> <?php $__env->startSection('script'); ?> <link rel="stylesheet" type="text/css" href="<?php echo e(url('/public/backend/css/bootstrap-datepicker.min.css')); ?>"> <script src="<?php echo e(url('/public/backend/js/bootstrap-datepicker.min.js')); ?>"></script> <script src="<?php echo e(url('/public/backend/js/jquery.validate.min.js')); ?>"></script> <script type="text/javascript"> $('.mydatepicker').datepicker({ format: 'yyyy-mm-dd', autoclose: true, todayHighlight: true }); function get_product(){ var id=$('#category').val(); console.log("<?php echo e(url('admin/get_productById')); ?>/"+id); $.ajax({ type : 'POST', url : "<?php echo e(url('admin/get_productById')); ?>", data:{category_id:id}, dataType: 'json', success : function (data) { //var d=JSON.parse(data); var color="<option value=''>Select Product</option>"; $.each(data,function(){ ///console.log(this.product_id); color +="<option value='"+this.product_id+"'> "+this.product_name+" </option>"; }); // console.log(color); $('#product').html(color); }, error : function (data) { //console.log(data); } }); } //search $("#search").validate({ rules: { start_date: { required: true, }, }, submitHandler: submitForm }); function submitForm(url='') { event.preventDefault(); getdata(); return false; } $('#category,#cnf,#supplier,#product,#by_duration,#category,#start_date,#end_date').change(function(){ console.log(this); if(this.id=="by_duration"){ if(this.value == 'c1'){ $('#showcategory').show(); $('#showProduct').show(); $('#showCategory').hide(); $('#showSupplier').hide(); $('#showCNF').hide(); }else if(this.value == 'c2'){ $('#showcategory').hide(); $('#showProduct').hide(); $('#showCategory').show(); $('#showSupplier').hide(); $('#showCNF').hide(); }else{ $('#showcategory').hide(); $('#showProduct').hide(); $('#showCategory').hide(); $('#showSupplier').show(); $('#showCNF').show(); } } getdata(); }); //end search function getdata(page = 1){ //var data1 = new FormData(document.getElementById('search')); var s_date= $('#start_date').val(); var e_date= $('#end_date').val(); var category= $('#category').val(); var category= $('#category').val(); var product= $('#product').val(); var by_duration= $('#by_duration').val(); var cnf= $('#cnf').val(); var supplier= $('#supplier').val(); //if(url == ''){ var url="<?php echo e(url('admin/reports/stock_summary')); ?>?page="+page+"&s_date="+s_date+"&e_date="+e_date+"&by_duration="+by_duration+"&category="+category+"&product="+product+"&category="+category+"&cnf="+cnf+"&supplier="+supplier; // } console.log(url); $.ajax({ type : 'GET', url : url, data : {s_date:s_date}, cache:false, //datatype: "json", contentType: false, processData: false, success : function (data) { //console.log(data); // console.log(s_date); $("#search_result").html(data); },error: function(response) { console.log(response); } }); } $(document).on('click', '.pagination a',function(event) { event.preventDefault(); $('li').removeClass('active'); $(this).parent('li').addClass('active'); var myurl = $(this).attr('href'); var page=$(this).attr('href').split('page=')[1]; getdata(page); }); </script> <?php $__env->stopSection(); ?> <?php echo $__env->make('backend.layout.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/vapecompany/Demo.vapecompany.com.bd/resources/views/backend/reports/stock_summary.blade.php ENDPATH**/ ?>