


<table class="table table-sm" id="detalles" >
    <thead>
        <tr>
            <th width="40" scope="col">#</th>
            <th scope="col" width="150">Codigo</th>
            <th scope="col" >Cuenta</th>
            <th scope="col">Concepto</th>
            <th class="text-center" scope="col">Debe</th>
            <th class="text-center" scope="col">Haber</th>
            <th class="text-center" scope="col" width="120">Fecha</th>
           
            <th width="50" class="text-center" scope="col"><i class="fas fa-trash"></i></th>
        </tr>
    </thead>
    <tbody>
        <tr>
            <th colspan="4" scope="row"></th>  
            <td class="text-end"> <strong><?php echo e(number_format($partida->debe,2)); ?></strong> </td>
            <td class="text-end"> <strong><?php echo e(number_format($partida->haber,2)); ?></strong> </td>
            <th colspan="2" scope="row"></th> 
        </tr>
        <?php $__currentLoopData = $partida->detalles; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>

            <tr class="  <?php if($item->debe >0): ?> table-danger <?php else: ?> table-success <?php endif; ?>">
                <th scope="row"><?php echo e($key + 1); ?></th>
                <td><?php echo e($item->cuentaContable->codigo); ?> </td>
                <td><?php echo e($item->cuentaContable->nombre_cuenta); ?> </td>
                <td><?php echo e($item->concepto); ?> </td>
                <td class="text-end"><?php echo e(number_format($item->debe,2)); ?> </td>
                <td class="text-end"><?php echo e(number_format($item->haber,2)); ?> </td>
                <td class="text-center"><?php echo e(Help::date($item->fecha_contable)); ?></td>
                <td class="text-center">
                    <form id="form<?php echo e($item->id); ?>"
                        action="<?php echo e(route('contabilidad.eliminarDetallePartida', $item->id)); ?>"
                        method="post">
                        <?php echo method_field('DELETE'); ?>
                        <?php echo csrf_field(); ?>
                        <button
                            onclick="confirm('form<?php echo e($item->id); ?>','¿Desea eliminar el detalle de la partida?')"
                            class="btn <?php if($item->cerrada): ?> btn-success <?php else: ?> btn-danger <?php endif; ?> "
                            type="button"><i class="fas fa-trash"></i></button>
                    </form>
                </td>
            </tr>
        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>


    </tbody>
</table>

<?php /**PATH C:\laragon\www\sistema-contable-laravel\resources\views/contabilidad/partidas_contables/partials/edit_detalle.blade.php ENDPATH**/ ?>