IMMREX7
<!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="<?php echo e(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="<?php echo e(asset('storage/schools/'.$school->idSchool.'/'.$school->schoolLogo)); ?>" height="90" width="90"></th>
<th style="vertical-align: middle;text-align:right; padding-left: 40px;">
<strong><?php echo e($school->schoolName); ?></strong><br><br>
</th>
</tr>
<tr>
<th></th>
<th style="text-align:center;"><strong>Timetable</strong><br>
<strong>Grade : <?php echo e($class->className); ?></strong>
<strong> - <?php echo e($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>
<?php $__currentLoopData = $periods; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $var): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<th><?php echo e($var->periodName); ?> <br> <?php echo e($var->fromTime); ?> <br><?php echo e($var->toTime); ?></th>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
</tr>
</thead>
<tbody>
<?php $__currentLoopData = weekdays(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key=>$value): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<tr>
<th style="background-color: #ffa60d;color:white;"><?php echo e($value); ?></th>
<?php $__currentLoopData = $periods; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $var): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<?php $timetable = \App\Timetable::where('idPeriod','=',$var->idPeriod)->where('idWeekday','=',$key)->first() ?>
<?php if($var->isLunchBreak == 'N'): ?>
<td style="border-right: 1px solid #dee2e6;">
<span><strong><?php echo e(isset($timetable->subject->subjectName) ? $timetable->subject->subjectName : ''); ?></strong></span><br>
<span><strong><?php echo e(isset($timetable->teacher->firstName) ? $timetable->teacher->firstName : ''); ?></strong></span>
</td>
<?php else: ?>
<td style="background-color: #ffa60d;"></td>
<?php endif; ?>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
</tr>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
</tbody>
</table>
</div>
</section>
<htmlpagefooter name="page-footer" >
</htmlpagefooter>
</body>
</html>
Copyright © 2021 -