	<?php $this->load->view("common/header"); ?>
	<!-- end: HEAD -->
     
		<style type="text/css">
			.table > thead:first-child > tr:first-child > th, .table > thead:first-child > tr:first-child > td, .table-striped thead tr.primary:nth-child(2n+1) th {
			    background-color: #428bca;
			    border-color: #357ebd;
			    border-top: 1px solid #357ebd;
			    color: white;
			    text-align: center;
			}

		</style>
        <link rel="stylesheet" href="<?php echo asset_url();?>css/buttons.dataTables.min.css" type="text/css" />
<style type="text/css">
.dt-button-collection {
	font-size: 1.4em;
}
.dt-button-collection .active span:after {
	font-family: FontAwesome;
	content: " \f00c";
	text-align: right
}
a.dt-button, button.dt-button, div.dt-button, .dt-buttons {
	font-size: .83em;
	float: right!important;
	/*  background-color:#e9e9e9;
    background-image:linear-gradient(to bottom,#fff 0,#e9e9e9 100%);*/
		
	margin-left: .3em;
}
</style>
		<!-- end: CSS REQUIRED FOR THIS PAGE ONLY -->
	<!-- end: HEAD -->
	<!-- start: BODY -->
	<body>
		<!-- start: HEADER -->
		<div class="navbar navbar-inverse navbar-fixed-top">
			<!-- start: TOP NAVIGATION CONTAINER -->
			<div class="container">
				<div class="navbar-header">
					<!-- start: RESPONSIVE MENU TOGGLER -->
					<button data-target=".navbar-collapse" data-toggle="collapse" class="navbar-toggle" type="button">
						<span class="clip-list-2"></span>
					</button>
					<!-- end: RESPONSIVE MENU TOGGLER -->
					<!-- start: LOGO -->
					<?php $this->load->view("common/logo"); ?>
					<!-- end: LOGO -->
				</div>
				<div class="navbar-tools">
					<!-- start: TOP NAVIGATION MENU -->
				<?php $this->load->view("common/notifications.php"); ?>
					<!-- end: TOP NAVIGATION MENU -->
				</div>
			</div>
			<!-- end: TOP NAVIGATION CONTAINER -->
		</div>
		<!-- end: HEADER -->
		<!-- start: MAIN CONTAINER -->
		<div class="main-container">
			<div class="navbar-content">
				<!-- start: SIDEBAR -->
				<?php $this->load->view("common/navigation"); ?>
				<!-- end: SIDEBAR -->
			</div>
			<!-- start: PAGE -->
			<div class="main-content">
				<!-- end: SPANEL CONFIGURATION MODAL FORM -->
				<div class="container">
					<!-- start: PAGE HEADER -->
					<div class="row">
						<div class="col-sm-12">
							<!-- start: PAGE TITLE & BREADCRUMB -->
							<ol class="breadcrumb">
								<li>
									<a href="<?php echo base_url('dashboard'); ?>">
										 Dashboard 
									</a>
								</li>
                                <li>
									<a href="#">
										 Estimate 
										 <?php $cmn = new $this->Common_Model(); if($cmn->check_permission(113,$this->session->userdata( 'ss_group_id' ), 1 )){echo " S";} ?>
									</a>
								</li>
                                
								<li class="active">
									Estimate  Details
								</li>
								<li class="search-box">
									<form class="sidebar-search">
										<div class="form-group">
											<input type="text" placeholder="Start Searching...">
											<button class="submit">
												<i class="clip-search-3"></i>
											</button>
										</div>
									</form>
								</li>
							</ol>
							<div class="page-header">
								<h3>Estimate Details</h3>
							</div>

                            <p>Please use the table below to navigate or filter the results. </p>
						</div>
					</div>
					<!-- end: PAGE HEADER -->
					<!-- start: PAGE CONTENT 
                    <!-- start grid -->
                    <div class="row">
						<div class="col-md-12">
							<!-- start: DYNAMIC TABLE PANEL -->
							<div class="panel panel-default">
								<div class="panel-heading">
									<i class="fa fa-external-link-square"></i>
									Estimate Details  
								</div>
								<div class="panel-body">
								    <div id="error"></div>
								   <!-- <input type="button" onClick="printDiv('printableArea')" value="Print product block summary" class="pull-right"/>-->
            <div id="printableArea">
              <div id="printableArea">
                <!--<div class="page-header">
                  <h3>Product Block Summary  </h3>
                </div>-->
                <table class="table table-bordered table-condensed table-hover table-striped dataTable" id="">
                
                  <tr>
                    <th> Estimation No</th>
                    <td><div id="no_of_products"><?php echo $details['pcem_id_ref_no']; ?></div></td>
                  </tr>
                   <tr>
                    <th> Order No</th>
                    <td><div id="no_of_products"><?php echo $details['brm_ref_no']; ?></div></td>
                  </tr>
                   <tr>
                    <th> Created By</th>
                    <td><div id="no_of_products"><?php echo $details['user_first_name']; ?></div></td>
                  </tr>
                    <tr>
                    <th> Created On</th>
                    <td><div id="no_of_products"><?php echo $details['pcem_date_time']; ?></div></td>
                  </tr>
                   <tr>
                    <th width="50%">Last Modified By </th>
                    <td width="50%"><div id="cost-tbl"><?php echo $details['modify_by']; ?></div></td>
                  </tr>
                  <tr>
                    <th width="50%">Last Modified On </th>
                    <td width="50%"><div id="cost-tbl"><?php echo $details['last_modify_on']; ?></div></td>
                  </tr>
                  <tr>
                    <th>Estimated  Cost</th>
                    <td><div id="sales-rtn-val-tbl"> Rs. <?php echo $details['pcem_estimated_total_cost']; ?></div></td>
                  </tr>
                  <tr>
                    <th>Warehouse</th>
                    <td><div id="sales-rtn-val-tbl"><?php echo $details['warehouse_name']; ?></div></td>
                  </tr>
                   <tr>
                    <th>Estimate Status</th>
                    <td><div id="sales-rtn-val-tbl"><?php if($details['pcem_staus']==1){ echo "Completed";}else{echo "Pending";} ?></div></td>
                  </tr>
                   <tr>
                    <th>Approval Status</th>
                    <td><div id="sales-rtn-val-tbl"><?php if($details['pcem_approval_status']==1){ echo "Approved";}else{echo "Pending";} ?></div></td>
                  </tr>
                   <tr>
                    <th>Approval On</th>
                    <td><div id="sales-rtn-val-tbl"><?php echo $details['pcem_approval_on'];?></div></td>
                  </tr>
                   <tr>
                    <th>Approval By</th>
                    <td><div id="sales-rtn-val-tbl"></div></td>
                  </tr>
                  <tr>
                    <th>Note</th>
                    <td><div id="sales-rtn-val-tbl"><?php echo $details['pcem_note']; ?></div></td>
                  </tr>
                  
                  
                 
                </table>
              </div>
            </div>
            	<div class="form-group">
            <hr>
            <h3>Estimate batch summary</h3>
									<table class="table table-bordered table-condensed table-hover table-striped dataTable" id="products_table">
										<thead>
								            <tr>
												<th>Product Code</th>
												<th>Product Name</th>
												<th>Formula </th></th>
												<th>Formula Qty</th>
												<th>Allocated Qty</th>
												<th>Extra Output</th>
												<th>Final Output</th>
												<th>No Of Batch</th>
								            </tr>
								        </thead>
								        <tbody>
								            <?php foreach($item_list as $il){?>
								            	 <tr>
								            	     <td><?php echo $il['product_code']; ?></td>
								            	     <td><?php echo $il['product_name']; ?></td>
								            	     <td><?php echo $il['product_block_code']; ?></td>
								            	     <td><?php echo $il['batch_qty']; ?></td>
								            	     <td><?php echo $il['allocated_qty']; ?></td>
								            	     <td><?php echo $il['extra_output_qty']; ?></td>
								            	     <td><?php echo $il['final_output_qty']; ?></td>
								            	     <td><?php echo $il['no_of_batches']; ?></td>
								            	   
								            	 </tr>
								            
								            
								            
								                
								           <?php }?>
								            
								            
								            
								        </tbody>
								        <tfoot>
											<tr>
													<th>Product Code</th>
												<th>Product Name</th>
												<th>Formula </th></th>
												<th>Formula Qty</th>
												<th>Allocated Qty</th>
												<th>Extra Output</th>
												<th>Final Output</th>
												<th>No Of Batch</th>
								            </tr>
								        </tfoot>
									</table>
									<br>
									<br>
																		<br>
									</div>
								
									 	<div class="form-group">
									 	    
           <!-- <h3>Estimated Product / Value Added Stock List</h3>-->
									<!--<table class="table table-bordered table-condensed table-hover table-striped dataTable" id="products_table_1">
										<thead>
								            <tr>
												<th>Product Code</th>
												<th>Product Name</th>
												<th>Material Code</th>
												<th>Output Qty</th>
												<th>Material Name</th>
												
												<th>Material Qty</th>
												<th>Material Cost</th>
										
								            </tr>
								        </thead>
								        <tbody>
								            <?php 
								            $total_product_estimation_cost=0;
								            $static_last_product_code='';
								            $last_product_code='';
								            $last_product_name='';
								            $last_product_qty='';
								            $product_estimated_cost=0;
								            $last_product_estimated_cost=0;
								           
								            foreach($sub_item_list as $il){
								                $total_product_estimation_cost+=$il['pcesi_tot_cost'];
								            if($static_last_product_code!=$il['product_code']){
								                $static_last_product_code=$il['product_code'];
								                $last_product_code=$il['product_code'];
								                $last_product_name=$il['product_name'];
								                $last_product_qty=$il['final_output_qty'];
								                $last_product_estimated_cost=$product_estimated_cost;
								                $product_estimated_cost=0;
								                $product_estimated_cost=$il['pcesi_tot_cost'];
								                 if($last_product_estimated_cost!=0){?>
								                 <tr>
								            	     <td></td>
								            	     <td></td>
								            	     <td></td>
								            	     <td></td>
								            	     <td></td>
								            	     <td></td>
								            	     <td><?php echo $last_product_estimated_cost; ?></td>
								            	 </tr>
								                <?php 
								                }
								                }else{
								                    $last_product_code='';
								                    $last_product_name='';
								                    $last_product_qty='';
								                    $product_estimated_cost+=$il['pcesi_tot_cost'];
								                    
								                }
								            ?>
								            	 <tr>
								            	     <td><?php echo $last_product_code; ?></td>
								            	     <td><?php echo $last_product_name; ?></td>
								            	     <td><?php echo $last_product_qty; ?></td>
								            	     <td><?php echo $il['product_mat_code']; ?></td>
								            	     <td><?php echo $il['product_mat_name']; ?></td>
								            	     <td><?php echo $il['pcesi_final_qty']; ?></td>
								            	     <td><?php echo $il['pcesi_tot_cost']; ?></td>
								            	 </tr>
								           <?php 								           }?>
								           
								           
								           
								         <?php   
								         $last_product_estimated_cost=$product_estimated_cost;
								         
								         
								         if($last_product_estimated_cost!=0){ ?>
								              <tr>
								            	     <td></td>
								            	     <td></td>
								            	     <td></td>
								            	     <td></td>
								            	     <td></td>
								            	     <td></td>
								            	     <td>
								            	        <div class="pull-right" style="border-top:1px solid gray; border-bottom:4px double gray;">  Total : Rs. <?php echo number_format( $last_product_estimated_cost, 2, '.', ',') ?> </div> 
								            	         
								            	         
								            	         </td>
								            	 </tr>
								           
								       
								           <?php } ?>
								           
								           
								           
								           
								        </tbody>
								        <tfoot>
											<tr>
												<th>Product Code</th>
												<th>Product Name</th>
												<th>Material Code</th>
												<th>Material Name</th>
												<th>Output Qty</th>
												<th>Material Qty</th>
												<th><?php echo "Rs.". $total_product_estimation_cost ?></th>
								            </tr>
								        </tfoot>
									</table>-->
									 <div class="col-md-12">
                <i class="fa fa-external-link-square"></i> ALLOCATED TIME SCHEDULE AND BATCH PROFILE AND QUANTITY 
                 <input id="pcem_id" name="pcem_id" type='hidden' class="form-control" value="<?php echo $details['pcem_id'];?>"/>  
                  <table class="table table-bordered table-condensed table-hover table-striped dataTable" id="warehouse_table_2">
              <thead>
                <tr>
                  <th>CODE</th>
                  <th>NAME</th>
                  <th class="col-md-1">TIME PROFILE</th>
                  <th class="col-md-1">BATCH PROFILE</th>
                  <th>UOM</th>
                  <th>ORDER<br>QTY</th>
                  <th>EXTRA<br>QTY</th>
                  <th>PRODUCTION<br>QTY</th>
                  <th class="col-md-4"> INGREDIENTS</th>
                 
                </tr>
              </thead>
              <tfoot>
                <tr>
                 <th>CODE</th>
                  <th>NAME</th>
                  <th>TIME PROFILE</th>
                  <th>BATCH PROFILE</th>
                  <th>UOM</th>
                  <th>ORDER QTY</th>
                  <th>EXTRA QTY</th>
                  <th>PRODUCTION<br>QTY</th>
                  <th>INGREDIENTS</th>
                
                </tr>
                 </tfoot>
            </table>
            
												
												
												
												
												
									</div>
									
									
									
									
									 <!--	<div class="form-group">
            <h3>Raw materials and intermediate product as a bulk</h3>
									<table class="table table-bordered table-condensed table-hover table-striped dataTable" id="products_table_2">
										<thead>
								            <tr>
												<th>Product Code</th>
												<th>Product Name</th>
												<th>Required Quntity</th>
												<th>Total estimated cost</th>
												
										
								            </tr>
								        </thead>
								        <tfoot>
											 <tr>
											    	<th>Product Code</th>
												<th>Product Name</th>
												<th>Required Quntity</th>
											<th>Total estimated cost</th>
													
								            </tr>
								            </tr>
								        </tfoot>
									</table>
									<br>
									</div>-->
								
								
								</div>
							</div>
							<!-- end: DYNAMIC TABLE PANEL -->
						</div>
					</div>

                    <!-- end grid -->
                    
					
			</div>
			<!-- end: PAGE -->
		</div>
		<!-- end: MAIN CONTAINER -->
		<!-- start: FOOTER -->
		<div class="footer clearfix">
			<div class="footer-inner">
				2014 &copy; clip-one by cliptheme.
			</div>
			<div class="footer-items">
				<span class="go-top"><i class="clip-chevron-up"></i></span>
			</div>
		</div>
		<!-- end: FOOTER -->
		<!-- start: RIGHT SIDEBAR -->
		<!-- end: RIGHT SIDEBAR -->
		<div id="event-management" class="modal fade" tabindex="-1" data-width="760" style="display: none;">
			<div class="modal-dialog">
				<div class="modal-content">
					<div class="modal-header">
						<button type="button" class="close" data-dismiss="modal" aria-hidden="true">
							&times;
						</button>
						<h4 class="modal-title">Event Management</h4>
					</div>
					<div class="modal-body"></div>
					<div class="modal-footer">
						<button type="button" data-dismiss="modal" class="btn btn-light-grey">
							Close
						</button>
						<button type="button" class="btn btn-danger remove-event no-display">
							<i class='fa fa-trash-o'></i> Delete Event
						</button>
						<button type='submit' class='btn btn-success save-event'>
							<i class='fa fa-check'></i> Save
						</button>
					</div>
				</div>
			</div>
		</div>

		<!-- start ajax model -->
		<div id="ajax-modal" class="modal fade" data-backdrop="static" data-keyboard="false" tabindex="-1" style="display: none;"></div>
		<!-- end ajax model -->

		<!-- start: MAIN JAVASCRIPTS -->
		<?php $this->load->view("common/footer"); ?>
		<!-- end: MAIN JAVASCRIPTS -->
         <script type="text/javascript" src="<?php echo asset_url(); ?>js/jquery.dataTables.min.js"></script>
          <script type="text/javascript" src="<?php echo asset_url(); ?>js/dataTables.bootstrap.min.js"></script>
          <script type="text/javascript" language="javascript" src="<?php echo asset_url(); ?>js/dataTables.buttons.min.js">
        </script> 
