39 lines
2.3 KiB
PHP
39 lines
2.3 KiB
PHP
<div class="card p-4">
|
|
|
|
<h4>Configurar documentos por nivel</h4>
|
|
|
|
|
|
<div class="mb-3">
|
|
<label>Nivel</label>
|
|
<select class="form-control" wire:model="nivelSeleccionado">
|
|
<option value="">Seleccione</option>
|
|
<?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php $__currentLoopData = $niveles; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $nivel): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
|
|
<option value="<?php echo e($nivel->id); ?>"><?php echo e($nivel->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 if($nivelSeleccionado): ?>
|
|
<div class="mb-3">
|
|
<label>Documentos requeridos</label>
|
|
|
|
<?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php $__currentLoopData = $documentos; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $doc): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
|
|
<div>
|
|
<input type="checkbox"
|
|
value="<?php echo e($doc->id); ?>"
|
|
wire:model="documentosSeleccionados">
|
|
|
|
<?php echo e($doc->nombre); ?>
|
|
|
|
</div>
|
|
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
|
|
</div>
|
|
|
|
<button class="btn btn-success" wire:click="guardar">
|
|
Guardar configuración
|
|
</button>
|
|
<?php endif; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
|
|
|
|
</div>
|
|
<?php /**PATH C:\proyectos\primeros\sistemaEducativo\resources\views/livewire/admin/nivel-documentos.blade.php ENDPATH**/ ?>
|