HEX
Server: Apache/2.4.61 (Ubuntu)
System: Linux hosting106 7.0.12-1-pve #1 SMP PREEMPT_DYNAMIC PMX 7.0.12-1 (2026-06-09T21:07Z) x86_64
User: clinicadentalargarate.com (1193)
PHP: 7.4.33
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: /home/cursos.ril.es/storage/framework/views/66fa35ceb8db38eb175742a234d5047e238dae94.php
<?php $__env->startSection('header'); ?>
    @parent

    <title>Profesores</title>
    <style>
        .row{
            margin-left: 0;
            margin-right: 0;
        }
    </style>


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

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

    <div class="separacion-top"></div>

    <?php echo $__env->make('datatables.listadoProfesores', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>

    <div class="col-sm-8 col-sm-offset-2">

        <div class="page-header">
            <h1><span class="fi-torso-business"></span> <?php if($profesor): ?> Editar <?php echo e($profesor->nombre); ?> <?php else: ?>  Nuevo Profesor <?php endif; ?> </h1>
        </div>

        <div>
            <?php if($profesor): ?>
                <?php echo e(Form::model($profesor, array('route' => array('admin.profesores.update', $profesor->id), 'method' => 'PUT'))); ?>

            <?php else: ?>
                <?php echo e(Form::model(array('route' => array('admin.profesores'), 'method' => 'POST'))); ?>

            <?php endif; ?>


            <div class="form-group">
                <?php echo e(Form::label('nombre', 'Nombre')); ?>

                <?php echo e(Form::text('nombre', \Illuminate\Support\Facades\Input::old('nombre'), array('class' => 'form-control', 'placeholder' => 'nombre'))); ?>

                <?php if($errors->has('nombre')): ?> <p class="help-block"><?php echo e($errors->first('nombre')); ?></p> <?php endif; ?>
            </div>

            <div class="form-group">
                <?php echo e(Form::label('apellidos', 'Apellidos')); ?>

                <?php echo e(Form::text('apellidos', \Illuminate\Support\Facades\Input::old('apellidos'), array('class' => 'form-control', 'placeholder' => 'apellidos'))); ?>

                <?php if($errors->has('apellidos')): ?> <p class="help-block"><?php echo e($errors->first('apellidos')); ?></p> <?php endif; ?>
            </div>

            <div class="form-group">
                <?php echo e(Form::label('email', 'email')); ?>

                <?php echo e(Form::text('email', \Illuminate\Support\Facades\Input::old('email'), array('class' => 'form-control', 'placeholder' => 'email'))); ?>

                <?php if($errors->has('email')): ?> <p class="help-block"><?php echo e($errors->first('email')); ?></p> <?php endif; ?>
            </div>

                <div class="form-group">
                    <?php echo e(Form::label('descripcion', 'Descripción')); ?>

                    <?php echo e(Form::text('descripcion', \Illuminate\Support\Facades\Input::old('descripcion'), array('class' => 'form-control', 'placeholder' => 'Descripción'))); ?>

                    <?php if($errors->has('descripcion')): ?> <p class="help-block"><?php echo e($errors->first('descripcion')); ?></p> <?php endif; ?>
                </div>

            <div class="form-group">
                <?php echo e(Form::label('admin', 'Admin')); ?>

                <?php echo e(Form::select('admin', array('0' => 'No', '1' => 'Si'), \Illuminate\Support\Facades\Input::old('admin'), array('class' => 'form-control'))); ?>

                <?php if($errors->has('admin')): ?> <p class="help-block"><?php echo e($errors->first('admin')); ?></p> <?php endif; ?>
            </div>

            <?php echo e(Form::submit('Enviar', array('class' => 'btn btn-default'))); ?>


            <?php echo e(Form::close()); ?>

        </div>
        <div class="vacio"></div>
    </div>

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



<?php $__env->startSection('footer'); ?>
    @parent

    <script>
        $(document).ready(function(){
            $("#itemcinco").addClass("active");

            $(function() {
                var dataTable = $('#profesores-table').DataTable({
                    processing: true,
                    serverSide: true,
                    ajax: '<?php echo route('datatablesProfesores.data'); ?>',
                    columns: [
                        { data: 'nombre', name: 'nombre' },
                        { data: 'apellidos', name: 'apellidos' },
                        { data: 'email', name: 'email' },
                        { data: 'admin', name: 'admin' },
                        {
                            data: "id",
                            "render": function (data) {
                                return "<form action='/admin/profesores/" + data + "/edit' method='PUT'><button type='submit' class='btn btn-warning'><span class='fi-pencil'></span> Editar</button></form>";
                            }
                        },
                        {
                            data: "id",
                            "render": function (data) {
                                return "<form method='POST' action='/admin/profesores/" + data + "'><input type='hidden' name='_token' value='<?php echo csrf_token(); ?>'><input name='_method' type='hidden' value='DELETE'><button type='submit' class='btn btn-default'><span class='fi-x'></span></button></form>";
                            }
                        },
                    ]
                });
            });

        });


    </script>



<?php $__env->stopSection(); ?>
<?php echo $__env->make('layouts.menu', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>