<script type="text/javascript" language="javascript" src="<?php echo asset_url(); ?>js/buttons.print.min.js">
        </script> 
<script type="text/javascript" language="javascript" src="<?php echo asset_url(); ?>js/buttons.flash.min.js">
        </script> 
<script type="text/javascript" language="javascript" src="<?php echo asset_url(); ?>js/jszip.min.js">
        </script> 
<script type="text/javascript" language="javascript" src="<?php echo asset_url(); ?>js/pdfmake.min.js">
        </script> 
<script type="text/javascript" language="javascript" src="<?php echo asset_url(); ?>js/vfs_fonts.js">
        </script> 
<script type="text/javascript" language="javascript" src="<?php echo asset_url(); ?>js/buttons.html5.min.js">
        </script> 
<script type="text/javascript" language="javascript" src="<?php echo asset_url(); ?>js/buttons.print.min.js"></script> 
		<script>
			jQuery(document).ready(function() {
				//TableData.init();
				//products_load();
			    loadGrid2();
				//products_load3();
			});

/*var req;
			function products_load() {
			req =		    $('#products_table').DataTable({
							dom: 'Blfrtip',
				//lengthMenu: [[10, 25, 50, -1 ], [10, 25, 50, "All"]],
				buttons: [{ extend: 'copy', text: '<i class="fa fa-copy fa-2x"></i>',footer: true, exportOptions: [ 0,1,2] },
						  { extend: 'print',
						  	text: '<i class="fa fa-print fa-2x"></i>',
							footer: true,
							exportOptions:{ columns: [0,1,2] },
						  	title:"<center>Cost Estimation</center>"
	 },
							{ extend: 'excel', text: '<i class="far fa-file-excel fa-2x"></i>Excel',footer: true,exportOptions:
	 { columns: [0,1,2] },title:"Cost Estimation"},
							 { extend: 'pdf', text: '<i class="far fa-file-pdf fa-2x"></i>PDF',footer: true,exportOptions:
	 { columns: [0,1,2] },title:"Cost Estimation"},
							 
						],
							 //"serverSide": true,
					        "ajax": "<?php echo base_url('production_process/get_estimate_list?id='.$details['pcem_id']) ?>",
					        "bDestroy": true,
					        "iDisplayLength": 10
					    });

					}
			function print_barcode (product_id) {
				window.open('products/single_barcode/'+product_id, 'sma_popup', 'width=900,height=600,scrollbars=yes,menubar=yes,status=no,resizable=yes,screenx=0,screeny=0');
			}
			function print_barcode_test (product_id) {
				window.open('products/single_barcode_test/'+product_id, 'sma_popup2', 'width=900,height=600,scrollbars=yes,menubar=yes,status=no,resizable=yes,screenx=0,screeny=0');
			}

			function product_delete(product_id) {

				var r = confirm("Are you sure you want to delete this item !");
				if (r == true) {
					products_load();
					$.ajax({
					    url : "<?php echo base_url('products/delete_product'); ?>",
					    type: "POST",
					    data : {product_id:product_id},
					    success: function(data)
					    {
	                            var obj = jQuery.parseJSON(data);
	                            if (obj.status==0) 
	                                {
	                                    $('div#error').html('<div class="alert alert-block alert-danger fade in"><button type="button" class="close" data-dismiss="alert">×</button><h4 class="alert-heading"><i class="fa fa-times-circle"></i> Error!</h4>'+obj.validation+'</div>');
	                                } 
	                                else
	                                {
	                                    set_message('Product notice!','Product permanent deleted successfully');
										products_load();
	                                };
					    }
	    			});
				}

			}*/
			
				function loadGrid2() {
		    var id=$('#pcem_id').val();
					    $('#warehouse_table_2').DataTable({
					        "ajax": "<?php echo base_url('estimate/getListEstimatedItems?id='.$details['pcem_id'])?>",
					        "data": {
							   id: id,
							},
					        oLanguage: {
                            sProcessing: '<div class="loader" id="loader"></div><div><h1>Loading......</h1></div>'
                            },
                            "processing": true,
					        "bDestroy": true,
							//"serverSide": true,
					        "iDisplayLength": 20,
							"order": false, "fnFooterCallback": function (nRow, aaData, iStart, iEnd, aiDisplay) {
                var pq = 0, sq = 0, bq = 0, pa = 0, grand_tot = 0, tech_tot = 0, parts_tot=0 , ser_tot=0;
				var ser_tot3=0;
				var ser_tot2=0;
				var ser_tot1=0;
				var ser_tot4=0;
                for (var i = 0; i < aaData.length; i++) {
                   // p = (aaData[aiDisplay[i]][2]).split('__');
					//ser_tot1 += parseFloat(aaData[[i]][5]);
					//ser_tot2 += parseFloat(aaData[[i]][6]);
                }
                var nCells = nRow.getElementsByTagName('th');
			//	nCells[5].innerHTML = '<div class="text-right">'+accounting.formatMoney(ser_tot1, "", 3, ",", ".")+' </div>';
			//	nCells[6].innerHTML = '<div class="text-right">'+accounting.formatMoney(ser_tot2, "", 2, ",", ".")+' </div>';
			 }
			});
		}
		</script>
        <script>
		function break_product(product_id){
			//alert(product_id);
				//return false;
				// create the backdrop and wait for next modal to be triggered
				$('body').modalmanager('loading');
				setTimeout(function() {
					$modal.load('<?php echo base_url("bulk_break/load_process"); ?>/'+product_id, '', function() {
						$modal.modal();
					});
				}, 1000);
			
		}
		function enable_product(prouct_id){
	
	jQuery.ajax({
		type: "POST",
		url: "<?php echo base_url().'products/enable?product_id='?>"+prouct_id,
		cache: false,
		success: function(response)
       {
			displayNotice('page','Successfully Enabled !!');
			setTimeout(function(){
				//products_load();
				req.ajax.reload();
				}, 1000);
			}
		
		});	
	}
	
	
