<div class="container-fluid
<header class="page-header">
	<h2>Student Report</h2> 
</header>
 
<?php foreach($Reports as $row){ //echo '<pre>'; print_r($row['Group']);?>
	<div class="row">
		<div class="col-md-4">
			<section class="panel">
				<header class="panel-heading">
					<h2 class="panel-title"><?= $row['Type']['TestTypeName'];?></h2>
				</header>
				<div class="panel-body panelbody">
					<div class="table-responsive">
						<table class="table table-striped mb-none" >
							<thead>
								<tr class="table_tr_th">
									<th>Name</th>
									<th></th>
									<th>Rating</th>
									<th>Score</th>
								</tr>
							</thead>
							<tbody>
								 <?php foreach($row['Section'] as $section){
									 $score=str_replace(',', '+', $section['MarksText']);
									 echo '<tr class="table_tr_'.$section['SGrade'].'"><td>'.$section['SectionName'].'</td><td>'.$score.'</td><td>'.$section['SGrade'].'</td><td>'.$section['Marks'].'</td></tr>';
								 }?>
							</tbody>
						</table>
					</div>
				</div>
			</section>
		</div>
		<div class="col-md-8">
			<section class="panel">
				<header class="panel-heading">	
					<h2 class="panel-title"><?= $row['Type']['TestTypeName'];?> Type</h2>
				</header>
				<div class="panel-body panelbody">
					<div class="table-responsive">
						<table class="table table-striped mb-none">
							<thead>
								<tr class="table_tr_th">
									
									<th></th>
									<th>Type</th>
									<th>Grade</th>
									<th>Score</th>
								</tr>
							</thead>
							<tbody>
								 <?php foreach($row['Group'] as $group){
									 echo '<tr class="table_tr_'.$group['GroupGrade'].'"><td>'.$group['SectionNames'].'</td><td>'.$group['SectionTypeName'].'</td><td>'.$group['GroupGrade'].'</td><td>'.$group['GroupScore'].'</td></tr>';
								 }?>
							</tbody>
						</table>
					</div>
				</div>
			</section>
		</div>
	</div>
<?php }?> 

<div class="row">
	<div class="col-sm-6">
		<section class="panel">
			<header class="panel-heading">	
				<h2 class="panel-title">Interest Careers</h2>
			</header>
			<div class="panel-body panelbody">
				<div class="table-responsive">
					<table class="table table-striped mb-none">
						 
						<tbody>
							<?php foreach($Interests as $ins){
								$st='';
								$Priority=$ins['Priority'];
								if($Priority=='H'){
									$st ='High Fit';
								}
								if($Priority=='M'){
									$st ='Moderate Fit';
								}
								if($Priority=='L'){
									$st ='Low Fit';
								}
								 
								echo '<tr class="table_tr_'.$Priority.'"><td>'.$ins['VocationalCareerName'].'</td><td>'.$st.'</td></tr>';
								 
							 }?>
						</tbody>
					</table>
				</div>
			</div>
		</section>
	
	</div>
	<div class="col-sm-6">
		<section class="panel">
			<header class="panel-heading">	
				<h2 class="panel-title">Recommended Careers</h2>
			</header>
			<div class="panel-body panelbody">
				<div class="table-responsive">
					<table class="table table-striped mb-none">
						 
						<tbody>
							<?php foreach($Recommendations as $rec){
								$st='High Fit';
								$Priority='H';
								 
								 
								echo '<tr class="table_tr_'.$Priority.'"><td>'.$rec['VocationalCareerName'].'</td><td>'.$st.'</td></tr>';
								 
							 }?>
						</tbody>
					</table> 
				</div>
			</div>
		</section>
	
	</div>
</div>

<div class="row">
	<p class="text-center"><a href="<?= BASE_URL .'students/download_pdf/'.$TestId.'/'.$StudentId;?>" class="btn btn-danger"><i class="fa fa-download"></i>&nbsp;PDF Report</a></p>
</div>
</div>
 
	
 
 
 