<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
	<title>کارنامه</title>
	<style>
		@page  {
			margin: 1.5cm;
		}

		.page-break {
			page-break-before: always;
		}

		body, table {
			direction: rtl;
			font-family: 'vazir';
			font-size: 10px;
			line-height: 2em;
		}

		#main-content table {
			width: 100%;
			border-collapse: collapse;
		}

		#main-content td, #main-content th {
			border: 1px solid #000;
			padding: 0 0.2em;
			text-align: center;
			background-color: #fff;
		}

		#main-content td.h,
		#main-content th.h
		{
			background-color: #c6f084;
		}
	</style>
</head>
<body>
	<div id="main-content">
		<?php foreach( $rows as $index => $row ): ?>
			<?php $raw_results = $row[ 'raw_results' ]; ?>
			<?php $exam_user = $row[ 'exam_user' ]; ?>

			<div class="page <?php echo $index > 0 ? 'page-break' : ''; ?>">
				<?php echo $__env->make( 'inc.exworkbook' , array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>
			</div>
		<?php endforeach; ?>
	</div>
</body>
</html>