<?php
use yii\helpers\Html;
use yii\helpers\Url;

/* @var $this yii\web\View */
/* @var $model frontend\models\Wel233 */
?>
<div class="wel233-view">
    <table class="table text-center">
        <thead>
            <tr>
                <td colspan="3" class="text-left Title" align="left"><?= Html::Img('https://my.inlinetrack.co.uk/images/balfourbeatty.png'); ?></td>
                <td colspan="7" class="text-right Title" align="right">Aluminothermic Weld Installation <br />
                    Standard Form: OPS-SF-6353d-RAIL</td>
            </tr>
            <tr>
                <td colspan="10" class="Title" style="text-align: Center">Weld Installation Sheet</td>
            </tr>
        </thead>
        <tbody>
            <tr>
                <th colspan="3" class="">Senior Welding Coordinator</th>
                <td colspan="3"><?= $model->seniorweldingcoordinator ?></td>
                <th colspan="1" class="">Sheet</th>
                <td colspan="3"><?= '1 of '.  $model->sheet2 ?></td>
            </tr>
            <tr>
                <th colspan="2" class="">Week Number</th>
                <td colspan="1" width="10%" ><?= $model->weekno ?></td>
                <td colspan="3" width="20%"></td>
                <th colspan="2" class="">Job Cost Number</th>
                <td colspan="2"><?= $model->jcn ?></td>
            </tr>
            <tr>
                <th colspan="2" class="">Site</th>
                <td colspan="8"><?= $model->site ?></td>
            </tr>
            <tr>
                <th colspan="2" class="">Gas Kit number</th>
                <td colspan="3"><?= $model->gkitno ?></td>
                <th colspan="2" class="">Welding Company</th>
                <td colspan="3">Inline Track Welding Limited</td>
            </tr>
            <tr>
                <th colspan="2" class="">Welders Name (Print)</th>
                <td colspan="3"><?= $model->weldersname ?></td>
                <th colspan="2" class="">Welders/Assistant Name</th>
                <td colspan="3"><?= $model->weldersastname ?></td>
            </tr>
        </tbody>
        </table>
        <table class="table">
            </tbody>

            <tr>
                <th colspan="3" class="" align="left">Weld Database Number</th>
                <td colspan="4"><?= $model->welddbno1 ?></td>
                <td colspan="4"><?= $model->welddbno2 ?></td>
                <td colspan="4"><?= $model->welddbno3 ?></td>
                <td colspan="4"><?= $model->welddbno4 ?></td>
            </tr>
            <tr>

                <th colspan="3" class="" align="left">Date weld cast</th>
                <td colspan="4"><?= $model->w1date ?></td>
                <td colspan="4"><?= $model->w2date ?></td>
                <td colspan="4"><?= $model->w3date ?></td>
                <td colspan="4"><?= $model->w4date ?></td>
            </tr>
            <tr>
                <th colspan="3" class="" align="left">Time weld cast</th>
                <td colspan="4"><?= $model->w1time ?></td>
                <td colspan="4"><?= $model->w2time ?></td>
                <td colspan="4"><?= $model->w3time ?></td>
                <td colspan="4"><?= $model->w4time ?></td>
            </tr>

            <tr>
                <td class="rotated" rowspan="9" style="transform: rotate(-90.0deg); -webkit-transform: rotate(-90.0deg);" text-rotate="90">
                    Location
                </td>
                <th colspan="2" class="">ELR</th>
                <td colspan="4"><?= $model->elr1 ?></td>
                <td colspan="4"><?= $model->elr2 ?></td>
                <td colspan="4"><?= $model->elr3 ?></td>
                <td colspan="4"><?= $model->elr4 ?></td>
            </tr>
            <tr>
                <th colspan="2" class="">Chord Point / Weld Number</th>
                <td colspan="4"><?= $model->chord1 ?></td>
                <td colspan="4"><?= $model->chord2 ?></td>
                <td colspan="4"><?= $model->chord3 ?></td>
                <td colspan="4"><?= $model->chord4 ?></td>
            </tr>
            <tr>
                <th colspan="2" class="">Mileage</th>
                <td colspan="4"><?= $model->mileage1." ".$model->mileage2." ".$model->mileage3." ".$model->mileage4 ?>
                </td>
                <td colspan="4"><?= $model->mileage5." ".$model->mileage6." ".$model->mileage7." ".$model->mileage8 ?>
                </td>
                <td colspan="4">
                    <?= $model->mileage9." ".$model->mileage10." ".$model->mileage11." ".$model->mileage12 ?>
                </td>
                <td colspan="4">
                    <?= $model->mileage13." ".$model->mileage14." ".$model->mileage15." ".$model->mileage16 ?>
                </td>

            </tr>
            <tr>
                <th colspan="2" class="">Track ID</th>
                <td colspan="4"><?= $model->trackid1 ?></td>
                <td colspan="4"><?= $model->trackid2 ?></td>
                <td colspan="4"><?= $model->trackid3 ?></td>
                <td colspan="4"><?= $model->trackid4 ?></td>
            </tr>
            <tr>
                <th colspan="2" class="">(Back to low mileage) Rail</th>
                <td colspan="2" class="">
                    <?= $model->btol1 !== 'LH Rail' && $model->btol1 !== '' ? '<del>Left</del>' : '<span class="">Left</span>' ?>
                </td>
                <td colspan="2" class="">
                    <?= $model->btol1 !== 'RH Rail' && $model->btol1 !== '' ? '<del>Right</del>' : '<span class="">Right</span>' ?>
                </td>
                <td colspan="2" class="">
                    <?= $model->btol2 !== 'LH Rail' && $model->btol2 !== '' ? '<del>Left</del>' : '<span class="">Left</span>' ?>
                </td>
                <td colspan="2" class="">
                    <?= $model->btol2 !== 'RH Rail' && $model->btol2 !== '' ? '<del>Right</del>' : '<span class="">Right</span>' ?>
                </td>
                <td colspan="2" class="">
                    <?= $model->btol3 !== 'LH Rail' && $model->btol3 !== '' ? '<del>Left</del>' : '<span class="">Left</span>' ?>
                </td>
                <td colspan="2" class="">
                    <?= $model->btol3 !== 'RH Rail' && $model->btol3 !== '' ? '<del>Right</del>' : '<span class="">Right</span>' ?>
                </td>
                <td colspan="2" class="">
                    <?= $model->btol4 !== 'LH Rail' && $model->btol4 !== '' ? '<del>Left</del>' : '<span class="">Left</span>' ?>
                </td>
                <td colspan="2" class="">
                    <?= $model->btol4 !== 'RH Rail' && $model->btol4 !== '' ? '<del>Right</del>' : '<span class="">Right</span>' ?>
                </td>
            </tr>
            <tr>
                <th colspan="2" class="">open,lineside,tunnel,platform</th>
                <td colspan="4"><?= $model->type1 ?></td>
                <td colspan="4"><?= $model->type2 ?></td>
                <td colspan="4"><?= $model->type3 ?></td>
                <td colspan="4"><?= $model->type4 ?></td>
            </tr>
            <tr>
                <th colspan="2" class="">Linespeed</th>
                <td colspan="4"><?= $model->linespeed1 ?> </td>
                <td colspan="4"><?= $model->linespeed2 ?> </td>
                <td colspan="4"><?= $model->linespeed3 ?> </td>
                <td colspan="4"><?= $model->linespeed4 ?> </td>
            </tr>
            <tr>
                <th colspan="2" class="">Sleeper type</th>
                <td colspan="4"><?= $model->sleeper1 ?></td>
                <td colspan="4"><?= $model->sleeper2 ?></td>
                <td colspan="4"><?= $model->sleeper3 ?></td>
                <td colspan="4"><?= $model->sleeper4 ?></td>
            </tr>
            <tr>
                <th colspan="2" class="">Consolidated</th>
                <td colspan="2" class="">
                    <?= $model->consolidated1 != 'Yes' && $model->consolidated1 !== '' ? '<del>Yes</del>' : '<span class="">Yes</span>' ?>
                </td>
                <td colspan="2" class="">
                    <?= $model->consolidated1 != 'No' && $model->consolidated1 !== '' ? '<del>No</del>' : '<span class="">No</span>' ?>
                </td>
                <td colspan="2" class="">
                    <?= $model->consolidated2 != 'Yes' && $model->consolidated2 !== '' ? '<del>Yes</del>' : '<span class="">Yes</span>' ?>
                </td>
                <td colspan="2" class="">
                    <?= $model->consolidated2 != 'No' && $model->consolidated2 !== '' ? '<del>No</del>' : '<span class="">No</span>' ?>
                </td>
                <td colspan="2" class="">
                    <?= $model->consolidated3 != 'Yes' && $model->consolidated3 !== '' ? '<del>Yes</del>' : '<span class="">Yes</span>' ?>
                </td>
                <td colspan="2" class="">
                    <?= $model->consolidated3 != 'No' && $model->consolidated3 !== '' ? '<del>No</del>' : '<span class="">No</span>' ?>
                </td>
                <td colspan="2" class="">
                    <?= $model->consolidated4 != 'Yes' && $model->consolidated4 !== ''  ? '<del>Yes</del>' : '<span class="">Yes</span>' ?>
                </td>
                <td colspan="2" class="">
                    <?= $model->consolidated4 != 'No' && $model->consolidated4 !== '' ? '<del>No</del>' : '<span class="">No</span>' ?>
                </td>
            </tr>
            <tr>
                <td class="rotated" rowspan="4" style="transform: rotate(-90.0deg); -webkit-transform: rotate(-90.0deg);" text-rotate="90">
                    Rail Details
                </td>
                <th colspan="2" class="">(four foot facing rail) Rail</th>
                <td colspan="2" class="">L/H Rail</td>
                <td colspan="2" class="">R/H Rail</td>
                <td colspan="2" class="">L/H Rail</td>
                <td colspan="2" class="">R/H Rail</td>
                <td colspan="2" class="">L/H Rail</td>
                <td colspan="2" class="">R/H Rail</td>
                <td colspan="2" class="">L/H Rail</td>
                <td colspan="2" class="">R/H Rail</td>
            </tr>
            <tr>
                <th colspan="2" class="">Profile</th>
                <td colspan="2"><?= $model->profile1 ?></td>
                <td colspan="2"><?= $model->profile2 ?></td>
                <td colspan="2"><?= $model->profile3 ?></td>
                <td colspan="2"><?= $model->profile4 ?></td>
                <td colspan="2"><?= $model->profile5 ?></td>
                <td colspan="2"><?= $model->profile6 ?></td>
                <td colspan="2"><?= $model->profile7 ?></td>
                <td colspan="2"><?= $model->profile8 ?></td>
            </tr>
            <tr>
                <th colspan="2" class="">Grade</th>
                <td colspan="2"><?= $model->grade1 ?></td>
                <td colspan="2"><?= $model->grade2 ?></td>
                <td colspan="2"><?= $model->grade3 ?></td>
                <td colspan="2"><?= $model->grade4 ?></td>
                <td colspan="2"><?= $model->grade5 ?></td>
                <td colspan="2"><?= $model->grade6 ?></td>
                <td colspan="2"><?= $model->grade7 ?></td>
                <td colspan="2"><?= $model->grade8 ?></td>
            </tr>
            <tr>
                <th colspan="2" class="">Wear</th>
                <td colspan="2" class="text-center"><?= str_replace('mm', '', $model->wear1) ?><span align="right"
                        class="float-right pull-right">mm</span></td>
                <td colspan="2" class="text-center"><?= str_replace('mm', '', $model->wear2) ?><span
                        class="float-right">mm</span></td>
                <td colspan="2" class="text-center"><?= str_replace('mm', '', $model->wear3) ?><span
                        class="float-right">mm</span></td>
                <td colspan="2" class="text-center"><?= str_replace('mm', '', $model->wear4) ?><span
                        class="float-right">mm</span></td>
                <td colspan="2" class="text-center"><?= str_replace('mm', '', $model->wear5) ?><span
                        class="float-right">mm</span></td>
                <td colspan="2" class="text-center"><?= str_replace('mm', '', $model->wear6) ?><span
                        class="float-right">mm</span></td>
                <td colspan="2" class="text-center"><?= str_replace('mm', '', $model->wear7) ?><span
                        class="float-right">mm</span></td>
                <td colspan="2" class="text-center"><?= str_replace('mm', '', $model->wear8) ?><span
                        class="float-right">mm</span></td>
            </tr>

            <tr>
                <td class="rotated" rowspan="3" style="transform: rotate(-90.0deg); -webkit-transform: rotate(-90.0deg);" text-rotate="90">
                    Rail Prep
                </td>
                <th colspan="2" class="">Gap preparation method</th>
                <td colspan="2" class="">
                    <?= $model->gapprep1 != 'Flame' && $model->gapprep1 !== '' ? '<del>Flame</del>' : '<span class="">Flame</span>' ?>
                </td>
                <td colspan="2" class="">
                    <?= $model->gapprep1 != 'Disc' && $model->gapprep1 !== '' ? '<del>Disc</del>' : '<span class="">Disc</span>' ?>
                </td>
                <td colspan="2" class="">
                    <?= $model->gapprep2 != 'Flame' && $model->gapprep2 !== '' ? '<del>Flame</del>' : '<span class="">Flame</span>' ?>
                </td>
                <td colspan="2" class="">
                    <?= $model->gapprep2 != 'Disc' && $model->gapprep2 !== '' ? '<del>Disc</del>' : '<span class="">Disc</span>' ?>
                </td>
                <td colspan="2" class="">
                    <?= $model->gapprep3 != 'Flame' && $model->gapprep3 !== '' ? '<del>Flame</del>' : '<span class="">Flame</span>' ?>
                </td>
                <td colspan="2" class="">
                    <?= $model->gapprep3 != 'Disc' && $model->gapprep3 !== '' ? '<del>Disc</del>' : '<span class="">Disc</span>' ?>
                </td>
                <td colspan="2" class="">
                    <?= $model->gapprep4 != 'Flame' && $model->gapprep4 !== ''  ? '<del>Flame</del>' : '<span class="">Flame</span>' ?>
                </td>
                <td colspan="2" class="">
                    <?= $model->gapprep4 != 'Disc' && $model->gapprep4 !== '' ? '<del>Disc</del>' : '<span class="">Disc</span>' ?>
                </td>
            </tr>
            <tr>
                <th width="25%" class="" colspan="2" class="">Welding gap</th>
                <td width="4.5%" class=""> <?= $model->gap1 ? $model->gap1 : '&nbsp;' ?></td>
                <td width="4.5%" class=""> <?= $model->wgap5 ? $model->wgap5 : '&nbsp;' ?></td>
                <td width="4.5%" class=""> <?= $model->wgap6 ? $model->wgap6 : '&nbsp;' ?></td>
                <td width="4.5%" class=""> <?= $model->wgap7 ? $model->wgap7 : '&nbsp;' ?></td>
                <td width="4.5%" class=""><?= $model->gap2 ? $model->gap2 : '&nbsp;' ?></td>
                <td width="4.5%" class=""><?= $model->wgap8 ? $model->wgap8 : '&nbsp;' ?></td>
                <td width="4.5%" class=""><?= $model->wgap9 ? $model->wgap9 : '&nbsp;' ?></td>
                <td width="4.5%" class=""><?= $model->wgap10 ? $model->wgap10 : '&nbsp;' ?></td>
                <td width="4.5%" class=""><?= $model->gap3 ?></td>
                <td width="4.5%" class=""><?= $model->wgap11 ? $model->wgap11 : '&nbsp;' ?></td>
                <td width="4.5%" class=""><?= $model->wgap12 ? $model->wgap12 : '&nbsp;' ?></td>
                <td width="4.5%" class=""><?= $model->wgap13 ? $model->wgap13 : '&nbsp;' ?></td>
                <td width="4.5%" class=""><?= $model->gap4 ? $model->gap4 : '&nbsp;' ?></td>
                <td width="4.5%" class=""><?= $model->wgap14 ? $model->wgap14 : '&nbsp;' ?></td>
                <td width="4.5%" class=""><?= $model->wgap15 ? $model->wgap15 : '&nbsp;' ?></td>
                <td width="4.5%" class=""><?= $model->wgap16 ? $model->wgap16 : '&nbsp;' ?></td>

            </tr>

            <tr>
                <th colspan="2" class="">Aligment method</th>
                <td colspan="4"><?= $model->align1 ?></td>
                <td colspan="4"><?= $model->align2 ?></td>
                <td colspan="4"><?= $model->align3 ?></td>
                <td colspan="4"><?= $model->align4 ?></td>
            </tr>
            <tr>
                <td class="rotated" rowspan="11" style="transform: rotate(-90.0deg); -webkit-transform: rotate(-90.0deg);" text-rotate="90">
                    Welding
                </td>
                <th colspan="2" class="">Rail Temperature</th>
                <td colspan="4"><?= $model->railtemp1 ?> <span class="float-right pull-right text-right">&deg;C</span></td>
                <td colspan="4"><?= $model->railtemp2 ?> <span class="float-right">&deg;C</span></td>
                <td colspan="4"><?= $model->railtemp3 ?> <span class="float-right">&deg;C</span></td>
                <td colspan="4"><?= $model->railtemp4 ?> <span class="float-right">&deg;C</span></td>
            </tr>
            <tr>
                <th colspan="2" class="">Weld Type</th>
                <td colspan="4"><?= $model->weldtype1 ?></td>
                <td colspan="4"><?= $model->weldtype2 ?></td>
                <td colspan="4"><?= $model->weldtype3 ?></td>
                <td colspan="4"><?= $model->weldtype4 ?></td>
            </tr>
            <tr>
                <th colspan="2" class="">Mould type</th>
                <td colspan="4"><?= $model->mould1 ?></td>
                <td colspan="4"><?= $model->mould2 ?></td>
                <td colspan="4"><?= $model->mould3 ?></td>
                <td colspan="4"><?= $model->mould4 ?></td>
            </tr>
            <tr>
                <th colspan="2" class="">Fuel Gas used</th>
                <td colspan="2" class="">
                    <?= $model->fuelgused1 != 'Propane' && $model->fuelgused1 !== '' ? '<del>Propane</del>' : '<span class="">Propane</span>' ?>
                </td>
                <td colspan="2" class="">
                    <?= $model->fuelgused1 != 'Acetylene' && $model->fuelgused1 !== '' ? '<del>Acetylene</del>' : '<span class="">Acetylene</span>' ?>
                </td>
                <td colspan="2" class="">
                    <?= $model->fuelgused2 != 'Propane' && $model->fuelgused2 !== '' ? '<del>Propane</del>' : '<span class="">Propane</span>' ?>
                </td>
                <td colspan="2" class="">
                    <?= $model->fuelgused2 != 'Acetylene' && $model->fuelgused2 !== '' ? '<del>Acetylene</del>' : '<span class="">Acetylene</span>' ?>
                </td>
                <td colspan="2" class="">
                    <?= $model->fuelgused3 != 'Propane' && $model->fuelgused3 !== '' ? '<del>Propane</del>' : '<span class="">Propane</span>' ?>
                </td>
                <td colspan="2" class="">
                    <?= $model->fuelgused3 != 'Acetylene' && $model->fuelgused3 !== '' ? '<del>Acetylene</del>' : '<span class="">Acetylene</span>' ?>
                </td>
                <td colspan="2" class="">
                    <?= $model->fuelgused4 != 'Propane' && $model->fuelgused4 !== ''  ? '<del>Propane</del>' : '<span class="">Propane</span>' ?>
                </td>
                <td colspan="2" class="">
                    <?= $model->fuelgused4 != 'Acetylene' && $model->fuelgused4 !== '' ? '<del>Acetylene</del>' : '<span class="">Acetylene</span>' ?>
                </td>
            </tr>
            <tr>
                <th colspan="2" class="">Portion</th>
                <td colspan="4"><?= $model->portion1 ?></td>
                <td colspan="4"><?= $model->portion2 ?></td>
                <td colspan="4"><?= $model->portion3 ?></td>
                <td colspan="4"><?= $model->portion4 ?></td>
            </tr>
            <tr>
                <th colspan="2" class="">Batch number</th>
                <td colspan="4"><?= $model->pbn1 ?></td>
                <td colspan="4"><?= $model->pbn2 ?></td>
                <td colspan="4"><?= $model->pbn3 ?></td>
                <td colspan="4"><?= $model->pbn4 ?></td>
            </tr>
            <tr>
                <th colspan="2" class="">Gap Dimensions Head</th>
                <td colspan="4" class="text-center"><?= str_replace('mm', '', $model->gapdhead1) ?><span
                        class="float-right">mm</span></td>
                <td colspan="4" class="text-center"><?= str_replace('mm', '', $model->gapdhead2) ?><span
                        class="float-right">mm</span></td>
                <td colspan="4" class="text-center"><?= str_replace('mm', '', $model->gapdhead3) ?><span
                        class="float-right">mm</span></td>
                <td colspan="4" class="text-center"><?= str_replace('mm', '', $model->gapdhead4) ?><span
                        class="float-right">mm</span></td>
            </tr>
            <tr>
                <th colspan="2" class="">Gap Dimensions Web</th>
                <td colspan="4" class="text-center"><?= str_replace('mm', '', $model->gapdweb1) ?><span
                        class="float-right">mm</span></td>
                <td colspan="4" class="text-center"><?= str_replace('mm', '', $model->gapdweb2) ?><span
                        class="float-right">mm</span></td>
                <td colspan="4" class="text-center"><?= str_replace('mm', '', $model->gapdweb3) ?><span
                        class="float-right">mm</span></td>
                <td colspan="4" class="text-center"><?= str_replace('mm', '', $model->gapdweb4) ?><span
                        class="float-right">mm</span></td>
            </tr>
            <tr>
                <th colspan="2" class="">Gap Dimensions Foot</th>
                <td colspan="4" class="text-center"><?= str_replace('mm', '', $model->gapdfoot1) ?><span
                        class="float-right">mm</span></td>
                <td colspan="4" class="text-center"><?= str_replace('mm', '', $model->gapdfoot2) ?><span
                        class="float-right">mm</span></td>
                <td colspan="4" class="text-center"><?= str_replace('mm', '', $model->gapdfoot3) ?><span
                        class="float-right">mm</span></td>
                <td colspan="4" class="text-center"><?= str_replace('mm', '', $model->gapdfoot4) ?><span
                        class="float-right">mm</span></td>
            </tr>

            <tr>
                <th colspan="2" class="">Tapping time</th>
                <td colspan="4"><?= $model->tappingtime1 ?><span class="float-right">Sec's</span></td>
                <td colspan="4"><?= $model->tappingtime2 ?><span class="float-right">Sec's</span></td>
                <td colspan="4"><?= $model->tappingtime3 ?><span class="float-right">Sec's</span></td>
                <td colspan="4"><?= $model->tappingtime4 ?><span class="float-right">Sec's</span></td>
            </tr>
            <tr>
                <th colspan="2" class="">Welders Stamp Number</th>
                <td colspan="4"><?= $model->wstampno1 ?></td>
                <td colspan="4"><?= $model->wstampno2 ?></td>
                <td colspan="4"><?= $model->wstampno3 ?></td>
                <td colspan="4"><?= $model->wstampno4 ?></td>
            </tr>
            <tr>
                <td class="rotated" rowspan="3" style="transform: rotate(-90.0deg); -webkit-transform: rotate(-90.0deg);  " text-rotate="90">
                    Tensors
                </td>
                <th colspan="2" class="">Kit Number</th>
                <td colspan="4"><?= $model->kitno1 ?></td>
                <td colspan="4"><?= $model->kitno2 ?></td>
                <td colspan="4"><?= $model->kitno3 ?></td>
                <td colspan="4"><?= $model->kitno4 ?></td>
            </tr>
            <tr>
                <th colspan="2" class="">Pressure at end of preheat</th>
                <td colspan="4"><?= $model->pressurep1 ?></td>
                <td colspan="4"><?= $model->pressurep2 ?></td>
                <td colspan="4"><?= $model->pressurep3 ?></td>
                <td colspan="4"><?= $model->pressurep4 ?></td>
            </tr>

            <tr>
                <th colspan="2" class="">Pressure after shearing</th>
                <td colspan="4"><?= $model->pressures1 ?></td>
                <td colspan="4"><?= $model->pressures2 ?></td>
                <td colspan="4"><?= $model->pressures3 ?></td>
                <td colspan="4"><?= $model->pressures4 ?></td>
            </tr>
            <tr>
                <td class="rotated" rowspan="5" style="transform: rotate(-90.0deg); -webkit-transform: rotate(-90.0deg);" text-rotate="90">
                    Welder Insp
                </td>
                <th colspan="2" class="">Insp as per NR/L2/TRK/0032</th>
                <td colspan="2" class="">
                    <?= $model->nrtrk1 != 'PASS' && $model->nrtrk1 !== '' ? '<del>Pass</del>' : '<span class="">Pass</span>' ?>
                </td>
                <td colspan="2" class="">
                    <?= $model->nrtrk1 != 'FAIL' && $model->nrtrk1 !== '' ? '<del>Fail</del>' : '<span class="">Fail</span>' ?>
                </td>
                <td colspan="2" class="">
                    <?= $model->nrtrk2 != 'PASS' && $model->nrtrk2 !== '' ? '<del>Pass</del>' : '<span class="">Pass</span>' ?>
                </td>
                <td colspan="2" class="">
                    <?= $model->nrtrk2 != 'FAIL' && $model->nrtrk2 !== '' ? '<del>Fail</del>' : '<span class="">Fail</span>' ?>
                </td>
                <td colspan="2" class="">
                    <?= $model->nrtrk3 != 'PASS' && $model->nrtrk3 !== '' ? '<del>Pass</del>' : '<span class="">Pass</span>' ?>
                </td>
                <td colspan="2" class="">
                    <?= $model->nrtrk3 != 'FAIL' && $model->nrtrk3 !== '' ? '<del>Fail</del>' : '<span class="">Fail</span>' ?>
                </td>
                <td colspan="2" class="">
                    <?= $model->nrtrk4 != 'PASS' && $model->nrtrk4 !== '' ? '<del>Pass</del>' : '<span class="">Pass</span>' ?>
                </td>
                <td colspan="2" class="">
                    <?= $model->nrtrk4 != 'FAIL' && $model->nrtrk4 !== '' ? '<del>Fail</del>' : '<span class="">Fail</span>' ?>
                </td>
            </tr>
            <tr>
                <th colspan="2" class="">Non conformance form</th>
                <td colspan="2" class="">
                    <?= $model->ncfr1 != 'Yes' && $model->ncfr1 !== '' ? '<del>Yes</del>' : '<span class="">Yes</span>' ?>
                </td>
                <td colspan="2" class="">
                    <?= $model->ncfr1 != 'No' && $model->ncfr1 !== '' ? '<del>No</del>' : '<span class="">No</span>' ?></td>
                <td colspan="2" class="">
                    <?= $model->ncfr2 != 'Yes' && $model->ncfr2 !== '' ? '<del>Yes</del>' : '<span class="">Yes</span>' ?>
                </td>
                <td colspan="2" class="">
                    <?= $model->ncfr2 != 'No' && $model->ncfr2 !== '' ? '<del>No</del>' : '<span class="">No</span>' ?></td>
                <td colspan="2" class="">
                    <?= $model->ncfr3 != 'Yes' && $model->ncfr3 !== '' ? '<del>Yes</del>' : '<span class="">Yes</span>' ?>
                </td>
                <td colspan="2" class="">
                    <?= $model->ncfr3 != 'No' && $model->ncfr3 !== '' ? '<del>No</del>' : '<span class="">No</span>' ?></td>
                <td colspan="2" class="">
                    <?= $model->ncfr4 != 'Yes' && $model->ncfr4 !== ''  ? '<del>Yes</del>' : '<span class="">Yes</span>' ?>
                </td>
                <td colspan="2" class="">
                    <?= $model->ncfr4 != 'No' && $model->ncfr4 !== '' ? '<del>No</del>' : '<span class="">No</span>' ?></td>

            </tr>
            <tr>
                <th colspan="2" class="">Weld clamped</th>
                <td colspan="2" class="">
                    <?= $model->clamped1 != 'Yes' && $model->clamped1 !== '' ? '<del>Yes</del>' : '<span class="">Yes</span>' ?>
                </td>
                <td colspan="2" class="">
                    <?= $model->clamped1 != 'No' && $model->clamped1 !== '' ? '<del>No</del>' : '<span class="">No</span>' ?>
                </td>
                <td colspan="2" class="">
                    <?= $model->clamped2 != 'Yes' && $model->clamped2 !== '' ? '<del>Yes</del>' : '<span class="">Yes</span>' ?>
                </td>
                <td colspan="2" class="">
                    <?= $model->clamped2 != 'No' && $model->clamped2 !== '' ? '<del>No</del>' : '<span class="">No</span>' ?>
                </td>
                <td colspan="2" class="">
                    <?= $model->clamped3 != 'Yes' && $model->clamped3 !== '' ? '<del>Yes</del>' : '<span class="">Yes</span>' ?>
                </td>
                <td colspan="2" class="">
                    <?= $model->clamped3 != 'No' && $model->clamped3 !== '' ? '<del>No</del>' : '<span class="">No</span>' ?>
                </td>
                <td colspan="2" class="">
                    <?= $model->clamped4 != 'Yes' && $model->clamped4 !== ''  ? '<del>Yes</del>' : '<span class="">Yes</span>' ?>
                </td>
                <td colspan="2" class="">
                    <?= $model->clamped4 != 'No' && $model->clamped4 !== '' ? '<del>No</del>' : '<span class="">No</span>' ?>
                </td>
            </tr>
            <tr>
                <th colspan="2" class="">MAC's reported to site manager</th>
                <td colspan="2" class="">
                    <?= $model->macsreported1 != 'Yes' && $model->macsreported1 !== '' ? '<del>Yes</del>' : '<span class="">Yes</span>' ?>
                </td>
                <td colspan="2" class="">
                    <?= $model->macsreported1 != 'No' && $model->macsreported1 !== '' ? '<del>No</del>' : '<span class="">No</span>' ?>
                </td>
                <td colspan="2" class="">
                    <?= $model->macsreported2 != 'Yes' && $model->macsreported2 !== '' ? '<del>Yes</del>' : '<span class="">Yes</span>' ?>
                </td>
                <td colspan="2" class="">
                    <?= $model->macsreported2 != 'No' && $model->macsreported2 !== '' ? '<del>No</del>' : '<span class="">No</span>' ?>
                </td>
                <td colspan="2" class="">
                    <?= $model->macsreported3 != 'Yes' && $model->macsreported3 !== '' ? '<del>Yes</del>' : '<span class="">Yes</span>' ?>
                </td>
                <td colspan="2" class="">
                    <?= $model->macsreported3 != 'No' && $model->macsreported3 !== '' ? '<del>No</del>' : '<span class="">No</span>' ?>
                </td>
                <td colspan="2" class="">
                    <?= $model->macsreported4 != 'Yes' && $model->macsreported4 !== ''  ? '<del>Yes</del>' : '<span class="">Yes</span>' ?>
                </td>
                <td colspan="2" class="">
                    <?= $model->macsreported4 != 'No' && $model->macsreported4 !== '' ? '<del>No</del>' : '<span class="">No</span>' ?>
                </td>

            </tr>
            <tr>
                <th colspan="2" class="">20mph ESR required</th>
                <td colspan="2" class="">
                    <?= $model->esr1 != 'Yes' && $model->esr1 !== '' ? '<del>Yes</del>' : '<span class="">Yes</span>' ?>
                </td>
                <td colspan="2" class="">
                    <?= $model->esr1 != 'No' && $model->esr1 !== '' ? '<del>No</del>' : '<span class="">No</span>' ?></td>
                <td colspan="2" class="">
                    <?= $model->esr2 != 'Yes' && $model->esr2 !== '' ? '<del>Yes</del>' : '<span class="">Yes</span>' ?>
                </td>
                <td colspan="2" class="">
                    <?= $model->esr2 != 'No' && $model->esr2 !== '' ? '<del>No</del>' : '<span class="">No</span>' ?></td>
                <td colspan="2" class="">
                    <?= $model->esr3 != 'Yes' && $model->esr3 !== '' ? '<del>Yes</del>' : '<span class="">Yes</span>' ?>
                </td>
                <td colspan="2" class="">
                    <?= $model->esr3 != 'No' && $model->esr3 !== '' ? '<del>No</del>' : '<span class="">No</span>' ?></td>
                <td colspan="2" class="">
                    <?= $model->esr4 != 'Yes' && $model->esr4 !== ''  ? '<del>Yes</del>' : '<span class="">Yes</span>' ?>
                </td>
                <td colspan="2" class="">
                    <?= $model->esr4 != 'No' && $model->esr4 !== '' ? '<del>No</del>' : '<span class="">No</span>' ?></td>
            </tr>
            <tr>
                <td class="rotated" rowspan="3" style="transform: rotate(-90.0deg); -webkit-transform: rotate(-90.0deg);" text-rotate="90">
                    Final Insp
                </td>
                <th colspan="2" class="">Insp as per NR/L2/TRK/0032</th>
                <td colspan="2" class="">
                    <?= $model->insnrtrk1 != 'PASS' && $model->insnrtrk1 !== '' ? '<del>Pass</del>' : '<span class="">Pass</span>' ?>
                </td>
                <td colspan="2" class="">
                    <?= $model->insnrtrk1 != 'FAIL' && $model->insnrtrk1 !== '' ? '<del>Fail</del>' : '<span class="">Fail</span>' ?>
                </td>
                <td colspan="2" class="">
                    <?= $model->insnrtrk2 != 'PASS' && $model->insnrtrk2 !== '' ? '<del>Pass</del>' : '<span class="">Pass</span>' ?>
                </td>
                <td colspan="2" class="">
                    <?= $model->insnrtrk2 != 'FAIL' && $model->insnrtrk2 !== '' ? '<del>Fail</del>' : '<span class="">Fail</span>' ?>
                </td>
                <td colspan="2" class="">
                    <?= $model->insnrtrk3 != 'PASS' && $model->insnrtrk3 !== '' ? '<del>Pass</del>' : '<span class="">Pass</span>' ?>
                </td>
                <td colspan="2" class="">
                    <?= $model->insnrtrk3 != 'FAIL' && $model->insnrtrk3 !== '' ? '<del>Fail</del>' : '<span class="">Fail</span>' ?>
                </td>
                <td colspan="2" class="">
                    <?= $model->insnrtrk4 != 'PASS' && $model->insnrtrk4 !== '' ? '<del>Pass</del>' : '<span class="">Pass</span>' ?>
                </td>
                <td colspan="2" class="">
                    <?= $model->insnrtrk4 != 'FAIL' && $model->insnrtrk4 !== '' ? '<del>Fail</del>' : '<span class="">Fail</span>' ?>
                </td>
            </tr>
            <tr>
                <th colspan="2" class="">Result of Inspection</th>
                <td colspan="4"><?= $model->result1 ?></td>
                <td colspan="4"><?= $model->result2 ?></td>
                <td colspan="4"><?= $model->result3 ?></td>
                <td colspan="4"><?= $model->result4 ?></td>

            </tr>
            <tr>
                <th colspan="2" class="">Date of Inspection</th>
                <td colspan="4"><?= $model->inspectiongdate1 ?></td>
                <td colspan="4"><?= $model->inspectiongdate2 ?></td>
                <td colspan="4"><?= $model->inspectiongdate3 ?></td>
                <td colspan="4"><?= $model->inspectiongdate4 ?></td>
            </tr>
            <tr>
                <td colspan="2">
                    Shift Details
                </td>
                <td colspan="">
                    Day / Night / Back
                </td>
                <td class="text-left" colspan="4">
                    Day: <?= date('l', strtotime(str_replace('/', '-', $model->insdate))) ?>
                </td>
                <td class="text-left" colspan="4">
                    Date: <?= $model->insdate ?>
                </td>
                <td class="text-left" colspan="4">
                    Start Time: <?= $model->shiftfrom ?>
                </td>
                <td class="text-left" colspan="4">
                    End Time: <?= $model->shiftto ?>
                </td>
            </tr>
            <tr>
                <td colspan="19"  style="border-left: none; border-right: none;" height="5px"> &nbsp;</td>
            </tr>
            <tr>
                <td colspan="19" style="border-left: solid 1px #000; border-right: solid 1px #000;" class="Title">
                    IF THE WELD DOES NO COMPLY WITH NR/L2TRK/0032 FOR ANY REASON THE WELD SHALL BE CLAMPED
                </td>
            </tr>
            <tr>
                <td colspan="19" style="border-left: none; border-right: none;"> &nbsp;</td>

            </tr>
            <tr>
                <td colspan="5" class="" align="left">
                    Track Welder Name: <?= $model->trackweldername1 ?>
                </td>
                <td colspan="5" class="text-left" align="left">Signed:

                    <img height="32px" width="auto" src="<?= $model->wsignatureloc ?>" />

                </td>
                <td colspan="4" class="" align="left">
                    Date: <?= $model->trackwelderdate1 ?>
                </td>
                <td colspan="7" class="" align="left">
                    Stamp Number: <?= $model->trackwelderstampno1 ?>
                </td>
            </tr>
            <tr>
                <td colspan="5" class="">Track Welder Name: <?= $model->trackweldername2 ?></td>
                <td colspan="5" class="" align="left">Signed : <img height="32px" width="auto" src="<?= $model->wasignatureloc ?>" />
                </td>
                <td colspan="4" class="">Date: <?= $model->trackwelderdate2 ?></td>
                <td colspan="7" class="">Stamp Number: <?= $model->trackwelderstampno2 ?></td>
            </tr>
            <tr>

                <td colspan="5" class="">Tech Officer Name:- <?= $model->repname ?></td>
                <td colspan="5" class="">Person in Charge: <?= $model->personincharge ?></td>
                <td colspan="4" class="" align="left">Signed:- <img height="32px" width="auto" src="<?= $model->signatureloc ?>" />
                </td>
                <td colspan="7" class="">Date:- <?= $model->trackwelderdate3 ?> </td>
            </tr>
            <tr>
                <td colspan="19" align="left">Verifing that the above welds have been installed</td>

            </tr>
        </tbody>
        <tfoot>
            <tr>
                <td colspan="9" style="border: none" align="left">Document Authoriser: David Swallow </td>
                <td colspan="10" style="border: none" align="right">Uncontrolled when printed or downloaded </td>
            </tr>
            <tr>
                <td colspan="4" style="border: none" align="left">Date of Issue: 02/12/2019</td>
                <td colspan="5" style="border: none">Page 1 of 1</td>
                <td colspan="5" style="border: none">Version: 1.3</td>
                <td colspan="5" style="border: none" align="right">A Balfour Beatty Rail Document</td>
            </tr>
        </tfoot>
    </table>
</div>
<style>
th{
    text-align: right;
}
.wel233-view .Title {
    font-size: 9pt !important;
}

.wel233-view td {
    padding: 5px 5px 5px, 5px;
    font-size: 6pt !important;

}

.wel233-view .table tbody,
.wel233-view .table tbody td {
    border: 1px solid #000;
}

.wel233-view .table tfoot,
.wel233-view .table tfoot td {
    border: none;
}

.wel233-view .table {
    border: none;
}
.rotated{
    vertical-align:middle;
    
}
del{
  background-color: #000;
}
</style>