<div class="form-inner">

                                <form action="<?php 
echo base_url('batch/update_batch');
?>
" method="post" class="form" id="edit_batch_form" >
                                    <input type="hidden" name="id" value="<?php 
echo $batchData['drug_batch_id'];
?>
" >

                                    <div class="form-group" id="section-1">
                                        <label>Batch number</label>
                                        <?php 
if (ADMIN) {
    echo $batchList = get_batch_dropdown($batchData['batch_number']);
} else {
    ?>
                                        <input  id="batch_number" type="text" width="100px;" readonly="readonly" value="<?php 
    echo get_batch_map($batchData['batch_number']);
    ?>
">
                                        <?php 
}
?>
                                    </div>
                                    <div class="form-group" id="section-2">
                                        <label>Total implants</label>
                                        <input <?php 
if (ALLOW_EDIT) {
    ?>
} else {
    ?>
                                        <input name="" id="site" type="text" value="<?php 
    echo get_site_map($wastageData['site']);
    ?>
" placeholder="Site" <?php 
    echo $readOnly;
    ?>
>
                                    <?php 
}
?>
                                    <label>Batch Number</label>
                                    <?php 
if (ADMIN) {
    echo $batchList = get_batch_dropdown($wastageData['batch_number']);
} else {
    ?>
                                    <input name="" id="batch_number" type="text" width="100px;" <?php 
    echo $readOnly;
    ?>
 value="<?php 
    echo get_batch_map($wastageData['batch_number']);
    ?>
">
                                    <?php 
}
?>


                                    <label>Date Reported</label>
                                    <input name="site" id="site" type="text" value="<?php 
    echo get_site_map($deliveryData['site']);
    ?>
" placeholder="Site" <?php 
    echo $readOnly;
    ?>
>
                                    <?php 
}
?>


                                    <label>Batch</label>
                                    <?php 
if (ADMIN) {
    echo $batchList = get_batch_dropdown($deliveryData['batch_number']);
} else {
    ?>
                                        <input  id="batch_number" type="text" width="100px;" readonly="readonly" value="<?php 
    echo get_batch_map($deliveryData['batch_number']);
    ?>
">
                                    <?php 
}
?>

                                    <label>Delivery Date</label>
                                    <input  type="text" <?php 
if (ADMIN) {
    ?>
 name="delivery_date" class="datetime" <?php 
" method="post">
                            <div class="form-inner">
                                <div class="form-group" id="section-3">
                                    <p><strong>Note</strong>: Wastage is the loss of a single implant at a specific site. If multiple implants are reported lost then a wastage report must be logged for each individual implant in the system.</p>
                                </div>
                                <div class="info"></div>
                                <div class="form-group" id="section-3">
                                    <label>Site</label>
                                    <?php 
echo $siteDropDown = get_site_dropdown();
?>
                                </div>
                                <div class="form-group" id="section-3">
                                    <label>Batch Number</label>
                                    <?php 
echo $batchDropDown = get_batch_dropdown();
?>
                                </div>
                                <div class="form-group  has-feedback" id="section-3">
                                    <label>Date Reported</label>
                                    <input name="date_reported"  type="text" id="date_reported" class="datetime" >
                                    <i class="glyphicon glyphicon-calendar form-control-feedback"></i>
                                </div>
                               
                                <div class="form-group" id="section-3">
                                    <label>Reason</label>
                                    <input name="reason" id="reason" type="text" placeholder="Reason" value="" >
                                </div>
                                <div class="form-group" id="section-3">
                                    <label>Notes</label>
                                    <textarea name="notes" id="notes" rowspan="8"></textarea>
                </div>
                <?php 
if (ALLOW_ADD) {
    ?>
                    <div class=" col-sm-12 col-md-12 col-lg-4">
                        <div class="form-lable"><h2>Add Batch</h2></div>
                        <div class="form-control editor">
                            <form action="<?php 
    echo base_url('batch/add_batch');
    ?>
" method="post" class="form" id="add_batch_form">
                                <div class="form-inner">
                                    <div class="form-group" id="section-1">
                                        <label>Batch number</label>
                                        <?php 
    echo $batchList = get_batch_dropdown();
    ?>
                                    </div>
                                    <div class="form-group" id="section-2">
                                        <label>Total implants</label>
                                        <input name="total_implants" id="total_implants"  type="text">
                                    </div>
                                    <div class="form-group" id="section-1">
                                        <label>Implants allocated to quality control</label>
                                        <input name="imp_alloc_qc" id="implant_all_qc"  type="text">
                                    </div>
                                    <div class="form-group" id="section-2">
                                        <label>Implants allocated to clinical trials</label>
                                        <input name="imp_alloc_ct" id="implant_all_ct"  type="text">
                                    </div>
                                    <div class="form-group has-feedback" id="section-1">