Sindbad~EG File Manager

Current Path : /var/www/html/eva.sumar.com.py/storage/framework/views/
Upload File :
Current File : /var/www/html/eva.sumar.com.py/storage/framework/views/f204f139cbc669fac5b00b819acf28c1f65c5d1a.php

<div>
    <?php $__env->startSection('content_header'); ?>
        <h1>Documentos</h1>

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

    <div class="row">
        <div class="col-12">
            <div class="card card-info">
                <form>
                    <div class="card-body">
                        <div class="row">
                            <div class="form-group" align="center">
                                <label>Seleccione documento a subir:</label><br>
                                <input type="file" wire:model='enlace' required />
                                <div wire:loading wire:target="enlace" class="text-sm italic text-gray-500">Cargando...</div>
                                <?php $__errorArgs = ['enlace'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?> <span class="text-danger"><?php echo e($message); ?></span><?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                            </div>
                        </div>
                    </div>
                    <div class="card-footer" align="center">
                        <button class="btn btn-info" wire:click.prevent="store()"><i class="fas fa-save"></i> Subir documento</button>
                    </div>
                </form>
            </div>
        </div>
        <div class="col-12">
            <div class="card">
                <!-- /.card-header -->
                <div class="card-body">
                    <table id="tabla" class="table table-bordered table-hover">
                        <thead>
                            <tr>
                                <th>Enlace</th>
                                <th>Opciones</th>
                            </tr>
                        </thead>
                        <tbody>
                            <?php $__currentLoopData = $documentos; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $doc): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                <tr>
                                    <td> 
                                        <a href="<?php echo e(url('/documentos_varios/'.$doc->enlace)); ?>">
                                            <?php echo e(asset('documentos_varios/'.$doc->enlace)); ?> </td>
                                        </a>
                                    <td>
                                        <a href="" data-target="#modal-<?php echo e($doc->id); ?>" data-toggle="modal"><button class="btn btn-danger btn-sm"><i class="fas fa-trash"></i></button></a>
                                    </td>
                                </tr>
                                <div class="modal fade" id="modal-<?php echo e($doc->id); ?>">
                                    <div class="modal-dialog">
                                        <div class="modal-content">
                                            <div class="modal-header">
                                                <h4 class="modal-title">Eliminar documento</h4>
                                                <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                                                    <span aria-hidden="true">&times;</span>
                                                </button>
                                            </div>
                                            <div class="modal-body">
                                                <p>¿Esta seguro que quiere eliminar el documento <?php echo e($doc->enlace); ?>?</p>
                                            </div>
                                            <div class="modal-footer justify-content-between">
                                                <button type="button" class="btn btn-default" data-dismiss="modal">Cerrar</button>
                                                <button type="button" wire:click="delete(<?php echo e($doc->id); ?>)" class="btn btn-primary" data-dismiss="modal">Confirmar</button>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                        </tbody>
                        <tfoot>
                            <tr>
                                <th>Enlace</th>
                                <th>Opciones</th>
                            </tr>
                        </tfoot>
                    
                    </table>
                

                </div>
                <div class="col-md-12">
                   <?php echo e($documentos->links()); ?>


                </div>

                <!-- /.card-body -->
            </div>
            <!-- /.card -->
        </div>
        <!-- /.col -->
    </div>
    <!-- /.row -->
</div>
<?php /**PATH /var/www/html/eva.sumar.com.py/resources/views/livewire/documentos.blade.php ENDPATH**/ ?>

Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists