


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


<div class="content-wrapper"> 

    <section class="content-header"> 

        <h1> Gestion de Consultorios  </h1>

    </section>
    
    <div class="content"> 

            <div class="box"> 

                <br>

                <form method="POST" > 

                    <?php echo csrf_field(); ?>

                    <div class="col-md-6 col-xs-12"> 

                        <input type="text" class="form-control" name="consultorio1" placeholder="Ingrese Nuevo Consultorio" required =""> 
                    
                    </div>

                    <button class="btn btn-primary" type="submit"> Agregar Consultorio</button>

                </form>

                <br>

                <div class="box-body"> 

                    <?php $__currentLoopData = $consultoriosall; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $consultorio): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
        
                        <div class="row"> 

                            <form method="POST" action=" <?php echo e(url('Consultorio/'.$consultorio -> id)); ?>"> 

                                <?php echo csrf_field(); ?>
                                <?php echo method_field('put'); ?>

                                <div class="col-md-4"> 

                                    <input type="text" type="form-control" name="consultorioE" value="<?php echo e($consultorio -> consultorio); ?>"> 

                                </div>

                                <div class="col-md-1"> 

                                    <button class="btn btn-success" type="submit">Guardar</button>

                                </div>

                            </form>

                            <div class="col-md-1"> 

                                <form method="POST" action="<?php echo e(url('borrar-Consultorio/'.$consultorio->id)); ?>"> 

                                    <?php echo csrf_field(); ?>
                                    <?php echo method_field('delete'); ?>

                                    <button type="submit" class="btn btn-danger">Borrar</button>

                                </form>

                            </div>

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

                </div>

            </div>

    </div>

</div>

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

<?php echo $__env->make('plantilla', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?><?php /**PATH C:\xampp\htdocs\Clinica-L8\resources\views/modulos/Consultorios.blade.php ENDPATH**/ ?>