<?php 
            if(!empty($details)){
            foreach($details as $row){}
            if($row['transStatus']=='PAID'){
            ?>
<div id="printArea">
<div style="background: no-repeat  url('<?php echo base_url("images/bg.jpg");?>'); height:400px !important; width:400px !important;">
    
</div>

<div style='background:red; width:400px !important; height:140px !important;'>
    <table style="padding: 5px !important;">
        <tr><td style="color:white !important;" width='25%'><strong>NAME</strong></td><td align='center'><div style='background: #ffffff; padding: 5px'><?php echo strtoupper($row['confName']); ?></div></td></tr>
        <tr><td style="color:white !important;"><strong>CATEGORY</strong></td><td align='center'><div style='background: #ffffff; padding: 5px'><?php echo strtoupper($row['confcatName']); ?></div></td></tr>
        <tr><td></td><td align='center'><img src="<?php echo base_url(); ?>welcome/set_barcode/<?php echo $row['transRef'];?>"></td></tr>
    </table>
</div>
</div>

<!--<button onclick="printDiv('printArea');" class="btn btn-primary">Print Badge</button>-->
            <?php }else{ echo "Invalid Application No"; }}else{ echo "No Records Found";} ?>


<script>
window.print();
</script>

