HEX
Server: Apache
System: Linux p3plzcpnl506847.prod.phx3.secureserver.net 4.18.0-553.54.1.lve.el8.x86_64 #1 SMP Wed Jun 4 13:01:13 UTC 2025 x86_64
User: slfopp7cb1df (5698090)
PHP: 8.1.34
Disabled: NONE
Upload Files
File: //proc/self/cwd/pm/plugins/Manufacturing/Views/bill_of_materials/bill_of_material_manage.php
<div id="page-content" class="page-wrapper clearfix">
	<div class="row">
		<div class="col-md-12">

			<div class="card">

				<div class="page-title clearfix">
					<h4 class="no-margin font-bold"><i class="fa fa-clone menu-icon menu-icon" aria-hidden="true"></i> <?php echo app_lang('bills_of_materials'); ?></h4>
					<div class="title-button-group">
						<?php if(mrp_has_permission('manufacturing_can_create')){ ?>
							<a href="#" onclick="add_bill_of_material(); return false;"  class="btn btn-info pull-left display-block mright5 text-white"><span data-feather="plus-circle" class="icon-16"></span> <?php echo app_lang('add_bills_of_material'); ?></a>
						<?php } ?>
					</div>
				</div>


				<div class="row ml2 mr5 mt15">
					<div  class="col-md-4 leads-filter-column">
						<div class="form-group">
							<select name="products_filter[]" id="products_filter" data-live-search="true" class="select2 validate-hidden" multiple="true" data-actions-box="true" data-width="100%" placeholder="<?php echo app_lang('product_label'); ?>">
								<?php foreach($products as $product) { ?>
									<option value="<?php echo html_entity_decode($product['id']); ?>"><?php echo html_entity_decode($product['description']); ?></option>
								<?php } ?>
							</select>
						</div>
					</div> 
					<div  class="col-md-4 leads-filter-column">
						<div class="form-group">
							<select name="bom_type_filter[]" id="bom_type_filter" data-live-search="true" class="select2 validate-hidden" multiple="true" data-actions-box="true" data-width="100%" placeholder="<?php echo app_lang('bom_type'); ?>">
								<?php foreach($bom_types as $bom_type) { ?>
									<option value="<?php echo html_entity_decode($bom_type['name']); ?>"><?php echo html_entity_decode($bom_type['label']); ?></option>
								<?php } ?>
							</select>
						</div>
					</div> 
					<div  class="col-md-4 leads-filter-column">
						<div class="form-group">
							<select name="routing_filter[]" id="routing_filter" data-live-search="true" class="select2 validate-hidden" multiple="true" data-actions-box="true" data-width="100%" placeholder="<?php echo app_lang('routing_label'); ?>">
								<?php foreach($routings as $routing) { ?>
									<option value="<?php echo html_entity_decode($routing['id']); ?>"><?php echo html_entity_decode($routing['routing_name']); ?></option>
								<?php } ?>
							</select>
						</div>
					</div> 

				</div>
				<div class="modal fade bulk_actions" id="bill_of_material_table_bulk_actions" tabindex="-1" role="dialog">
					<div class="modal-dialog" role="document">
						<div class="modal-content">
							<div class="modal-header">
								<h4 class="modal-title"><?php echo _l('bulk_actions'); ?></h4>
								<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
							</div>
							<div class="modal-body">
								<?php if(mrp_has_permission('manufacturing_can_delete') || is_admin()){ ?>
									<div class="checkbox checkbox-danger">
										<input type="checkbox" class="form-check-input" name="mass_delete" id="mass_delete">
										<label for="mass_delete"><?php echo app_lang('hr_mass_delete'); ?></label>
									</div>
								<?php } ?>
							</div>
							<div class="modal-footer">
								<button type="button" class="btn btn-default" data-bs-dismiss="modal"><i data-feather="x" class="icon-16"></i> <?php echo app_lang('close'); ?></button>


								<?php if(mrp_has_permission('manufacturing_can_delete')){ ?>
									<a href="#" class="btn btn-info text-white" onclick="bom_delete_bulk_action(this); return false;"><span data-feather="check-circle" class="icon-16"></span> <?php echo app_lang('confirm'); ?></a>
								<?php } ?>
							</div>
						</div>
					</div>
				</div>

				<?php if(mrp_has_permission('manufacturing_can_delete')){ ?>
					<a href="#"  onclick="staff_bulk_actions(); return false;" data-toggle="modal" data-table=".table-bill_of_material_table" data-target="#leads_bulk_actions" class=" hide bulk-actions-btn table-btn"><?php echo app_lang('hr_bulk_actions'); ?></a>
				<?php } ?>


				<?php render_datatable1(array(
					'<span class="hide"> - </span><div class="checkbox mass_select_all_wrap"><input type="checkbox" id="mass_select_all" data-to-table="bill_of_material_table"  class="form-check-input"><label></label></div>',

					app_lang('id'),
					app_lang('product_label'),
					app_lang('BOM_code'),
					app_lang('bom_type'),
					app_lang('product_variant'),
					app_lang('product_qty'),
					app_lang('unit_id'),
					app_lang('routing_label'),
					app_lang('options'),

				),'bill_of_material_table',
			); ?>

		</div>

		<div id="modal_wrapper"></div>


	</div>
</div>
<!-- init_tail -->
<?php 
require 'plugins/Manufacturing/assets/js/bill_of_materials/bill_of_material_manage_js.php';
?>
</body>
</html>