Se crean las especificaciones de los documentos a requerir por nivel, a su vez permitir al alumno subirlos

This commit is contained in:
2026-03-31 11:56:34 -06:00
parent cfd9d2ac68
commit 588a63ed24
61 changed files with 1487 additions and 326 deletions
@@ -0,0 +1,106 @@
<?php $__env->startSection('title',"Edit"); ?>
<?php $__env->startSection('content'); ?>
<div class="container-fluid">
<div class="card shadow mb-4">
<div class="card-header py-3">
<div class="d-sm-flex align-items-center justify-content-between">
<h6 class="m-0 font-weight-bold text-primary">Editar horario</h6>
<a href="<?php echo e(route('horario.index')); ?>" class="d-sm-inline-block btn btn-sm btn-primary shadow-sm"><i class="fas fa-download fa-sm text-white-50"></i> Regresar</a>
</div>
</div>
<div class="card-body">
<?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php if(session('info')): ?>
<div class="alert alert-success">
<strong><?php echo e(session('info')); ?></strong>
</div>
<?php endif; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
<form action="<?php echo e(route('horario.update', $user->id)); ?>" method="POST">
<?php echo csrf_field(); ?>
<?php echo method_field('PUT'); ?>
<div class="mb-3">
<label for="user_id">Seleccionar Colaborador</label>
<select class="form-control" name="user_id" id="user_id">
<?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php $__currentLoopData = $usuarios; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $usuario): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<option value="<?php echo e($usuario->id); ?>"
<?php echo e($usuario->id == $user->id ? 'selected' : ''); ?>>
<?php echo e($usuario->name); ?>
</option>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
</select>
</div>
<?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php $__currentLoopData = $dias; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $index => $dia): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<?php
$nombreDia = strtolower($dia->translatedFormat('l'));
$horario = $horarios[$nombreDia] ?? null;
?>
<div class="mb-3 row">
<div class="col-md-3">
<label class="small">Día</label>
<input class="form-control"
name="horarios[<?php echo e($index); ?>][dia]"
value="<?php echo e($nombreDia); ?>"
readonly>
</div>
<div class="col-md-2">
<label class="small">Entrada</label>
<input class="form-control"
type="time"
name="horarios[<?php echo e($index); ?>][entrada]"
value="<?php echo e($horario->entrada ?? ''); ?>">
</div>
<div class="col-md-2">
<label class="small">Comida salida</label>
<input class="form-control"
type="time"
name="horarios[<?php echo e($index); ?>][comida_salida]"
value="<?php echo e($horario->comidas ?? ''); ?>">
</div>
<div class="col-md-2">
<label class="small">Comida regreso</label>
<input class="form-control"
type="time"
name="horarios[<?php echo e($index); ?>][comida_regreso]"
value="<?php echo e($horario->comidar ?? ''); ?>">
</div>
<div class="col-md-2">
<label class="small">Salida</label>
<input class="form-control"
type="time"
name="horarios[<?php echo e($index); ?>][salida]"
value="<?php echo e($horario->salida ?? ''); ?>">
</div>
<div class="col-md-1">
<input type="checkbox"
name="horarios[<?php echo e($index); ?>][activo]"
value="1"
<?php echo e(isset($horario) && $horario->status ? 'checked' : ''); ?>>
<label class="small">Activo</label>
</div>
</div>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
<input class="btn btn-primary" type="submit" value="Actualizar">
</form>
</div>
</div>
</div>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('layouts.landing', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?><?php /**PATH C:\proyectos\primeros\sistemaEducativo\resources\views/horario/edit.blade.php ENDPATH**/ ?>