<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE-edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Pauta T</title>
    <!-- <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous"> -->
    <link rel="stylesheet" href="<?php echo e(public_path('css/style.css')); ?>" type="text/css">
</head>

<body>
    <?php
    $item = 1;
    $date = date('d-m-Y');
    ?>
    <div class="container">
        <div class="row">
            <table style="width: 100%;" class="table-none">
                <tr>
                    <td style="width: 20%" class="header"><img src="<?php echo e(public_path('logo/tvp/tvp.jpeg')); ?>" alt="soprocert" style="width: 6rem;"></td>
                    <td style="width: 60%" class="header">
                        <h1 class="title-T">PAUTA DE CHEQUEO SEMIREMOLQUES</h1>
                    </td>
                    <td style="width: 20%;" class="header">
                        <table class="table-none">
                            <tr>
                                <td>FO 7.1.3-00-09</td>
                            </tr>
                            <tr>
                                <td>REV: 003</td>
                            </tr>
                            <tr>
                                <td><?php echo e($date); ?></td>
                            </tr>
                        </table>
                    </td>
                </tr>
            </table>
        </div>
        <div class="row">
            <table style="width: 100%;" class="table-none">
                <tr>
                    <td style="width: 49%"></td>
                    <td style="width: 2%"></td>
                    <td style="width: 49%">
                        <table style="width: 100%;" class="table-border">
                            <tr>
                                <td class="td-color bold">FRECUENCIA DE CONTROL</td>
                                <td>SEMANAL / MENSUAL</td>
                            </tr>
                        </table>
                    </td>
                </tr>
            </table>
        </div>
        <div class="row">
            <table style="width: 100%;" class="table-none">
                <tr>
                    <td style="width: 49%">
                        <table style="width: 100%;" class="table-border">
                            <tr>
                                <td class="td-color bold" style="text-align: center" colspan="2">IDENTIFICACION DEL EQUIPO</td>
                            </tr>
                            <tr>
                                <td class="td-color bold" style="width: 30%;">N° DE OT</td>
                                <td><?php echo e($data->correlative); ?></td>
                            </tr>
                            <tr>
                                <td class="td-color bold">PATENTE</td>
                                <td><?php echo e($data->patent); ?></td>
                            </tr>
                            <tr>
                                <td class="td-color bold">EMPRESA</td>
                                <td><?php echo e($data->business_name); ?></td>
                            </tr>
                            <tr>
                                <td class="td-color bold">TIPO</td>
                                <td><?php echo e($data->type_vehicle); ?></td>
                            </tr>
                        </table>
                    </td>
                    <td style="width: 2%"></td>
                    <td style="width: 49%">
                        <table style="width: 100%;" class="table-border">
                            <tr>
                                <td class="td-color bold" style="text-align: center" colspan="2">INDICADORES</td>
                            </tr>
                            <tr>
                                <td class="td-color bold" style="width: 40%;">KILOMETRAJE</td>
                                <td><?php echo e($data->mileage); ?></td>
                            </tr>
                            <tr>
                                <td class="td-color bold">FECHA DE ENTRADA</td>
                                <td><?php echo e($data->entry_date); ?></td>
                            </tr>
                            <tr>
                                <td class="td-color bold">FECHA DE SALIDA</td>
                                <td><?php echo e($data->exit_date); ?></td>
                            </tr>
                        </table>
                    </td>
                </tr>
            </table>
        </div>
        <div class="row space-10">
            <table style="width: 100%;" class="table-none">
                <tr>
                    <td style="width: 49%">
                        <table style="width: 100%;" class="table-border">
                        <?php $__currentLoopData = $data->detail_patternT; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $group): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                            <tr>
                                <td class="bold" style="width: 1rem; text-align: center;" rowspan='<?php echo e($group->total + 1); ?>'><?php echo e($group->nro); ?></td>
                                <td class="td-color bold"><?php echo e($group->group); ?>></td>
                                <td class="td-color bold">ESTADO</td>
                            </tr>
                            <?php $__currentLoopData = $group->detail_group; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $row): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                            <tr>
                                <td><?php echo e($row->item); ?></td>
                                <td><?php echo e($row->status_item_name); ?></td>
                            </tr>
                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                        </table>
                    </td>
                    <td style="width: 2%"></td>
                    <td style="width: 49%;">
                        <table style="width: 100%; padding-bottom: 1rem;" class="table-border">
                            <tr><td class="td-color bold" style="text-align: center" colspan="4">LEYENDA DE ESTADO</td></tr>
                            <tr>
                                <td>OK</td>
                                <td>Revisar/Falla</td>
                                <td>N/A</td>
                                <td>Sin Revisar</td>
                            </tr>
                        </table>
                        <table style="width: 100%;" class="table-border">
                            <tr>
                                <td class="td-color bold">NEUMÁTICOS</td>
                                <td class="td-color bold">PRESIÓN(psi)</td>
                                <td class="td-color bold">MARCAJE</td>
                                <td class="td-color bold">TORQUE</td>
                            </tr>
                            <?php $__currentLoopData = $data->detail_tires_1; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $row): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                            <tr>
                                <td style="padding: 0;" class="td-color"><?php echo e($row->n_tire); ?></td>
                                <td style="padding: 0;">
                                    <table style="width: 100%; padding: 0;" class="table-none">
                                        <tr>
                                            <td style="border: none" width="30%"><?php echo e($row->pressure ? 'OK': '-'); ?></td>
                                            <td style="border: none; text-align: left"><?php echo e($row->comment_pressure == '' ? '' : '(' . $row->comment_pressure . ')'); ?></td>
                                        </tr>
                                    </table>
                                </td>
                                <td style="padding: 0;">
                                    <table style="width: 100%;" class="table-none">
                                        <tr>
                                            <td style="border: none" width="30%"><?php echo e($row->marking ? 'OK': '-'); ?></td>
                                            <td style="border: none; text-align: left"><?php echo e($row->comment_marking == '' ? '' : '(' . $row->comment_marking . ')'); ?></td>
                                        </tr>
                                    </table>
                                <td style="padding: 0;">
                                    <table style="width: 100%;" class="table-none">
                                        <tr>
                                            <td style="border: none" width="30%"><?php echo e($row->torque ? 'OK': '-'); ?></td>
                                            <td style="border: none; text-align: left"><?php echo e($row->comment_torque == '' ? '' : '(' . $row->comment_torque . ')'); ?></td>
                                        </tr>
                                    </table>
                                </td>
                            </tr>
                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                        </table>

                        <div style="width: 100%; text-align: center">
                            <img src="<?php echo e(public_path($data->img_axle)); ?>" alt="neumaticos" style="width: 15rem;">
                        </div>
                        <div style="width: 100%; text-align: center">
                            <h3 style="padding: 0; margin: 0"><u>PRESION SUGERIDA: 110 psi EN TODAS LAS CUBIERTAS</u></h3>
                            <img src="<?php echo e(public_path('ejes/presion.png')); ?>" alt="presion" style="width: 15rem;">
                        </div>

                        <table style="width: 100%;" class="table-border">
                            <tr>
                                <td class="td-color bold" style="width: 40%;">Profundidad, Dibujo, Inspección</td>
                                <?php $__currentLoopData = $data->detail_tires_2; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $row): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                <td class="td-color bold"><div class="text-center"><?php echo e($row->n_tire); ?></div></td>
                                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                            </tr>
                            <?php $__currentLoopData = $fires; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $fire): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                            <tr>
                                <td class="td-color bold"><?php echo e($fire->name); ?></td>
                                <?php $__currentLoopData = $data->detail_tires_2; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $row): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                <?php if($row->idfire_status == $fire->id): ?>
                                <td class="text-center">/</td>
                                <?php else: ?>
                                <td></td>
                                <?php endif; ?>
                                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                            </tr>
                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                            <tr>
                                <td class="td-color bold">Alineación</td>
                                <?php $__currentLoopData = $data->detail_tires_2; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $row): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                <td class="text-center"><?php echo e($row->alignment ? '/': ''); ?></td>
                                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                            </tr>
                            <tr>
                                <td class="td-color bold">Balanceo</td>
                                <?php $__currentLoopData = $data->detail_tires_2; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $row): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                <td class="text-center"><?php echo e($row->swinging ? '/': ''); ?></td>
                                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                            </tr>
                        </table>
                    </td>
                </tr>
            </table>
        </div>
        <div class="row">
            <table class="table-border" style="width: 100%">
                <tr>
                    <td style="border-top: 1.5px solid white; border-left: 1.5px solid white;"></td>
                    <td class="td-color bold text-center" colspan="4">Unidad de Medida</td>
                </tr>
                <tr>
                    <td style="width: 60%;" class="td-color bold">TORQUES RECOMENDADOS</td>
                    <td class="td-color bold text-center" style="border-right: 1.5px solid #d4d3d3;">Rango</td>
                    <td class="td-color bold text-center">Kilogramo Fuerza Metro</td>
                    <td class="td-color bold text-center" style="border-right: 1.5px solid #d4d3d3;">Rango</td>
                    <td class="td-color bold text-center">Pie-Libra Fuerza</td>
                </tr>
                <?php $__currentLoopData = $torqueMaker; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $torque): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                <tr>
                    <td><?php echo e($torque->name); ?></td>
                    <?php $__currentLoopData = $torque->detail_torque_maker; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $detail): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                    <td class="text-center"><?php echo e($detail->range); ?></td>
                    <td class="text-center"><?php echo e($detail->abbreviation); ?></td>
                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                </tr>
                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
            </table>
        </div>
        <div class="footer">
            <table class="table-none" style="width: 100%" >
                <tr>
                    <td style="width: 50%">
                        <table style="width: 100%" class="table-border space-10">
                            <tr style="background-color: #BFC9CA;">
                                <td class="bold">Nombre y Apellido</td>
                                <td style="width: 70%">
                                <?php if(isset($data->signings->idsignings_boss_maintenance)): ?>
                                    <span><?php echo e($data->signings->name_boss); ?> <?php echo e($data->signings->surname_boss); ?></span>
                                <?php endif; ?>
                                </td>
                            </tr>
                            <tr style="background-color: #BFC9CA;">
                                <td class="bold">Cargo</td>
                                <td style="width: 70%">
                                <?php if(isset($data->signings->idsignings_boss_maintenance)): ?>
                                    <span><?php echo e($data->signings->type_boss); ?></span>
                                <?php endif; ?>
                                </td>
                            </tr>
                            <tr style="background-color: #BFC9CA;">
                                <td class="bold">Firma</td>
                                <td style="width: 70%; height: 7rem;" class="text-center">
                                <?php if(isset($data->signings->idsignings_boss_maintenance)): ?>
                                    <img src="<?php echo e(str_replace('/public', '/storage/app/', public_path('')) . $data->signings->signing_boss); ?>" alt="firma_jefe" style="height: 7rem;">
                                <?php endif; ?>
                                </td>
                            </tr>
                        </table>
                    </td>
                    <td>
                        <table style="width: 100%" class="table-border space-10">
                            <tr style="background-color: #BFC9CA;">
                                <td class="bold">Nombre y Apellido</td>
                                <td style="width: 70%">
                                <?php if(isset($data->signings->idsignings_mechanic)): ?>
                                    <span><?php echo e($data->signings->name_mechanic); ?> <?php echo e($data->signings->surname_mechanic); ?></span>
                                <?php endif; ?>
                                </td>
                            </tr>
                            <tr style="background-color: #BFC9CA;">
                                <td class="bold">Cargo</td>
                                <td style="width: 70%">
                                <?php if(isset($data->signings->idsignings_mechanic)): ?>
                                    <span><?php echo e($data->signings->type_mechanic); ?></span>
                                <?php endif; ?>
                                </td>
                            </tr>
                            <tr style="background-color: #BFC9CA;">
                                <td class="bold">Firma</td>
                                <td style="width: 70%; height: 7rem;" class="text-center">
                                <?php if(isset($data->signings->idsignings_mechanic)): ?>
                                    <img src="<?php echo e(str_replace('/public', '/storage/app/', public_path('')) . $data->signings->signing_mechanic); ?>" alt="firma_mecanico" style="height: 7rem;">
                                <?php endif; ?>
                                </td>
                            </tr>
                        </table>
                    </td>
                </tr>
            </table>
        </div>
    </div>
</body>

</html><?php /**PATH C:\Users\user054\Documents\SOFTNET\OT-TVP-BACK\src\resources\views/pdf/patternT.blade.php ENDPATH**/ ?>