<?php $__env->startSection('css'); ?>
    
<?php $__env->stopSection(); ?>

<?php $__env->startSection('pagina'); ?>


    <table style="width: 100%;" border="1" cellspacing="0" cellpadding="4">
        
        <tr>
            <td style="text-align: center;"><br /><img src="<?php echo e(env('APP_LOGO_TOCANTINS')); ?>" alt="" style="height: 150px;" /><br /><br />
                <h3><strong>Checklist de inspe&ccedil;&atilde;o de caminh&otilde;es para carregamento</strong></h3>
            </td>
        </tr>
        <tr>
            <td>
                <table style="width: 100%; border: 0;" cellspacing="0" cellpadding="4">
                    
                    <tr>
                        <td style="width: 35%; text-align: center;" colspan="2">&nbsp; Unidade S&atilde;o Lu&iacute;s/MA</td>
                        <td style="width: 30%; text-align: center; font-size: 18px;"><span style="background-color: #ffffff; color: #ff0000;"><strong><?php echo e(str_pad($checklist->getId(), 6, '0', STR_PAD_LEFT)); ?></strong></span></td>
                    </tr>
                    <tr>
                    <?php if($checklist->getSaco() == '1'): ?>
                        <td style="width: 35%; font-size: 12px;">&nbsp;[ X ] Carga (Ensacado ou Bag)</td>
                    <?php else: ?>
                        <td style="width: 35%; font-size: 12px;">&nbsp;[ &nbsp;&nbsp; ] Carga (Ensacado ou Bag)</td>
                    <?php endif; ?>
                    
                    <?php if($checklist->getGranel() == '1'): ?>
                        <td style="width: 35%; font-size: 12px;">&nbsp;[ X ] Carga Granel</td>
                    <?php else: ?>
                        <td style="width: 35%; font-size: 12px;">&nbsp;[ &nbsp;&nbsp; ] Carga Granel</td>
                    <?php endif; ?>

                        <td style="width: 30%; font-size: 12px;">&nbsp;Data: <strong><?php echo e($checklist->getData()); ?></strong></td>
                    </tr>
                    <tr>
                        <td style="width: 35%; font-size: 12px;" colspan="2">&nbsp;Motorista: <strong><?php echo e($checklist->Estadia->Motorista->getNome()); ?>&nbsp;</strong></td>
                        <td style="width: 30%; font-size: 12px;">&nbsp;Placa: <strong><?php echo e($checklist->Estadia->Veiculo->getPlaca()); ?></strong></td>
                    </tr>
                    <tr>
                        <td style="width: 35%; font-size: 12px;" colspan="2">&nbsp;Transportadora: <strong><?php echo e($checklist->Estadia->Transportador->getRazaoSocial()); ?></strong></td>
                        <td style="width: 30%; font-size: 12px;">&nbsp;Fiscal: <strong><?php echo e($checklist->Fiscal->getNome()); ?></strong></td>
                    </tr>
                    
                </table>
            </td>
        </tr>
        <tr>
            <td>
                <table style="width: 100%;" border="1" cellspacing="0" cellpadding="4">

                    <tr>
                        <td style="width: 70%; text-align: left; vertical-align: top; font-size: 12px; background-color: #c0c0c0;"><span style="background-color: #c0c0c0;"><strong>Itens inspecionados</strong></span></td>
                        <td style="width: 15%; text-align: center; vertical-align: top; font-size: 12px; background-color: #c0c0c0;"><span style="background-color: #c0c0c0;"><strong>SIM</strong></span></td>
                        <td style="width: 15%; text-align: center; vertical-align: top; font-size: 12px; background-color: #c0c0c0;"><span style="background-color: #c0c0c0;"><strong>N&Atilde;O</strong></span></td>
                    </tr>
                    <tr>
                        <td style="width: 70%; text-align: left; vertical-align: top; font-size: 12px;">&nbsp;01. Vestimenta adequada para acesso à unidade?</td>
                        <?php if($checklist->getItem01() == '1'): ?>
                            <td style="width: 15%; text-align: center; vertical-align: top; font-size: 12px;">[ X ]</td>
                            <td style="width: 15%; text-align: center; vertical-align: top; font-size: 12px;">[ &nbsp;&nbsp; ]</td>
                        <?php else: ?>
                            <td style="width: 15%; text-align: center; vertical-align: top; font-size: 12px;">[ &nbsp;&nbsp; ]</td>
                            <td style="width: 15%; text-align: center; vertical-align: top; font-size: 12px;">[ X ]</td>
                        <?php endif; ?>
                    </tr>
                    <tr>
                        <td style="width: 70%; text-align: left; vertical-align: top; font-size: 12px;">&nbsp;02. Lonas em perfeitas condições?</td>
                        <?php if($checklist->getItem02() == '1'): ?>
                            <td style="width: 15%; text-align: center; vertical-align: top; font-size: 12px;">[ X ]</td>
                            <td style="width: 15%; text-align: center; vertical-align: top; font-size: 12px;">[ &nbsp;&nbsp; ]</td>
                        <?php else: ?>
                            <td style="width: 15%; text-align: center; vertical-align: top; font-size: 12px;">[ &nbsp;&nbsp; ]</td>
                            <td style="width: 15%; text-align: center; vertical-align: top; font-size: 12px;">[ X ]</td>
                        <?php endif; ?>
                    </tr>
                    <tr>
                        <td style="width: 70%; text-align: left; vertical-align: top; font-size: 12px;">&nbsp;03. Carrocerias limpas e varridas, sem presença de outros grãos, impurezas ou quaisquer outros produtos estranhos?</td>
                        <?php if($checklist->getItem03() == '1'): ?>
                            <td style="width: 15%; text-align: center; vertical-align: top; font-size: 12px;">[ X ]</td>
                            <td style="width: 15%; text-align: center; vertical-align: top; font-size: 12px;">[ &nbsp;&nbsp; ]</td>
                        <?php else: ?>
                            <td style="width: 15%; text-align: center; vertical-align: top; font-size: 12px;">[ &nbsp;&nbsp; ]</td>
                            <td style="width: 15%; text-align: center; vertical-align: top; font-size: 12px;">[ X ]</td>
                        <?php endif; ?>
                    </tr>
                    <tr>
                        <td style="width: 70%; text-align: left; vertical-align: top; font-size: 12px;">&nbsp;04. Não apresenta vazamentos, pregos ou parafusos expostos, que possam causas danos à carga ou embalagens?</td>
                        <?php if($checklist->getItem04() == '1'): ?>
                            <td style="width: 15%; text-align: center; vertical-align: top; font-size: 12px;">[ X ]</td>
                            <td style="width: 15%; text-align: center; vertical-align: top; font-size: 12px;">[ &nbsp;&nbsp; ]</td>
                        <?php else: ?>
                            <td style="width: 15%; text-align: center; vertical-align: top; font-size: 12px;">[ &nbsp;&nbsp; ]</td>
                            <td style="width: 15%; text-align: center; vertical-align: top; font-size: 12px;">[ X ]</td>
                        <?php endif; ?>
                    </tr>
                    <tr>
                        <td style="width: 70%; text-align: left; vertical-align: top; font-size: 12px;">&nbsp;05. Forramento do assoalho nos casos de carregamento a granel?</td>
                        <?php if($checklist->getItem05() == '1'): ?>
                            <td style="width: 15%; text-align: center; vertical-align: top; font-size: 12px;">[ X ]</td>
                            <td style="width: 15%; text-align: center; vertical-align: top; font-size: 12px;">[ &nbsp;&nbsp; ]</td>
                        <?php else: ?>
                            <td style="width: 15%; text-align: center; vertical-align: top; font-size: 12px;">[ &nbsp;&nbsp; ]</td>
                            <td style="width: 15%; text-align: center; vertical-align: top; font-size: 12px;">[ X ]</td>
                        <?php endif; ?>
                    </tr>
                    <tr>
                        <td style="width: 70%; text-align: left; vertical-align: top; font-size: 12px;">&nbsp;06. Assoalho em bom estado de conservação?</td>
                        <?php if($checklist->getItem06() == '1'): ?>
                            <td style="width: 15%; text-align: center; vertical-align: top; font-size: 12px;">[ X ]</td>
                            <td style="width: 15%; text-align: center; vertical-align: top; font-size: 12px;">[ &nbsp;&nbsp; ]</td>
                        <?php else: ?>
                            <td style="width: 15%; text-align: center; vertical-align: top; font-size: 12px;">[ &nbsp;&nbsp; ]</td>
                            <td style="width: 15%; text-align: center; vertical-align: top; font-size: 12px;">[ X ]</td>
                        <?php endif; ?>
                    </tr>
                    
                </table>
            </td>
        </tr>
        <tr>
            <td>
                <table style="width: 100%;" cellspacing="0" cellpadding="4">
                    
                    <tr>
                        <td style="text-align: left; vertical-align: top; font-size: 12px;">&nbsp;Utilizar este campo somente para registro de diverg&ecirc;ncias:</td>
                    </tr>
                    <tr>
                        <td style="text-align: left; vertical-align: top; font-size: 12px;">&nbsp;<strong><?php echo e($checklist->getDivergencia()); ?><br /><br /><br /><br /><br /></strong></td>
                    </tr>
                   
                </table>
            </td>
        </tr>
        <tr>
            <td>
                <table style="width: 100%;" border="0" cellspacing="0" cellpadding="4">
                    
                    <tr>
                        <td style="width: 40%; text-align: center; vertical-align: top; font-size: 12px;">&nbsp;</td>
                        <td style="width: 20%; text-align: center; vertical-align: top; font-size: 12px;">&nbsp;</td>
                        <td style="width: 40%; text-align: center; vertical-align: top; font-size: 12px;" rowspan="2"><br /><br />&nbsp;________________________________<br />Assinatura do Motorista&nbsp;</td>
                    </tr>
                    <tr>
                        <?php if($checklist->getStatus() == 'APROVADO'): ?>
                            <td style="width: 40%; text-align: left; vertical-align: top; font-size: 12px;">[ X ] APROVADO</td>
                        <?php else: ?>
                            <td style="width: 40%; text-align: left; vertical-align: top; font-size: 12px;">[ &nbsp;&nbsp; ] APROVADO</td>
                        <?php endif; ?>
                        <td style="width: 20%; text-align: center; vertical-align: top; font-size: 12px;">&nbsp;</td>
                    </tr>
                    <tr>
                        <?php if($checklist->getStatus() == 'REPROVADO'): ?>
                            <td style="width: 40%; text-align: left; vertical-align: top; font-size: 12px;">[ X ] REPROVADO</td>
                        <?php else: ?>
                            <td style="width: 40%; text-align: left; vertical-align: top; font-size: 12px;">[ &nbsp;&nbsp; ] REPROVADO</td>
                        <?php endif; ?>
                        <td style="width: 20%; text-align: center; vertical-align: top; font-size: 12px;">&nbsp;</td>
                        <td style="width: 40%; text-align: center; vertical-align: top; font-size: 12px;" rowspan="2"><br />&nbsp;&nbsp;&nbsp;________________________________<br />Assinatura do Vistoriador</td>
                    </tr>
                    <tr>
                        <td style="width: 40%; text-align: center; vertical-align: top; font-size: 12px;">&nbsp;</td>
                        <td style="width: 20%; text-align: center; vertical-align: top; font-size: 12px;">&nbsp;</td>
                    </tr>
                    
                </table>
            </td>
        </tr>
        <p style="width: 100%; text-align: right; vertical-top: top; font-size: 10px;"><img src="<?php echo e(env('APP_LOGO_PDF')); ?>" alt="" style="height: 40px;" /></p> 
    </table>
    
    

<?php $__env->stopSection(); ?>
<?php echo $__env->make('pdf.pagina', \Illuminate\Support\Arr::except(get_defined_vars(), array('__data', '__path')))->render(); ?>