89 lines
4.3 KiB
PHP
89 lines
4.3 KiB
PHP
<?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 documentación</h6>
|
|
<a href="<?php echo e(route('documentotipo.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('documentotipo.update',$documentotipo->id)); ?>" method="POST">
|
|
<?php echo method_field('PUT'); ?>
|
|
<?php echo csrf_field(); ?>
|
|
|
|
<div class="mb-3">
|
|
<label>Nombre</label>
|
|
<input type="text" name="name" class="form-control" value="<?php echo e($documentotipo->name); ?>" required>
|
|
</div>
|
|
|
|
|
|
<div class="mb-3">
|
|
<label>Slug</label>
|
|
<input type="text" name="slug" class="form-control" value="<?php echo e($documentotipo->slug); ?>" required>
|
|
</div>
|
|
|
|
|
|
<div class="mb-3">
|
|
<label>Extensiones permitidas</label>
|
|
|
|
<div class="form-check">
|
|
<label>
|
|
<input type="checkbox" name="extensiones[]" value="pdf" class="form-check-input cb" <?php echo e(in_array('pdf', $documentotipo->extensiones ?? []) ? 'checked' : ''); ?>>
|
|
PDF
|
|
</label>
|
|
</div>
|
|
|
|
<div class="form-check">
|
|
<label>
|
|
<input type="checkbox" name="extensiones[]" value="jpg" class="form-check-input cb" <?php echo e(in_array('jpg', $documentotipo->extensiones ?? []) ? 'checked' : ''); ?>>
|
|
JPG
|
|
</label>
|
|
</div>
|
|
|
|
<div class="form-check">
|
|
<label>
|
|
<input type="checkbox" name="extensiones[]" value="png" class="form-check-input cb" <?php echo e(in_array('png', $documentotipo->extensiones ?? []) ? 'checked' : ''); ?>>
|
|
PNG
|
|
</label>
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
<div class="mb-3">
|
|
<label>Niveles a impartir</label>
|
|
|
|
<?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php $__currentLoopData = $nivels; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $nivel): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
|
|
<div class="form-check">
|
|
<input type="checkbox" class="form-check-input cb"
|
|
id="n-<?php echo e($nivel->id); ?>"
|
|
name="nivels[]" value="<?php echo e($nivel->id); ?>"
|
|
<?php echo e($documentotipo->niveles->contains($nivel->id) ? 'checked' : ''); ?>
|
|
|
|
>
|
|
<label class="form-check-label" for="n-<?php echo e($nivel->id); ?>">
|
|
<?php echo e($nivel->name); ?>
|
|
|
|
</label>
|
|
</div>
|
|
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
|
|
</div>
|
|
<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/documento/edit.blade.php ENDPATH**/ ?>
|