<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Libro diario mayor</title>
</head>
<body>

    <table style="text-align: center">
      <tbody>
          <tr style="text-align: center">
              <th style="text-align: center" colspan="7">REPORTE DE LIBRO DIARIO MAYOR <?php echo e(Help::date($fechai)); ?> AL <?php echo e(Help::date($fechaf)); ?></th>
          </tr>
      </tbody>
  </table>

    <table class="table">
        <thead>
          <tr>
            <th scope="col" width="25"> <strong>Codigo</strong></th>
            <th scope="col" width="35"> <strong>Cuenta</strong></th>
            <th scope="col" width="14"><strong>Debe</strong></th>
            <th scope="col" width="14"><strong>Haber</strong></th>
            <th scope="col" width="14"><strong>Saldo</strong></th>
          </tr>
        </thead>
        <tbody>
            <?php
                $debe = 0;
                $haber = 0;
            ?>
          <?php $__currentLoopData = $data; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key=> $dt): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
          <tr>
            <td><?php echo e($dt['cuenta']['codigo']); ?></td>
            <td><?php echo e($dt['cuenta']['nombre']); ?></td>
            <td></td>
            <td></td>
            <td><?php echo e(number_format($dt['cuenta']['saldo'],2)); ?></td>
          </tr>
            <?php
                $debe = 0;
                $haber = 0;
            ?>
            <?php $__currentLoopData = $dt['detalle']; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $d): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                <tr>
                    <td><?php echo e($d['cuenta']); ?></td>
                    <td><?php echo e($d['nombre']); ?></td>
                    <td><?php echo e(number_format($d['debe'],2 )); ?></td>
                    <td><?php echo e(number_format($d['haber'],2 )); ?></td>
                    <td></td>
                </tr>
                <?php
                    $debe += $d['debe'];
                    $haber +=$d['haber'];
                ?>
            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>

            <tr>
                <td></td>
                <td></td>
                <td><?php echo e(number_format($debe,2 )); ?></td>
                <td><?php echo e(number_format($haber,2 )); ?></td>
                <td></td>
            </tr>

            <?php for($i=0; $i <1 ; $i++): ?>
                <tr>
                    <td></td>
                    <td></td>
                    <td></td>
                    <td></td>
                    <td></td>
                </tr>
            <?php endfor; ?>


          <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>


        </tbody>
      </table>

</body>
</html>
<?php /**PATH C:\laragon\www\sistema-contable-laravel\resources\views/contabilidad/reportes/LibroDiarioMayorExcelRpt.blade.php ENDPATH**/ ?>