<div class="panel-heading">
                        <h4 class="panel-title">
                            <a href="<?php 
echo base_url() . 'home';
?>
" id="home"><span class="glyphicon glyphicon-arrow-up">
                            </span>Back to Home</a>
                        </h4>
                    </div>
                </div>        
            </div>
<script>
   $("#bin_card").on('click', function() {
	var body_content='<select id="facility_code" name="facility_code" class="form-control"><option value="0">--Select Facility Name--</option>'+
                    '<?php 
$facilities = Facilities::get_facilities_online_per_district($this->session->userdata('county_id'));
foreach ($facilities as $facility) {
    $facility_code = $facility['facility_code'];
    $facility_name = $facility['facility_name'];
    ?>
?>'+					
						'<option <?php 
    echo 'value="' . $facility_code . '">' . preg_replace("/[^A-Za-z0-9 ]/", "", $facility_name);
    ?>
</option><?php 
}
?>
';
   //hcmp custom message dialog
    dialog_box(body_content,
    '<button type="button" class="btn btn-primary order_for_them" >View Their Bin Card</button>'