IMMREX7

aku nok ndi : /home/spdtg/www/schoolmis/resources/views/schools/library/
File Up :
aku nok ndi : /home/spdtg/www/schoolmis/resources/views/schools/library/print_barcode.blade.php

<!DOCTYPE html>
<html>
    <head>
        <!-- <meta charset="utf-8"> -->
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <title>School MIS</title>
        <!-- Tell the browser to be responsive to screen width -->
        <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
        <meta name="csrf-token" content="{{ csrf_token() }}">
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
        <style type="text/css">
            @page {
                header: page-header;
                footer: page-footer;
                margin-top: 10pt;
                margin-bottom: 20px;
                font-size:20px;
            }
            section{

            }
            body {
                font-family: 'examplefont', sans-serif;
            }	

        </style>
    </head>

    <body onload="window.print();">
    <htmlpageheader name="page-header" >
<!--        <table class="table">
            <tbody>
                <tr>
                    <th style="vertical-align: middle;text-align: center; width: 30%; padding: 0px; "><img src="{{ asset('storage/schools/'.$school->idSchool.'/'.$school->schoolLogo)}}" height="90" width="90"></th>
                    <td style="vertical-align: middle;text-align: center; width: 36%; padding: 0px; ">
                        <strong>{{$school->schoolName}}</strong><br>
                        {{$school->street}} {{$school->landmark}} {{$school->subArea}} {{$school->area}} <br>
                        {{$school->city}}  {{$school->state->stateName}}<br>
                        <strong>Contact No : {{$school->mobile}}</strong><br>
                        <strong>Email : {{$school->email}}</strong><br>
                    </td>
                </tr>
            </tbody>
        </table>-->
    </htmlpageheader>
    <section>
        <div class="content">
            <table border="1" style="width:100% ;border-collapse: collapse;overflow: wrap;">
                <?php
                if($skip > 0){
                 $rows = round($skip / $column);
                 $total = ($rows * $column);
                 $index = 0;
                    if($total == $skip){
                        for ($i=0; $i< $rows; $i++) { 
                            echo '<tr>';
                            for ($j=0; $j< $column; $j++) {
                                echo '<td style="padding:40px;"> <br><div style="width: 50px;height: 50px;"   /></td>';
                            }
                            echo '</tr>';
                        }
                    }else{
                        $count = 0;
                        if( $skip > $total) {
                            $rows = $rows + 1;
                            for ($i=0; $i< $rows ; $i++) { 
                            echo '<tr>';
                                for ($j=0; $j< $column; $j++) {
                                    $count ++;
                                    if($count <=  $skip){
                                        echo '<td style="padding:40px;"> <br><div style="width: 50px;height: 50px;"/></td>';
                                    }else{
                                        if($index < count($data)){
                                            echo '<td style="padding:20px;">'.$data[$index].'<br><img src="data:image/png;base64,' . DNS1D::getBarcodePNG($data[$index], "C39+", 1, 50) . '" alt="barcode"   /></td>';
                                         unset($data[$index]);
                                         $index++;
                                        }
                                    }
                                    
                                }
                            echo '</tr>';
                            }
                        }else{
                            for ($i=0; $i< $rows ; $i++) { 
                            echo '<tr>';
                                for ($j=0; $j< $column; $j++) {
                                    $count ++;
                                    if($count <=  $skip){
                                        echo '<td style="padding:40px;"> <br><div style="width: 50px;height: 50px;"/></td>';
                                    }else{
                                        if($index < count($data)){
                                        echo '<td style="padding:20px;">'.$data[$index].' <br><img src="data:image/png;base64,' . DNS1D::getBarcodePNG($data[$index], "C39+", 1, 50) . '" alt="barcode"   /></td>';
                                        unset($data[$index]);
                                        $index++;
                                    }
                                    }
                                    
                                }
                            echo '</tr>';
                        }  
                    }
                }}
                ?>
                @foreach(array_chunk($data,$column) as $r)
                <tr>
                    @foreach($r as $c)
                    <td style="padding:20px;">
                        {{$c}} <br>
                        <?php 
                            echo'<img src="data:image/png;base64,' . DNS1D::getBarcodePNG($c, "C39+", 1, 50) . '" alt="barcode"   />' ;
                        ?>

                    </td>
                    @endforeach
                </tr>
                @endforeach

            </table>
        </div>
    </section>
    <htmlpagefooter name="page-footer" >
        <p style="text-align: center;padding-top: 5px;padding-bottom: 0px;font-size: 12px;"><strong></strong></p>
    </htmlpagefooter>
</body>
</html>

Copyright © 2021 - 2025 IMMREX7