
<div class="page-content">
        
        <div class="">
            <div class="content">
                <div class="row">
                    <?php if(!empty($data)) : $pins=explode(",",$data->tokens); $sn=explode(",",$data->serial); ?>
                    <?php $network=$data->network; $datasize=$data->datasize; $loadpin=$data->datasize; if($datasize=="1.5GB"){$loadpin="*460*6*1# Then PIN or Text PIN to 460"; $checkBal="*131*4#";} ?>
                    <?php 
if ($network == "AIRTEL") {
    $cardColor = "#ff1a1a";
    $cardLogo = "airtel.png";
    $textColor = "#ffffff";
    $checkBal = "*140#";
} elseif ($network == "GLO") {
    $cardColor = "#0d47a1";
    $cardLogo = "glo.png";
    $textColor = "#ffffff";
    $checkBal = "*127*0#";
} elseif ($network == "9MOBILE" || $network == "9MOBILE") {
    $cardColor = "#4caf50";
    $cardLogo = "9mobile.png";
    $textColor = "#ffffff";
    $checkBal = "*232#";
} else {
    $cardColor = "#ffcc00";
    $cardLogo = "mtn.png";
    $textColor = "#000000";
    $checkBal = "*310#";
}
?>

                   
                    <?php for($i=0; $i<$data->quantity; $i++): ?>
                    <div class="col-6">
                    <div class="row" style="margin:3px;">
                            
                            <div class="col-4" style="margin:0; padding:0; background-color:<?php echo $cardColor; ?>; ">
                                <div class="text-dark" style="padding:10px;">
                                   
                                    <p style="margin-bottom:5px;"><img src="../../assets/images/icons/<?php echo $cardLogo; ?>" style="width:50px; height:50px;" /></p>
                                    <h6 style="color:<?php echo $textColor; ?>">RECHARGE PIN</h6>
                                    <h6 style="color:<?php echo $textColor; ?>"><?php echo $datasize; ?></h6>
                                    <p style="margin-bottom:0; color:<?php echo $textColor; ?>;"><?php echo $sn[$i]; ?></p>
                                </div>
                            </div>
                            
                            <div class="col-8 bg-white" style="margin:0; padding:0; ">   
                                <div class="text-center" style="padding:10px;">
                                    
                                    <h6><?php echo strtoupper($data->business); ?></h6>
                                    <h4 style="background-color:#f2f2f2; border-radius:3rem; padding:7px;"><?php echo $pins[$i]; ?></h4>
                                    <p style="margin-bottom:0;"><b>Load <?php echo $loadpin; ?></b> <b>Bal:   <?php echo $checkBal; ?></b></p>
                                    <p>Powered By: <?php echo $sitename; ?></p>
                                </div>
                            </div>
                    </div>
                    </div>
                         
                    <?php endfor; endif; ?>
                   
                </div>
                
            </div>

        </div>

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