function disable_product(prouct_id){

	jQuery.ajax({
		type: "POST",
		url: "<?php echo base_url().'products/disable?product_id='?>"+prouct_id,
		cache: false,
		success: function(response)
       {
//		var price = $('#'+count).val();
//		var twoPlacedFloat = parseFloat(price).toFixed(2)
//		$('#'+count).val(twoPlacedFloat);
		displayNotice('page','Successfully Disabled !!');
//		setTimeout(resetfun(),30000);
 //location.reload();
		setTimeout(function(){
			req.ajax.reload();
			}, 1000);
		//products_load();
	    	}
		});
	
	}
	
	function approval_requste(id){

	jQuery.ajax({
		type: "POST",
		url: "<?php echo base_url().'production_process/approval_bulk_requste?product_id='?>"+id,
		cache: false,
		data: {id:id},
		success: function(response)
       {
//		var price = $('#'+count).val();
//		var twoPlacedFloat = parseFloat(price).toFixed(2)
//		$('#'+count).val(twoPlacedFloat);
		displayNotice('page','Successfully approved !!');
//		setTimeout(resetfun(),30000);
 //location.reload();
		setTimeout(function(){
			req.ajax.reload();
			}, 1000);
		//products_load();
	    	}
		});
	
	}
	
	function products_load2() {
			req =		    $('#products_table_1').DataTable({
							dom: 'Blfrtip',
				//lengthMenu: [[10, 25, 50, -1 ], [10, 25, 50, "All"]],
				buttons: [{ extend: 'copy', text: '<i class="fa fa-copy fa-2x"></i>',footer: true, exportOptions: [ 0,1,2] },
						  { extend: 'print',
						  	text: '<i class="fa fa-print fa-2x"></i>',
							footer: true,
							exportOptions:{ columns: [0,1,2] },
						  	title:"<center>Cost Estimation</center>"
	 },
							{ extend: 'excel', text: '<i class="far fa-file-excel fa-2x"></i>Excel',footer: true,exportOptions:
	 { columns: [0,1,2] },title:"Cost Estimation"},
							 { extend: 'pdf', text: '<i class="far fa-file-pdf fa-2x"></i>PDF',footer: true,exportOptions:
	 { columns: [0,1,2] },title:"Cost Estimation"},
							 
						],
							 //"serverSide": true,
					        "ajax": "<?php echo base_url('production_process/get_estimate_raw_matirial_list?id=') ?>",
					        "bDestroy": true,
					        "iDisplayLength": 10
					    });

					}
						function products_load3() {
			req =		    $('#products_table_2').DataTable({
							dom: 'Blfrtip',
				//lengthMenu: [[10, 25, 50, -1 ], [10, 25, 50, "All"]],
				buttons: [{ extend: 'copy', text: '<i class="fa fa-copy fa-2x"></i>',footer: true, exportOptions: [ 0,1,2,3] },
						  { extend: 'print',
						  	text: '<i class="fa fa-print fa-2x"></i>',
							footer: true,
							exportOptions:{ columns: [0,1,2,3] },
						  	title:"<center>Cost Estimation</center>"
	 },
							{ extend: 'excel', text: '<i class="far fa-file-excel fa-2x"></i>Excel',footer: true,exportOptions:
	 { columns: [0,1,2,3] },title:"Cost Estimation"},
							 { extend: 'pdf', text: '<i class="far fa-file-pdf fa-2x"></i>PDF',footer: true,exportOptions:
	 { columns: [0,1,2,3] },title:"Cost Estimation"},
							 
						],
							 //"serverSide": true,
					        "ajax": "<?php echo base_url('production_process/get_raw_and_intermediate_as_bulk?id=') ?>",
					        "bDestroy": true,
					        "iDisplayLength": 10
					    });

					}
	
	
		</script>
	</body>
	<!-- end: BODY -->
</html>