<div class="row">

        <div class="col-xl-12 col-lg-12 col-xxl-12 col-md-12">
            <span><strong><u>Details</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 bom_fsg_pro($all_requisition_bom[0]['main_product']); ?> :</span>Qty:<strong><?php $qty = $all_requisition_bom[0]['quantity']; echo $qty; ?></strong></li>
                                
                                <?php
                                if(!empty($all_requisition_bom)){

                                foreach ($all_requisition_bom as $all_requisition_bom) {
                                 ?>
                                  <?php if($all_requisition_bom['material_id']!=0){ ?>
                                <li class="list-group-item d-flex justify-content-between">
                                    <span class="mb-0"><?php echo material_codess($all_requisition_bom['material_id']); ?>:</span>
                                    <span class="mb-0"><?php echo material_name($all_requisition_bom['material_id']); ?>:</span>
                                    <strong>
                                        <?php echo $all_requisition_bom['total']; ?>
                                       <?php  echo "/"; ?>
                                       <?php echo get_unit_name($all_requisition_bom['unit']); ?>
                                    </strong>
                                </li>
                                <?php }else if($all_requisition_bom['material_id']==0){ ?>

                                <li class="list-group-item d-flex justify-content-between">
                                    <span class="mb-0"><?php echo product_code($all_requisition_bom['child_product']); ?>:</span>
                                    <span class="mb-0"><?php echo product_name($all_requisition_bom['child_product']); ?>:</span>
                                    <strong>
                                        <?php echo $all_requisition_bom['total']; ?>
                                       <?php  echo "/"; ?>
                                       <?php echo get_unit_name($all_requisition_bom['unit']); ?>
                                    </strong>
                                </li>
                            <?php } ?>
                                
                                <?php } } ?>
                                
                            </ul>
                        </div>
                    </div>


      