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

    <div class="sixteen wide tablet sixteen wide computer column ">
        <div class="ui segment">
            
            <h4 class="ui dividing header teal centered">DETALLES DE VENTAS DE HOY POR PERSONAL</h4>
            
           <div class="ui success message">
                <div class="ui equal width grid">
                    <div class="row" style="padding-bottom: 0px !important">
                        <div class="sixteen wide mobile seven wide tablet  five wide computer column message_header">Nombre del Personal :</div>
                        <div class="sixteen wide mobile nine wide tablet  seven wide computer column"><?php echo e(ucwords(mb_strtolower($usuario->nombres))); ?> <?php echo e(ucwords(mb_strtolower($usuario->apellidos))); ?> (<?php echo e($usuario->username); ?>)</div>
                        <div class="sixteen wide mobile seven wide tablet  two wide computer column message_header">DNI :</div>
                        <div class="sixteen wide mobile nine wide tablet  two wide computer column"><?php echo e($usuario->dni); ?></div>
                    </div>
                    <div class="row" style="padding-bottom: 0px !important">
                        <div class="sixteen wide mobile seven wide tablet  five wide computer column message_header">Total Vendido :</div>
                        <div class="sixteen wide mobile nine wide tablet  two wide computer column">S/ <?php echo e($total != null ? $total : '0.00'); ?></div>
                    </div>
                </div>
            </div>    

            <div class="ui hidden divider"></div>
            <table class="ui table">
                <thead>
                    <tr>
                        <th class="center aligned">N°</th>
                        <th class="center aligned">Local</th>
                        <th class="center aligned">Cliente</th>
                        <th class="center aligned">Comprobante</th>
                        <th class="center aligned">Monto S/</th>
                        <th class="center aligned">Fecha de Venta</th>
                        <th class="center aligned">Tipo Pago</th>
                    </tr>
                </thead>
                <tbody id="tbody">
                    <?php /**/ $i = 1 /**/ ?>
                    <?php $__currentLoopData = $data; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $venta): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                    <tr data-table="<?php echo e($venta->id_venta); ?>">
                        <td><?php echo e($i); ?></td>
                        <td><?php echo e($venta->local->nombre); ?></td>
                        <td><?php echo e($venta->cliente->nombre); ?></td>
                        <td><a href="<?php echo e(url('venta/detalles/'.$venta->id_venta)); ?>" title="Clic para ver informacion"><?php echo e($venta->nombre_comprobante); ?></a></td>
                        <td><?php echo e($venta->total_venta); ?></td>
                        <td><?php echo e($venta->created_at); ?></td>
                        <td><?php echo e($venta->tipo_pago); ?></td>
                    </tr>
                    <?php /**/ $i++ /**/ ?>
                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                </tbody>
            </table>

            <div class="form_footer" >
                <a class="ui small left  floated default button" href="<?php echo e(URL::previous()); ?>"><i class="arrow left icon"></i>REGRESAR</a>
            </div>  

        </div>
    </div>

<?php $__env->stopSection(); ?>





<?php echo $__env->make('layout.main', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>