<?php $__env->startSection('css'); ?>
    
<?php $__env->stopSection(); ?>
<?php $__env->startSection('pagina'); ?>
<div class="container">
    <table border="1" cellspacing="0" style="width: 705px">        
        <tr>
            <td>
                <left><img src="<?php echo e(env('APP_LOGO_PDF')); ?>"/></left>
                <td colspan="2" style="text-align: center;width:400px">RESUMO DO CAIXA</td>
            </td>
        </tr>
        
    </table>

<br>

<table border="1" width="100%" cellspacing="0">
    <tbody>
        <tr>
            <td style="text-align: center; font-size: 10;" bgcolor="#DCDCDC" width="25%"><strong>Data</strong></td>
            <td style="text-align: center; font-size: 10;" bgcolor="#DCDCDC" width="25%"><strong>Turno</strong></td>
            <td style="text-align: center; font-size: 10;" bgcolor="#DCDCDC" width="25%"><strong>Guich&ecirc;</strong></td>
            <td style="text-align: center; font-size: 10;" bgcolor="#DCDCDC" width="25%"><strong>Usu&aacute;rio</strong></td>
        </tr>
        <tr>
            <td style="text-align: center; font-size: 10;" bgcolor="#FFF" width="25%"><?php echo e($caixa->getData()); ?></td>
            <?php if($caixa->getTurno() == 'D'): ?>
                <td style="text-align: center; font-size: 10;" bgcolor="#FFF" width="25%">TURNO DO DIA</td>
            <?php else: ?>
                <td style="text-align: center; font-size: 10;" bgcolor="#FFF" width="25%">TURNO DA NOITE</td>
            <?php endif; ?>
            <td style="text-align: center; font-size: 10;" bgcolor="#FFF" width="25%">GUICHE 0<?php echo e($caixa->getGuiche()); ?></td>
            <td style="text-align: center; font-size: 10;" bgcolor="#FFF" width="25%"><?php echo e($caixa->Usuario->getNome()); ?></td>
        </tr>
        <tr>
        <td style="text-align: center; font-size: 10;" colspan="4" bgcolor="#DCDCDC" width="25%"><strong>Valores</strong></td>
        </tr>
        <tr>
            <td style="text-align: center; font-size: 10;" bgcolor="#DCDCDC" width="25%">Saldo Abertura</td>
            <td style="text-align: center; font-size: 10;" bgcolor="#FFF" width="25%"><?php echo e($caixa->getInicial()); ?></td>
            <td style="text-align: center; font-size: 10;" colspan="2" bgcolor="#DCDCDC" width="25%"><strong>Observa&ccedil;&atilde;o&nbsp;</strong></td>
        </tr>
        <tr>
            <td style="text-align: center; font-size: 10;" bgcolor="#DCDCDC" width="25%">Esp&eacute;cie</td>
            <td style="text-align: center; font-size: 10;" bgcolor="#FFF" width="25%"><?php echo e($caixa->getEspecie()); ?></td>
            <td style="width: 25%; text-align: left; vertical-align: top;" colspan="2" rowspan="7" bgcolor="#FFF" width="25%"><?php echo e($caixa->getObservacao()); ?></td>
        </tr>
        <tr>
            <td style="text-align: center; font-size: 10;" bgcolor="#DCDCDC" width="25%">Cart&atilde;o D&eacute;bito</td>
            <td style="text-align: center; font-size: 10;" bgcolor="#FFF" width="25%"><?php echo e($caixa->getCartaodebito()); ?></td>
        </tr>
        <tr>
            <td style="text-align: center; font-size: 10;" bgcolor="#DCDCDC" width="25%">Cart&atilde;o Cr&eacute;dito</td>
            <td style="text-align: center; font-size: 10;" bgcolor="#FFF" width="25%"><?php echo e($caixa->getCartaocredito()); ?></td>
        </tr>
        
        <tr>
            <td style="text-align: center; font-size: 10;" bgcolor="#DCDCDC" width="25%">Sub-Total</td>
            <td style="text-align: center; font-size: 10;" bgcolor="#FFF" width="25%"><?php echo e(number_format($caixa->getInicial() + $caixa->getEspecie() + $caixa->getCartaodebito() + $caixa->getCartaocredito(), 2, '.', '')); ?></td>
        </tr>
        <tr>
            <td style="text-align: center; font-size: 10;" bgcolor="#DCDCDC" width="25%">Desconto</td>
            <td style="text-align: center; font-size: 10;" bgcolor="#FFF" width="25%"><?php echo e($caixa->getDesconto()); ?></td>
        </tr>

        <tr>
            <td style="text-align: center; font-size: 10;" bgcolor="#DCDCDC" width="25%">Despesa</td>
            <td style="text-align: center; font-size: 10;" bgcolor="#FFF" width="25%"><?php echo e($caixa->getDespesa()); ?></td>
        </tr>
        
        <tr>
            <td style="text-align: center; font-size: 10;" bgcolor="#DCDCDC" width="25%">Saldo Total</td>
            <td style="text-align: center; font-size: 10;" bgcolor="#FFF" width="25%"><?php echo e($caixa->getSaldo()); ?></td>
        </tr>
    </tbody>
