IMMREX7

aku nok ndi : /home/spdtg/www/schoolmis/resources/views/schools/timetable/
File Up :
aku nok ndi : /home/spdtg/www/schoolmis/resources/views/schools/timetable/print_timetable.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() }}">
        <style type="text/css">
            @page {
                header: page-header;
                footer: page-footer;
                margin-top: 20pt;
                margin-bottom: 10px;
            }
            section{

            }
            body {
                font-family: 'examplefont', sans-serif;
            }	
        </style>
    </head>

    <body>
        <!--<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>
                    <th style="vertical-align: middle;text-align:right;  padding-left: 40px;">
                        <strong>{{$school->schoolName}}</strong><br><br>
                        
                    </th>
                     
                </tr>
                <tr>
                    <th></th>
                    <th style="text-align:center;"><strong>Timetable</strong><br>
                        <strong>Grade : {{$class->className}}</strong>
                        <strong> - {{$section->sectionName}}</strong><br>
                    </th>
                </tr>
                <tr><th colspan="2"></th></tr>
            </tbody>
        </table>
        <!--</htmlpageheader>-->
        <section>
            <div class="content">
                <table border="1" style="width:100% ;border-collapse: collapse;overflow: wrap;">
                    <thead style="background-color: #00d6f3;color:#000;">
                        <tr>
                            <th>DAY/TIME</th>
                            @foreach($periods as $var)
                            <th>{{$var->periodName}} <br> {{$var->fromTime}} <br>{{$var->toTime}}</th>
                            @endforeach
                        </tr>
                    </thead>
                    <tbody>
                        @foreach(weekdays() as $key=>$value)
                        <tr>
                            <th style="background-color: #ffa60d;color:white;">{{$value}}</th>
                            @foreach($periods as $var)
                                <?php $timetable = \App\Timetable::where('idPeriod','=',$var->idPeriod)->where('idWeekday','=',$key)->first() ?>
                                @if($var->isLunchBreak == 'N')
                                <td style="border-right: 1px solid #dee2e6;">
                                    <span><strong>{{$timetable->subject->subjectName or ''}}</strong></span><br>
                                    <span><strong>{{$timetable->teacher->firstName or ''}}</strong></span>
                                </td>
                                @else
                                <td style="background-color: #ffa60d;"></td>
                                @endif
                            @endforeach
                    </tr>
                    @endforeach
                    </tbody>
                </table>
            </div>
        </section>
    <htmlpagefooter name="page-footer" >
    </htmlpagefooter>

</body>
</html>

Copyright © 2021 - 2025 IMMREX7