<?php
use yii\helpers\Html;
use yii\helpers\Url;
/* @var $this yii\web\View */
/* @var $model modules\forms\models\Dt130 */
/* @var $form yii\widgets\ActiveForm */
?>
<div class="dt130-view">


    <table class="Table notbb nolb norb">
        <tr>
            <td colspan="8" rowspan="2" width="85%" class="notbb nolb norb nopadding" style="padding:none">
                <?= $this->render('//common/_viewheader', ['title' => 'Conductor Rail Welding Installation &amp; Timesheet Form (DT130)']) ?>
            </td>
            <td colspan="2" class="DarkerBlue">Pad no</td>
        </tr>
        <tr>
            <td colspan="2"><?= $model->padno ?></td>
        </tr>
        <tr class="DarkerBlue">
            <td colspan="2">Installation Date</td>
            <td colspan="3">Welders Name</td>
            <td colspan="3">Welding Asstistants name</td>
            <td colspan="2">Inline Job Number</td>
        </tr>
        <tr>
            <td colspan="2"><?= $model->insdate ?  date('d/m/Y', (strtotime($model->insdate))) : false ?></td>
            <td colspan="3"><?= $model->welders_name ?></td>
            <td colspan="3"><?= $model->weldersassist_name ?></td>
            <td colspan="2"><?= $model->inlinejobno ?></td>
        </tr>
        <tr class="DarkerBlue">
            <td colspan="2">Area</td>
            <td colspan="3">Work Site Location</td>
            <td colspan="3">Start Time</td>
            <td colspan="2">Finish Time</td>
        </tr>
        <tr>
            <td colspan="2"><?= $model->area ?></td>
            <td colspan="3"><?= $model->location ?></td>
            <td colspan="3"><?= $model->start_time ?></td>
            <td colspan="2"><?= $model->finish_time ?></td>
        </tr>
        <tr class="DarkerBlue">
            <td colspan="2" class="DarkerBlue">Client Name</td>
            <td colspan="3">Process used</td>
            <td colspan="3">Travel Start Time</td>
            <td colspan="2">Travel Finish Time</td>
        </tr>
        <tr>
            <td colspan="2"><?= $model->account ? $model->account->account_name : false ?></td>
            <td colspan="3"><?= $model->process ?></td>
            <td colspan="3"><?= $model->travel_start ?></td>
            <td colspan="2"><?= $model->travel_finish ?></td>

        </tr>
        <tr>
            <td class="DarkerBlueC" width="3%"></td>
            <td class="DarkerBlueC"></td>
            <td colspan="2" class="DarkerBlueC">Weld1</td>
            <td colspan="2" class="DarkerBlueC">Weld2</td>
            <td colspan="2" class="DarkerBlueC">Weld3</td>
            <td colspan="2" class="DarkerBlueC">Weld4</td>
        </tr>
        <tr>
            <td class="DarkerBlue" rowspan="7" style="text-rotate:90; ">
                <div class="rotate">Location</div>
            </td>
            <td class="DarkerBlue"> ELR</td>
            <td colspan="2"><?= $model->elr1 ?></td>
            <td colspan="2"><?= $model->elr2 ?></td>
            <td colspan="2"><?= $model->elr3 ?></td>
            <td colspan="2"><?= $model->elr4 ?></td>
        </tr>
        <tr>
            <td class="DarkerBlue">Mileage</td>
            <td colspan="2">
                <?= $model->mileage1." ".$model->mileage2." ". $model->mileage3 ." ". $model->mileage4 ?>
            </td>
            <td colspan="2">
                <?= $model->mileage5." ".$model->mileage6." ".$model->mileage7." ".$model->mileage8 ?>
            </td>
            <td colspan="2">
                <?= $model->mileage9." ".$model->mileage10." ".$model->mileage11." ".$model->mileage12 ?>
            </td>
            <td colspan="2">
                <?= $model->mileage13." ".$model->mileage14." ".$model->mileage15." ".$model->mileage16 ?>
            </td>
        </tr>
        <tr>
            <td class="DarkerBlue">Chord Point</td>
            <td colspan="2"><?= $model->chord1 ?></td>
            <td colspan="2"><?= $model->chord2 ?></td>
            <td colspan="2"><?= $model->chord3 ?></td>
            <td colspan="2"><?= $model->chord4 ?></td>
        </tr>
        <tr>
            <td class="DarkerBlue">Track ID</td>
            <td colspan="2"><?= $model->trackid1 ?></td>
            <td colspan="2"><?= $model->trackid2 ?></td>
            <td colspan="2"><?= $model->trackid3 ?></td>
            <td colspan="2"><?= $model->trackid4 ?></td>
        </tr>
        <tr>
            <td class="DarkerBlue">Back to Low Mileage Rail</td>
            <td colspan="2"><?= $model->btol1 ?></td>
            <td colspan="2"><?= $model->btol2 ?></td>
            <td colspan="2"><?= $model->btol3 ?></td>
            <td colspan="2"><?= $model->btol4 ?></td>
        </tr>
        <tr>
            <td class="DarkerBlue">Rail Type</td>
            <td colspan="2"><?= $model->rt1 ?></td>
            <td colspan="2"><?= $model->rt2 ?></td>
            <td colspan="2"><?= $model->rt3 ?></td>
            <td colspan="2"><?= $model->rt4 ?></td>
        </tr>
        <tr>
            <td class="DarkerBlue">Rail Location</td>
            <td colspan="2"><?= $model->lt1 ?></td>
            <td colspan="2"><?= $model->lt2 ?></td>
            <td colspan="2"><?= $model->lt3 ?></td>
            <td colspan="2"><?= $model->lt4 ?></td>
        </tr>
        <tr>
            <td class="DarkerBlue" rowspan="4" style="text-rotate:90; ">
                <div class="rotate">Rail Details</div>
            </td>
            <td class="DarkerBlue">Standing in 4 foot (Rail)</td>
            <td class="LighterBlue">LH Rail</td>
            <td class="LighterBlue">RH Rail</td>
            <td class="LighterBlue">LH Rail</td>
            <td class="LighterBlue">RH Rail</td>
            <td class="LighterBlue">LH Rail</td>
            <td class="LighterBlue">RH Rail</td>
            <td class="LighterBlue">LH Rail</td>
            <td class="LighterBlue">RH Rail</td>
        </tr>
        <tr>
            <td class="DarkerBlue" >Profile</td>
            <td><?= $model->profile1_lh ?></td>
            <td><?= $model->profile1_rh ?></td>
            <td><?= $model->profile2_lh ?></td>
            <td><?= $model->profile2_rh ?></td>
            <td><?= $model->profile3_lh ?></td>
            <td><?= $model->profile3_rh ?></td>
            <td><?= $model->profile4_lh ?></td>
            <td><?= $model->profile4_rh ?></td>
        </tr>
        <tr>
            <td class="DarkerBlue">Weld Gap (A)</td>
            <td><?= $model->head1_lh ?></td>
            <td><?= $model->head1_rh ?></td>
            <td><?= $model->head2_lh ?></td>
            <td><?= $model->head2_rh ?></td>
            <td><?= $model->head3_lh ?></td>
            <td><?= $model->head3_rh ?></td>
            <td><?= $model->head4_lh ?></td>
            <td><?= $model->head4_rh ?></td>
        </tr>
        <tr>
            <td class="DarkerBlue">Weld Gap (B)</td>
            <td><?= $model->foot1_lh ?></td>
            <td><?= $model->foot1_rh ?></td>
            <td><?= $model->foot2_lh ?></td>
            <td><?= $model->foot2_rh ?></td>
            <td><?= $model->foot3_lh ?></td>
            <td><?= $model->foot3_rh ?></td>
            <td><?= $model->foot4_lh ?></td>
            <td><?= $model->foot4_rh ?></td>
        </tr>
        <tr>
            <td class="DarkerBlue" rowspan="4" style="text-rotate:90; ">
                    <div class="rotate">Rail Prep</div>
            </td>
            <td class="DarkerBlue">Rail Cutting Method</td>
            <td colspan="2"><?= $model->standing4foot1 ?></td>
            <td colspan="2"><?= $model->standing4foot2 ?></td>
            <td colspan="2"><?= $model->standing4foot3 ?></td>
            <td colspan="2"><?= $model->standing4foot4 ?></td>
        </tr>
        <tr>
            <td class="DarkerBlue">Head Depth (C)</td>
            <td colspan="2"><?= $model->gap_head_1 ?></td>
            <td colspan="2"><?= $model->gap_head_2 ?></td>
            <td colspan="2"><?= $model->gap_head_3 ?></td>
            <td colspan="2"><?= $model->gap_head_4 ?></td>
        </tr>
        <tr>
            <td class="DarkerBlue">Welding gap Dimensions Web (D)</td>
            <td colspan="2"><?= $model->gap_web_1 ?></td>
            <td colspan="2"><?= $model->gap_web_2 ?></td>
            <td colspan="2"><?= $model->gap_web_3 ?></td>
            <td colspan="2"><?= $model->gap_web_4 ?></td>
        </tr>

        <tr>
            <td class="DarkerBlue">Foot Depth(E)</td>
            <td colspan="2"><?= $model->gap_foot_1 ?></td>
            <td colspan="2"><?= $model->gap_foot_2 ?></td>
            <td colspan="2"><?= $model->gap_foot_3 ?></td>
            <td colspan="2"><?= $model->gap_foot_4 ?></td>
        </tr>
        <tr>
            <td class="DarkerBlue" style="text-rotate:90; valign:top; align:left;">
                <div class="rotate">Welding Diagram</div>
            </td>
            <td >&nbsp;
            </td>
            <td colspan="8">
                <img height="150px" width="auto" src="<?= $model->drawingloc ?>" />
                </td>
        </tr>
        <tr class="DarkerBlue">
            <td colspan="2" >Inspection by the Welder</td>
            <td colspan="2">Weld 1</td>
            <td colspan="2">Weld 2</td>
            <td colspan="2">Weld 3</td>
            <td colspan="2">Weld 4</td>
        </tr>
        <tr class="LighterBlue">
            <td class="DarkerBlue" colspan="2">Weld conforms to Infrastructure Specifications</td>
            <td colspan="2"><?= $model->conform_1 ?></td>
            <td colspan="2"><?= $model->conform_2 ?></td>
            <td colspan="2"><?= $model->conform_3 ?></td>
            <td colspan="2"><?= $model->conform_4 ?></td>
        </tr>
        <tr>
            <td class="DarkerBlue" colspan="2">Weld Stamp Details</td>
            <td colspan="2"><?= $model->stamp_1 ?></td>
            <td colspan="2"><?= $model->stamp_2 ?></td>
            <td colspan="2"><?= $model->stamp_3 ?></td>
            <td colspan="2"><?= $model->stamp_4 ?></td>
        </tr>
        <tr class="LighterBlue">
            <td class="DarkerBlue" colspan="2">Non-Conformance Completed</td>
            <td colspan="2"><?= $model->non_con_1 ?></td>
            <td colspan="2"><?= $model->non_con_2 ?></td>
            <td colspan="2"><?= $model->non_con_3 ?></td>
            <td colspan="2"><?= $model->non_con_4 ?></td>
        </tr>
        <tr class="LighterBlue">
            <td class="DarkerBlue" colspan="2">Weld Clamped</td>
            <td colspan="2"><?= $model->weld_1 ?></td>
            <td colspan="2"><?= $model->weld_2 ?></td>
            <td colspan="2"><?= $model->weld_3 ?></td>
            <td colspan="2"><?= $model->weld_4 ?></td>
        </tr>
        <tr class="LighterBlue">
            <td class="DarkerBlue" colspan="2">Non-Conformance Reported to Management </td>
            <td colspan="2"><?= $model->noncon_r_1 ?></td>
            <td colspan="2"><?= $model->noncon_r_2 ?></td>
            <td colspan="2"><?= $model->noncon_r_3 ?></td>
            <td colspan="2"><?= $model->noncon_r_4 ?></td>
        </tr>
        <tr>
            <td class="DarkerBlue" colspan="2">Reason for Non-conformance Report</td>
            <td colspan="8" height="100px"><?= $model->noncon_1 ?></td>
        </tr>
        <tr>
            <td colspan="4" class="DarkerBlue">Site Representive Signature </td>
            <td colspan="3" class="DarkerBlue">Site Representive Print</td>
            <td colspan="3" class="DarkerBlue">Date</td>
        </tr>
        <tr height="25px">
            <td colspan="4">
                <img height="75px" width="auto" src="<?= $model->signatureloc ?>" />
            </td>
            <td colspan="3"><?= $model->rep_print ?></td>
            <td colspan="3"><?= $model->rep_date ?></td>
        </tr>
        <tr>
            <td colspan="10" class="text-center" align="center">
                    DT130 / <?= $model->id ?> / <?= $model->welders_name.",".$model->weldersassist_name ?>

            </td>
        </tr>
    </table>

    </div>

</div>
<style>
.dt130-view td{
 padding: 4px 10px;   
}
td.nopadding{
    padding:none;
}
</style>