<?php 
use yii\helpers\Html;
?>
<div class="dt205-pdf">
	<?= $this->render('//common/_pdfheader.php', ['title' => 'Hand Grinding Form DT205']) ?>

	<table class="Table notbb nolb norb">
		<tr>
			<td width="50%" valign="top" class="notbb nolb norb">
				<table class="Table notbb nolb norb">
		<tr>
			<th class="DarkerBlue" height="20px">Client</th>
			<td colspan="5"><?= $model->clientl ? $model->clientl->account_name : '(NOT SET)' ?></td>
		</tr>
		<tr>
			<th class="DarkerBlue" height="20px">Location</th>
			<td colspan="5"><?= $model->location ?></td>
			<td class="notbb">&nbsp;</td>
			<th class="DarkerBlue notbb">ELR</th>
    		<td><?= $model->elr ?></td>
		</tr>
		<tr>
			<th class="DarkerBlue" rowspan="2" height="20px">Line</th>
			<td  colspan="5" rowspan="2"><?= $model->line ?></td>
			<td class="notbb">&nbsp;</td>
			<th class="DarkerBlue" height="20px">Inspection</th>
			<th class="DarkerBlue" height="20px">YES/NO</th>
		</tr>
		<tr>
			<td class="notbb" height="20px">&nbsp;</td>
			<th class="DarkerBlue">Visual</th>
			<td><?= $model->inspectionvisual ?></td>
		</tr>
		<tr>
			<td colspan="7" height="20px" >&nbsp;</td>
			<th class="DarkerBlue">U/T</th>
			<td><?= $model->inspectionut ?></td>
		</tr>
		<tr>
			<th class="DarkerBlue"  colspan="3" height="20px">Start Mileage</th>
			<td class="notbb">&nbsp;</td>
			<th class="DarkerBlue" rowspan="1">Plain line</th>
			<td class="notbb" colspan="2">&nbsp;</td>
			<th class="DarkerBlue">E.M.A</th>
			<td><?= $model->inspectionema ?></td>
		</tr> 
		<tr>
			<td height="20px"><?= $model->startmileagem ?>  M</td>
			<td colspan="2"><?= $model->startmileagey ?>  Y</td>
			<td class="notbb" colspan="">&nbsp;</td>
			<td><?= $model->plainline ?></td>
			
		</tr>	
		<tr>
			<th class="DarkerBlue" colspan="3" height="20px">Finish Mileage</th>
			<td class="notbb">&nbsp;</td>
			<th class="DarkerBlue" rowspan="1">S &amp; C</th>
			<td class="notbb" colspan="2">&nbsp;</td>
			<th class="DarkerBlue" colspan="2">4' Gauge at Toe</th>
			
		</tr>	
		<tr>
			<td colspan="1" height="20px"><?= $model->finishmileagem ?>  M</td>
			<td colspan="2"><?= $model->finishmileaged ?>  Y</td>
			<td class="notbb" colspan="">&nbsp;</td>
			<td><?= $model->sc ?></td>
			<td class="notbb" colspan="2">&nbsp;</td>
			<th class="DarkerBlue">Before</th>
			<td><?= $model->gaugeattoebefore ?>  mm</td>
		</tr>	
		<tr>
			<td colspan="7"  class="notbb" height="20px">&nbsp;</td>
			<th class="DarkerBlue" >After</th>
			<td><?= $model->gaugeattoeafter ?>  mm</td>
		</tr>	
		
		<tr>
			<th class="DarkerBlue" colspan="2" height="20px">Sidewear Reading</th>
			<td class="notbb">&nbsp;</td>
			<th class="DarkerBlue" colspan="2">Rail Section</th>
			<td colspan="2" class="notbb">&nbsp;</td>
			<th class="DarkerBlue" colspan="2">TGP Tested</th>
		</tr>
		<tr>
			<th class="DarkerBlue" colspan="1" height="20px">L/H</th>
			<td><?= $model->sidewearreadinglh ?></td>
			<td  class="notbb">&nbsp;</td>
			<th class="DarkerBlue" colspan="1">L/H</th>
			<td><?= $model->railsectionlh ?></td>
			<td colspan="2"  class="notbb">&nbsp;</td>
			<th class="DarkerBlue" colspan="1">Pass</th>
			<td><?= $model->tgp8tested ?></td>
		</tr>
		<tr>
			<th class="DarkerBlue" colspan="1" height="20px">R/H</th>
			<td><?= $model->sidewearreadingrh ?></td>
			<td  class="notbb">&nbsp;</td>
			<th class="DarkerBlue" colspan="1">R/H</th>
			<td><?= $model->railsectionrh ?></td>
			<td colspan="2" class="notbb">&nbsp;</td>
			<th class="DarkerBlue" colspan="1">Fail</th>
		</tr>
		<tr>
			<td height="20px">&nbsp;</td>
		</tr>
		<tr>
			<th class="DarkerBlue" colspan="2">Rail Depth</th>
			<td class="notbb">&nbsp;</td>
			<th class="DarkerBlue" colspan="2">Rail Steel</th>
			
		</tr>
		<tr>
			<th class="DarkerBlue" colspan="1" height="20px">L/H</th>
			<td><?= $model->raildepthlh ?></td>
			<td class="notbb">&nbsp;</td>
			<th class="DarkerBlue" colspan="1">L/H</th>
			<td><?= $model->railsteellh ?></td>
		</tr>
		<tr>
			<th class="DarkerBlue" colspan="1" height="20px">R/H</th>
			<td><?= $model->raildepthrh ?></td>
			<td class="notbb">&nbsp;</td>
			<th class="DarkerBlue" colspan="1">R/H</th>
			<td><?= $model->railsteelrh ?></td>
		</tr>
		<tr>
			<th class="DarkerBlue" height="20px">Site Access</th>
			<td><?= $model->siteaaccess ?></td>
		</tr>
		<tr>
			<th class="DarkerBlue" height="20px">Prepatory Work Required</th>
			<td><?= $model->prepwork ?></td>
		</tr>
		<tr>
			<th class="DarkerBlue" height="20px">Special Requirements</th>
			<td><?= $model->specialreqs ?></td>
		</tr>
		<tr>
			<th class="DarkerBlue" height="20px">Protection Details</th>
			<td><?= $model->protectiondets ?></td>
		</tr>
		<tr>
			<th class="DarkerBlue" height="20px">Possession Time Required.</th>
			<td><?= $model->possessiontimerequired ?></td>
		</tr>
		<tr>
			<th class="DarkerBlue" height="20px">Grinding Specification.</th>
			<td><?= $model->grindingspec ?></td>
		</tr>
		<tr>
			<th class="DarkerBlue" height="20px">Number of Gangs</th>
			<td><?= $model->numberofgangs ?></td>
			<th class="DarkerBlue">S&amp;T Required</th>
			<td><?= $model->strequired == 1 ? 'YES' : 'NO' ?></td>
		</tr>
		<tr>
			<td colspan="6" class="notbb norb nolb" height="20px">&nbsp;</td>
		</tr>
		<tr class="">
			<th class="DarkerBlue" colspan="2" height="20px">Grinding Supervisory Manager</th>			
		</tr>
		<tr class="">
			<th class="DarkerBlue" height="20px">Name</th>			
			<td><?= $model->grindingsupervisorname ?></td>			
		</tr>
		<tr >
			<td colspan="6" class="nolb norb notbb" height="20px" >&nbsp;</td>
		</tr>
		<tr class="">
			<th class="DarkerBlue">Signature</th>			
			<td>
				<img width="150px" src="<?= $model->grindingsupervisorsign ?>" /></td>			
			<th class="DarkerBlue">Date</th>			
			<td><?= is_int($model->grindingsupervisorsigndate) ? date('d/m/Y', $model->grindingsupervisorsigndate) : $model->grindingsupervisorsigndate ?></td>			
		</tr>
	</table>
			</td>
			<td width="50%" valign="top"  class="notbb nolb norb">
				<table class="Table notbb nolb norb">
			<tr>
				<th class="DarkerBlue" rowspan="2" width="100px">Points No</th>
				<td colspan=""><?= $model->pointsno ?></td>
				<th class="DarkerBlue" width="100px">Facing</th>
				<td><?= $model->pointsnofacing ?></td>
				<td rowspan="14"  width="200px">
						<img src="<?= $model->image0 ?>" />
				</td>
			</tr>
			<tr>
				<td rowspan="1">&nbsp;</td>
				<th class="DarkerBlue">Trailing</th>
				<td><?= $model->pointsnotrailing ?></td>
			</tr>
			<tr>
				<td class="nolb norb">&nbsp;</td>	
			</tr>
			<tr>
				<th class="DarkerBlue" colspan="4">Components to Be Ground</th>
			</tr>
			<tr>
				<th class="DarkerBlue">L/H SwitchBlade</th>
				<td colspan="3"><?= $model->lhswitchblade0 ?></td>
			</tr>
			<tr>
				<th class="DarkerBlue">L/H Stock Rail</th>
				<td colspan="3"><?= $model->lhstockrail0 ?></td>
			</tr>
			<tr>
				<th class="DarkerBlue">L/H Through Rail</th>
				<td colspan="3"><?= $model->lhthroughrail0 ?></td>
			</tr>
			<tr>
				<th class="DarkerBlue">L/H Belly Rail</th>
				<td colspan="3"><?= $model->lhbellyrail0 ?></td>
			</tr>
			<tr>
				<th class="DarkerBlue">R/H SwitchBlade</th>
				<td colspan="3"><?= $model->rhswitchblade0 ?></td>
			</tr>
			<tr>
				<th class="DarkerBlue">R/H Stock Rail</th>
				<td colspan="3"><?= $model->rhstockrail0 ?></td>
			</tr>
			<tr>
				<th class="DarkerBlue">R/H Through Rail</th>
				<td colspan="3"><?= $model->rhthroughrail0 ?></td>
			</tr>
			<tr>
				<th class="DarkerBlue">R/H Belly Rail</th>
				<td colspan="3"><?= $model->rhbellyrail0 ?></td>
			</tr>
			<tr>
				<th class="DarkerBlue" colspan="4">Comments</th>
			</tr>
			<tr>
				<td colspan="4"  height="64px"><?= $model->comments0 ?></td>
			</tr>
				
		</table>
			</td>
		</tr>
	</table>
   


	<pagebreak>
	<table class="Table notbb nolb norb">
		<tr>
			<td width="50%" valign="top"  class="notbb nolb norb">
	
	<table class="Table notbb nolb norb">
		<tr>
			<th class="DarkerBlue" colspan="2">Work Completed</th>
			<td class="notbb nolb norb">&nbsp;</td>
			<th class="DarkerBlue" colspan="2">SO53 Compliant</th>
			<td class="notbb nolb norb">&nbsp;</td>
			<th class="DarkerBlue" colspan="2">DPI Tested</th>
			<td class="notbb nolb norb">&nbsp;</td>
			<th class="DarkerBlue" colspan="2">MPI Tested</th>
		</tr>
		<tr>
			<td>Yes</td>
			<td><?php if ($model->workcompleted0 == true) {echo "<span class='check'>&#10003;</span>";} ?></td>
			<td class="notbb nolb norb">&nbsp;</td>
			<td>Yes</td>
			<td><?php if ($model->so53compliant0 == true) {echo "<span class='check'>&#10003;</span>";} ?></td>
			
			<td class="notbb nolb norb">&nbsp;</td>
			<td>Yes</td>
			<td><?php if ($model->dpitested0 == true) {echo "<span class='check'>&#10003;</span>";} ?></td>
			
			<td class="notbb nolb norb">&nbsp;</td>
			<td>Yes</td>
			<td><?php if ($model->mpitested0 == true) {echo "<span class='check'>&#10003;</span>";} ?></td>
			<td class="notbb nolb norb">&nbsp;</td>
			
		</tr>
		<tr>
			<td>No</td>
			<td><?php if ($model->workcompleted0 && $model->workcompleted0 == False) {echo "<span class='check'>&#10003;</span>";} ?></td>
			<td class="notbb nolb norb">&nbsp;</td>
			<td>No</td>
			<td><?php if ($model->so53compliant0 && $model->so53compliant0 == False) {echo "<span class='check'>&#10003;</span>";} ?></td>
			<td class="notbb nolb norb">&nbsp;</td>
			<td>No</td>
			<td><?php if ($model->dpitested0 && $model->dpitested0 == False) {echo "<span class='check'>&#10003;</span>";} ?></td>
			<td class="notbb nolb norb">&nbsp;</td>
			<td>No</td>
			<td><?php if ($model->mpitested0 && $model->mpitested0 == False) {echo "<span class='check'>&#10003;</span>";} ?></td>
			<td class="notbb nolb norb">&nbsp;</td>
			
		</tr>
		<tr>
			<th class="DarkerBlue" colspan="2">Switch Lubricated</th>
			<td class="notbb nolb norb">&nbsp;</td>
			<th class="DarkerBlue" colspan="2">Switch Operational</th>
			<td class="notbb nolb norb">&nbsp;</td>
			<th class="DarkerBlue" colspan="2">UT Tested</th>
			<td class="notbb nolb norb">&nbsp;</td>
			<th class="DarkerBlue" colspan="2">TGP8 Tested</th>
			<td class="notbb nolb norb">&nbsp;</td>
		</tr>
		<tr>
			<td>Yes</td>
			<td><?php if ($model->switchlubricated0 == true) {echo "<span class='check'>&#10003;</span>";} ?></td>
			<td class="notbb nolb norb">&nbsp;</td>
			<td>Yes</td>
			<td><?php if ($model->switchoperational0 == true) {echo "<span class='check'>&#10003;</span>";} ?></td>
			<td class="notbb nolb norb">&nbsp;</td>
			<td>Yes</td>
			<td><?php if ($model->uttested0 == true) {echo "<span class='check'>&#10003;</span>";} ?></td>
			<td class="notbb nolb norb">&nbsp;</td>
			<td>Pass</td>
			<td><?php if ($model->tgp8tested0 == true) {echo "<span class='check'>&#10003;</span>";} ?></td>
			<td class="notbb nolb norb">&nbsp;</td>
		</tr>
		<tr>
			<td>No</td>
			<td><?php if ($model->switchlubricated0 && $model->switchlubricated0 == False) {echo "<span class='check'>&#10003;</span>";} ?></td>
			<td class="notbb nolb norb">&nbsp;</td>
			<td>No</td>
			<td><?php if ($model->switchoperational0 && $model->switchoperational0 == False) {echo "<span class='check'>&#10003;</span>";} ?></td>
			<td class="notbb nolb norb">&nbsp;</td>
			<td>No</td>
			<td><?php if ($model->uttested0 && $model->uttested0 == False) {echo "<span class='check'>&#10003;</span>";} ?></td>
			<td class="notbb nolb norb">&nbsp;</td>
			<td>Fail</td>
			<td><?php if ($model->tgp8tested0 && $model->tgp8tested0 == False) {echo "<span class='check'>&#10003;</span>";} ?></td>
			<td class="notbb nolb norb">&nbsp;</td>
		</tr>
		<tr>
			<td colspan="12" class="notbb nolb norb">&nbsp;</td>
		</tr>
		<tr>
			<th class="DarkerBlue" colspan="12">General Conditions of p-way components (i.e bolts-chair-fastenings)</th>
		</tr>
		<tr>
			<th class="DarkerBlue" colspan="12">Comments</th>	
		</tr>
		<tr>
			<td colspan="12" height="64px"><?= $model->pwaycomments0 ?></td>
		</tr>
		<tr>
			<td colspan="12" class="notbb nolb norb">&nbsp;</td>
		</tr>
		<tr>
			<th class="DarkerBlue" colspan="2">Grinding Supervisory Manager</th>
		</tr>
		<tr>
			<th class="DarkerBlue" colspan="">Name</th>
			<td><?= $model->gsmname ?></td>
		</tr>
		<tr>
			<th class="DarkerBlue" colspan="">Sign</th>
			<td><img height="100px" src="<?= $model->gsmsign ?>" alt='' /></td>
			<td class="notbb nolb norb">&nbsp;</td>
			<th class="DarkerBlue" colspan="">Date</th>
			<td><?= is_int($model->gsmdate) ? date('d/m/Y', $model->gsmdate): $model->gsmdate ?></td>
			
		</tr>
		<tr>
			<td  class="notbb nolb norb">&nbsp;</td>
		</tr>
		<tr>
			<th colspan="12" class="DarkerBlue">Comments</th>
		</tr>
		<tr>
			<td colspan="12" height="64px"><?= $model->gsmcomments ?></td>
		</tr>
		<tr>
			<td colspan="12" class="notbb nolb norb">&nbsp;</td>
		</tr>
		<tr>
			<th class="DarkerBlue" colspan="2">FPL Inspection Completed</th>
			<td colspan="2"><?= $model->fplinscompleted == 1 ? 'YES' : 'NO' ?></td>
		</tr>
		<tr>
			<th class="DarkerBlue" colspan="">Name</th>
			<td><?= $model->fplname ?></td>
		</tr>
		<tr>
			<th class="DarkerBlue" colspan="">Sign</th>
			<td><img height="75px" src="<?= $model->fplsign ?>" alt='' /></td>
			<td class="notbb nolb norb">&nbsp;</td>
			<th class="DarkerBlue" colspan="">Date</th>
			<td><?= is_int($model->fpldate) ? date('d/m/Y', $model->fpldate) : $model->fpldate ?></td>
		</tr>
		<tr>
			<td colspan="12" class="notbb nolb norb">&nbsp;</td>
		</tr>
		<tr>
			<th class="DarkerBlue" colspan="2">053 Inspection Completed</th>
			<td colspan="2"><?= $model->ins053completed == 1 ? 'YES' : 'NO' ?></td>
		</tr>
		<tr>
			<th class="DarkerBlue" colspan="">Name</th>
			<td><?= $model->ins053name ?></td>
		</tr>
		<tr>
			<th class="DarkerBlue" colspan="">Sign</th>
			<td><img height="75px" src="<?= $model->ins053sign ?>" alt='' /></td>
			<td class="notbb nolb norb">&nbsp;</td>
			<th class="DarkerBlue" colspan="">Date</th>
			<td><?= is_int($model->ins053date) ? date('d/m/Y', $model->ins053date) : $model->ins053date ?></td>
			
		</tr>
		<tr>
			<td  class="notbb nolb norb" colspan="12"></td>
		</tr>
		<tr>
			<th class="DarkerBlue" colspan="2">&nbsp;</th>
			<td colspan="2"></td>
		</tr> 
		<tr>
			<th class="DarkerBlue" colspan="1">Name</th>
			<td colspan=""></td>
			
		</tr> 
		<tr>
			<th class="DarkerBlue" colspan="">Sign</th>
			<td><img height="75px"  src="<?= $model->signature ?>" alt='' /></td>
			<td class="notbb nolb norb">&nbsp;</td>
			<th class="DarkerBlue" colspan="">Date</th>
			<td><?= is_int($model->signaturedate) ? date('d/m/Y', $model->signaturedate) : $model->signaturedate ?></td>
			
		</tr>
	
	</table>
	
		</td>
		<td width="50%" valign="top"  class="notbb nolb norb">
		

	<table class="Table notbb nolb norb">
		<tr>
			<th class="DarkerBlue" colspan="5">Components Ground</th>
			<td rowspan="36"  width="200px">
    				<img src="<?= $model->image1 ?>" alt='' />
    		</td>
		</tr>
		<tr>
			<th class="DarkerBlue" rowspan="1" width="100px">L/H Switchblade</th>
			<th class="DarkerBlue" colspan="2">Depth</th>
			<th class="DarkerBlue" rowspan="2" colspan="2">MPI<br />Clear</th>
		</tr>
		<tr>
			<td class="" rowspan="3" width="100px"><?= $model->lhswitchblade1 ?></td>
			<th class="DarkerBlue">Before</th>
			<td><?= $model->cglhsbbefore ?></td>
		</tr>
		<tr>
			<th class="DarkerBlue">After</th>
			<td><?= $model->cglhsbafter ?></td>
			<td>Y</td>
			<td><?php if ($model->cglhsbmpi == true) {echo "<span class='check'>&#10003;</span>";} ?></td>
		</tr>
		<tr>
			<th class="DarkerBlue">Length</th>
			<td><?= $model->cglhsblength ?></td>
			<td>N</td>
			<td><?php if ($model->cglhsbmpi && $model->cglhsbmpi == False) {echo "<span class='check'>&#10003;</span>";} ?></td>
			
		</tr>
		<tr>
			<th class="DarkerBlue" rowspan="1">L/H Stock Rail</th>
			<th class="DarkerBlue" colspan="2">Depth</th>
			<th class="DarkerBlue" rowspan="2" colspan="2">MPI<br />Clear</th>
		</tr>
		<tr>
			<td class="" rowspan="3" width="100px"><?= $model->lhstockrail1 ?></td>
			<th class="DarkerBlue">Before</th>
			<td><?= $model->cglhsrbefore ?></td>
		</tr>
		<tr>
			<th class="DarkerBlue">After</th>
			<td><?= $model->cglhsrafter ?></td>
			<td>Y</td>
			<td><?php if ($model->cglhsrmpi == true) {echo "<span class='check'>&#10003;</span>";} ?></td>
			
		</tr>
		<tr>
			<th class="DarkerBlue">Length</th>
			<td><?= $model->cglhsrlength ?></td>
			<td>N</td>
			<td><?php if ($model->cglhsrmpi && $model->cglhsrmpi == False) {echo "<span class='check'>&#10003;</span>";} ?></td>
			
		</tr>
		<tr>
			<th class="DarkerBlue" rowspan="1">L/H Through Rail</th>
			<th class="DarkerBlue" colspan="2">Depth</th>
			<th class="DarkerBlue" rowspan="2" colspan="2">MPI<br />Clear</th>
		</tr>
		<tr>
			<td class="" rowspan="3" width="100px"><?= $model->lhthroughrail1 ?></td>
			<th class="DarkerBlue">Before</th>
			<td><?= $model->cglhtrbefore ?></td>
		</tr>
		<tr>
			<th class="DarkerBlue">After</th>
			<td><?= $model->cglhtrafter ?></td>
			<td>Y</td>
			<td><?php if ($model->cglhtrmpi == true) {echo "<span class='check'>&#10003;</span>";} ?></td>
		</tr>
		<tr>
			<th class="DarkerBlue">Length</th>
			<td><?= $model->cglhtrlength ?></td>
			<td>N</td>
			<td><?php if ($model->cglhtrmpi && $model->cglhtrmpi == False) {echo "<span class='check'>&#10003;</span>";} ?></td>
		</tr>
		<tr>
			<th class="DarkerBlue" rowspan="1">L/H Belly Rail</th>
			<th class="DarkerBlue" colspan="2">Depth</th>
			<th class="DarkerBlue" rowspan="2" colspan="2">MPI<br />Clear</th>
		</tr>
		<tr>
			<td class="" rowspan="3" width="100px"><?= $model->lhbellyrail1 ?></td>
			<th class="DarkerBlue">Before</th>
			<td><?= $model->cglhbrbefore ?></td>
		</tr>
		<tr>
			<th class="DarkerBlue">After</th>
			<td><?= $model->cglhbrafter ?></td>
			<td>Y</td>
			<td><?php if ($model->cglhbrmpi == true) {echo "<span class='check'>&#10003;</span>";} ?></td>
		</tr>
		<tr>
			<th class="DarkerBlue">Length</th>
			<td><?= $model->cglhbrlength ?></td>
			<td>N</td>
			<td><?php if ($model->cglhbrmpi && $model->cglhbrmpi == False) {echo "<span class='check'>&#10003;</span>";} ?></td>
		</tr>





		<tr>
			<th class="DarkerBlue" rowspan="1">R/H Switchblade</th>
			<th class="DarkerBlue" colspan="2">Depth</th>
			<th class="DarkerBlue" rowspan="2" colspan="2">MPI<br />Clear</th>
		</tr>
		<tr>
			<td class="" rowspan="3" width="100px"><?= $model->rhswitchblade1 ?></td>
			<th class="DarkerBlue">Before</th>
			<td><?= $model->cgrhsbbefore ?></td>
		</tr>
		<tr>
			<th class="DarkerBlue">After</th>
			<td><?= $model->cgrhsbafter ?></td>
			<td>Y</td>
			<td><?php if ($model->cgrhsbmpi == true) {echo "<span class='check'>&#10003;</span>";} ?></td>
		</tr>
		<tr>
			<th class="DarkerBlue">Length</th>
			<td><?= $model->cgrhsblength ?></td>
			<td>N</td>
			<td><?php if ($model->cgrhsbmpi && $model->cgrhsbmpi == False) {echo "<span class='check'>&#10003;</span>";} ?></td>
		</tr>
		<tr>
			<th class="DarkerBlue" rowspan="1">R/H Stock Rail</th>
			<th class="DarkerBlue" colspan="2">Depth</th>
			<th class="DarkerBlue" rowspan="2" colspan="2">MPI<br />Clear</th>
		</tr>
		<tr>
			<td class="" rowspan="3" width="100px"><?= $model->rhstockrail1 ?></td>
			<th class="DarkerBlue">Before</th>
			<td><?= $model->cgrhsrbefore ?></td>
		</tr>
		<tr>
			<th class="DarkerBlue">After</th>
			<td><?= $model->cgrhsrafter ?></td>
			<td>Y</td>
			<td><?php if ($model->cgrhsrmpi == true) {echo "<span class='check'>&#10003;</span>";} ?></td>
			
		</tr>
		<tr>
			<th class="DarkerBlue">Length</th>
			<td><?= $model->cgrhsrlength ?></td>
			<td>N</td>
			<td><?php if ($model->cgrhsrmpi && $model->cgrhsrmpi == False) {echo "<span class='check'>&#10003;</span>";} ?></td>
		</tr>
		<tr>
			<th class="DarkerBlue" rowspan="1">R/H Through Rail</th>
			<th class="DarkerBlue" colspan="2">Depth</th>
			<th class="DarkerBlue" rowspan="2" colspan="2">MPI<br />Clear</th>
		</tr>
		<tr>
			<td class="" rowspan="3" width="100px"><?= $model->rhthroughrail1 ?></td>
			<th class="DarkerBlue">Before</th>
			<td><?= $model->cgrhtrbefore ?></td>
		</tr>
		<tr>
			<th class="DarkerBlue">After</th>
			<td><?= $model->cgrhtrafter ?></td>
			<td>Y</td>
			<td><?php if ($model->cgrhtrmpi == true) {echo "<span class='check'>&#10003;</span>";} ?></td>
		</tr>
		<tr>
			<th class="DarkerBlue">Length</th>
			<td><?= $model->cgrhtrlength ?></td>
			<td>N</td>
			<td><?php if ($model->cgrhtrmpi && $model->cgrhtrmpi == False) {echo "<span class='check'>&#10003;</span>";} ?></td>
		</tr>
		<tr>
			<th class="DarkerBlue" rowspan="1">R/H Belly Rail</th>
			<th class="DarkerBlue" colspan="2">Depth</th>
			<th class="DarkerBlue" rowspan="2" colspan="2">MPI<br />Clear</th>
		</tr>
		<tr>
			<td class="" rowspan="3" width="100px"><?= $model->rhbellyrail1 ?></td>
			<th class="DarkerBlue">Before</th>
			<td><?= $model->cgrhbrbefore ?></td>
		</tr>
		<tr>
			<th class="DarkerBlue">After</th>
			<td><?= $model->cgrhbrafter ?></td>
			<td>Y</td>
			<td><?php if ($model->cgrhbrmpi == true) {echo "<span class='check'>&#10003;</span>";} ?></td>
			
		</tr>
		<tr>
			<th class="DarkerBlue">Length</th>
			<td><?= $model->cgrhbrlength ?></td>
			<td>N</td>
			<td><?php if ($model->cgrhbrmpi && $model->cgrhbrmpi == False) {echo "<span class='check'>&#10003;</span>";} ?></td>
		
		</tr>
		<tr>
			<td colspan="5" class="nolb norb notbb">&nbsp;</td>
		</tr>
		<tr>
			<th colspan="5" class="DarkerBlue">Comments</th>
		</tr>
		<tr>
			<td colspan="5" height="64px"><?= $model->cgcomments ?></td>
		</tr>
		
	</table>    
	
		</td>
		</tr>
	</table>

</div>