</table>

<h4>Despesas do Caixa</h4>

<table border="1" width="100%" cellspacing="0">
    <tbody>
        <tr>
            <td style="text-align: center; font-size: 8;" bgcolor="#DCDCDC" width="40%"><strong>Descri&ccedil;&atilde;o</strong></td>
            <td style="text-align: center; font-size: 8;" bgcolor="#DCDCDC" width="15%"><strong>Valor</strong></td>
            <td style="text-align: center; font-size: 8;" bgcolor="#DCDCDC" width="45%"><strong>Observa&ccedil;&atilde;o</strong></td>
        </tr>
        <?php $__currentLoopData = $despesa; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $desp): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
            <tr>
                <td style="text-align: left; font-size: 8;" bgcolor="#FFF" width="40%"><?php echo e($desp->getDescricao()); ?></td>
                <td style="text-align: right; font-size: 8;" bgcolor="#FFF" width="15%"><?php echo e($desp->getValor()); ?></td>
                <td style="text-align: left; font-size: 8;" bgcolor="#FFF" width="45%"><?php echo e($desp->getObservacao()); ?></td>
            </tr>
        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
    </tbody>
</table>


<!-- 
<h4>Tickets Baixados</h4>

<table border="1" width="100%" cellspacing="0">
    <tbody>
        <tr>
            <td style="text-align: center; font-size: 8;" bgcolor="#DCDCDC" width="8%"><strong>Ticket</strong></td>
            <td style="text-align: center; font-size: 8;" bgcolor="#DCDCDC" width="10%"><strong>Entrada</strong></td>
            <td style="text-align: center; font-size: 8;" bgcolor="#DCDCDC" width="10%"><strong>Saída</strong></td>
            <td style="text-align: center; font-size: 8;" bgcolor="#DCDCDC" width="7%"><strong>Tempo</strong></td>
            <td style="text-align: center; font-size: 8;" bgcolor="#DCDCDC" width="5%"><strong>Placa</strong></td>
            <td style="text-align: center; font-size: 8;" bgcolor="#DCDCDC" width="15%"><strong>Motorista</strong></td>
            <td style="text-align: center; font-size: 8;" bgcolor="#DCDCDC" width="7%"><strong>Estadia</strong></td>
            <td style="text-align: center; font-size: 8;" bgcolor="#DCDCDC" width="7%"><strong>Inspeção</strong></td>
            <td style="text-align: center; font-size: 8;" bgcolor="#DCDCDC" width="7%"><strong>Desconto</strong></td>
            <td style="text-align: center; font-size: 8;" bgcolor="#DCDCDC" width="7%"><strong>Total</strong></td>
            <td style="text-align: center; font-size: 8;" bgcolor="#DCDCDC" width="17%"><strong>Tipo</strong></td>
        </tr>
        <?php $__currentLoopData = $ticket; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $tick): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
            <tr>
                <td style="text-align: left; font-size: 8;" bgcolor="#FFF" width="8%"><?php echo e($tick->getNumero()); ?></td>
                <td style="text-align: left; font-size: 8;" bgcolor="#FFF" width="10%"><?php echo e($tick->getDataentrada()); ?></td>
                <td style="text-align: left; font-size: 8;" bgcolor="#FFF" width="10%"><?php echo e($tick->getDatasaida()); ?></td>
                <td style="text-align: left; font-size: 8;" bgcolor="#FFF" width="7%"><?php echo e($tick->getTempo()); ?></td>
                <td style="text-align: left; font-size: 8;" bgcolor="#FFF" width="5%"><?php echo e($tick->getPlaca()); ?></td>
                <td style="text-align: left; font-size: 8;" bgcolor="#FFF" width="15%"><?php echo e($tick->getMotorista()); ?></td>
                <td style="text-align: right; font-size: 8;" bgcolor="#FFF" width="7%"><?php echo e($tick->getEstadia()); ?></td>
                <td style="text-align: right; font-size: 8;" bgcolor="#FFF" width="7%"><?php echo e($tick->getInspecao()); ?></td>
                <td style="text-align: right; font-size: 8;" bgcolor="#FFF" width="7%"><?php echo e($tick->getDesconto()); ?></td>
                <td style="text-align: right; font-size: 8;" bgcolor="#FFF" width="7%"><?php echo e($tick->getTotal()); ?></td>
                <td style="text-align: left; font-size: 8;" bgcolor="#FFF" width="17%"><?php echo e($tick->Tipo_Estadia->getDescricao()); ?></td>
            </tr>
        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
    </tbody>
</table>
 -->
<p>
<br /> <br />  
______________________________________
<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Assinatura do Respons&aacute;vel</p>
<br /> 

<p style="text-align: left; font-size: 8;">
    Documento impresso por <?php echo e($nome); ?> em <?php echo e($data); ?>

</p>

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