<?php if (isset($component)) { $__componentOriginal8e2ce59650f81721f93fef32250174d77c3531da = $component; } ?>
<?php $component = App\View\Components\AppLayout::resolve([] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?>
<?php $component->withName('app-layout'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(App\View\Components\AppLayout::class))->getConstructor()): ?>
<?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?>
<?php endif; ?>
<?php $component->withAttributes([]); ?>
    <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
    <script src="https://cdn.rawgit.com/harvesthq/chosen/gh-pages/chosen.jquery.min.js"></script>
    <link href="https://cdn.rawgit.com/harvesthq/chosen/gh-pages/chosen.min.css" rel="stylesheet" />

    <div class="col-md-12">
        <ol class="breadcrumb">
            <li class="breadcrumb-item"><a href="/">Dasboard</a></li>
            <li class="breadcrumb-item"><a href="/contabilidad/cuentas-contables">Catalogo de cuentas contables</a></li>
            <li class="breadcrumb-item active" aria-current="page">Importar catalogo de cuentas</li>
          </ol>
    </div>
    <div class="col-md-12">
        <?php if (isset($component)) { $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4 = $component; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.alert','data' => []] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?>
<?php $component->withName('alert'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(Illuminate\View\AnonymousComponent::class))->getConstructor()): ?>
<?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?>
<?php endif; ?>
<?php $component->withAttributes([]); ?> <?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4)): ?>
<?php $component = $__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4; ?>
<?php unset($__componentOriginalc254754b9d5db91d5165876f9d051922ca0066f4); ?>
<?php endif; ?>
    </div>




    <div class="col-md-12">
        <div class="card">
            <div class="card-body">
                <h5>Agregar catalogo de cuentas contables via Excel </h5>

                <form enctype='multipart/form-data' method="post" action="<?php echo e(route('contabilidad.importarCuentasExcel')); ?>">
                    <?php echo csrf_field(); ?>

                    <div class="row">
                        <div class="col-md-12">
                            <a class="btn btn-danger" href="<?php echo e(asset('plantillas/excel/export-catalogo-cuentas.xlsx')); ?>">Descarga plantilla</a>
                        </div>
                        <div class="col-md-12">
                            <br>
                            <h5>Catalogos disponibles para la importación del catalogo contable</h5>
                             <div class="row">

                                <div class="col-md-6">
                                    <h6>Niveles de cuentas contables</h6>
                                    <table class="table table-sm">
                                        <thead>
                                          <tr>
                                            <th scope="col">#</th>
                                            <th scope="col">Nivel</th>
                                            <th scope="col">Digitos</th>
                                          </tr>
                                        </thead>
                                        <tbody>
                                          <?php $__currentLoopData = $niveles; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key=> $nivel): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                          <tr>
                                            <th scope="row"><?php echo e($key+1); ?></th>
                                            <td><?php echo e($nivel->nivel); ?></td>
                                            <td><?php echo e($nivel->digitos); ?></td>
                                          </tr>
                                          <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                        </tbody>
                                      </table>
                                </div>
                                <div class="col-md-6">
                                    <h6>Clasificación de cuentas contables</h6>
                                    <table class="table table-sm">
                                        <thead>
                                          <tr>
                                            <th scope="col">#</th>
                                            <th scope="col">Clasificación</th>
                                          </tr>
                                        </thead>
                                        <tbody>
                                          <?php $__currentLoopData = $clasificacion; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key=> $c): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                          <tr>
                                            <th scope="row"><?php echo e($key+1); ?></th>
                                            <td><?php echo e($c->clasificacion); ?></td>
                                          </tr>
                                          <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                        </tbody>
                                      </table>
                                      <br>

                                      <h6>Clasificación por tipo cuenta</h6>
                                    <table class="table table-sm">
                                        <thead>
                                          <tr>
                                            <th scope="col">Tipo cuena</th>
                                          </tr>
                                        </thead>
                                        <tbody>
                                       
                                          <tr>
                                            <td>acreedora</td>
                                          </tr>
                                          <tr>
                                            <td>deudora</td>
                                          </tr>
                                          
                                        </tbody>
                                      </table>
                                </div>
                             </div>
                        </div>
                    </div>

                    <div class="row mt-4">

                        <div class="col-md-12">
                            <h5>Ejemplo de archivo excel de exportación</h5>
                                <img src="<?php echo e(asset('plantillas/excel/catalogo-ejemplo.png')); ?>" alt="">
                        </div>
                    </div>

                    <div class="row">
                        <div class="col-md-4 mt-3 mb-2">
                            <label for=""><strong>Subir catalogo en archivo Excel (.XLSX)</strong> </label>
                            <input type="file" name="excel" required class="form-control">
                        </div>

                    </div>

                    <div class="row">
                        <div class="col-md-12 mt-4 mb-1">
                            <button style="color: white" type="submit" class="btn btn-success"> <i
                                    class="fas fa-save"></i></button>
                        </div>
                    </div>
                </form>



            </div>

        </div>

    </div>



 <?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal8e2ce59650f81721f93fef32250174d77c3531da)): ?>
<?php $component = $__componentOriginal8e2ce59650f81721f93fef32250174d77c3531da; ?>
<?php unset($__componentOriginal8e2ce59650f81721f93fef32250174d77c3531da); ?>
<?php endif; ?>
<?php /**PATH C:\laragon\www\sistema-contable-laravel\resources\views/contabilidad/cuenta_contable/importar_excel.blade.php ENDPATH**/ ?>