<div class="row">

        <div class="col-xl-6 col-lg-6 col-xxl-6 col-md-6">
            <span><strong><u>Raw Materials and Packing</u>:</strong></span>
                        <div class="">

                            <ul class="list-group list-group-flush">
                                <li class="list-group-item d-flex justify-content-between"><span class="mb-0"><?php echo product_name($bom_production[0]['main_product']); ?> :</span>Qty:<strong><?php $qty = $bom_production[0]['quantity']; echo $qty; ?></strong></li>

                                <?php
                                if(!empty($bom_production)){
                                foreach ($bom_production as $bom_productions) {
                                 ?>

                               	<li class="list-group-item d-flex justify-content-between">
                                    <span class="mb-0"><?php echo material_codess($bom_productions['material_id']); ?>:</span>
                                    <span class="mb-0"><?php echo material_name($bom_productions['material_id']); ?>:</span>
                                    <strong>
                                 	
                                    	<?php echo $bom_productions['total']; ?>
                                    </strong>

                                    <strong>
                                 	
                                    	<?php echo get_unit_name($bom_productions['unit']); ?>
                                    </strong>
                                </li>
                                
                              <?php } } ?>
                            </ul>
                        </div>
                    </div>