95 lines
3.7 KiB
PHP
95 lines
3.7 KiB
PHP
<?php $__env->startSection('title',"Crear"); ?>
|
|
|
|
<?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">Crear 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">
|
|
|
|
<h3>Crear tipo de documento</h3>
|
|
|
|
<?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php if(session('success')): ?>
|
|
<div class="alert alert-success">
|
|
<?php echo e(session('success')); ?>
|
|
|
|
</div>
|
|
<?php endif; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
|
|
|
|
<form method="POST" action="<?php echo e(route('documentotipo.store')); ?>">
|
|
<?php echo csrf_field(); ?>
|
|
|
|
|
|
<div class="mb-3">
|
|
<label>Nombre</label>
|
|
<input type="text" name="name" class="form-control" required>
|
|
</div>
|
|
|
|
|
|
<div class="mb-3">
|
|
<label>Slug</label>
|
|
<input type="text" name="slug" class="form-control" 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">
|
|
PDF
|
|
</label>
|
|
</div>
|
|
|
|
<div class="form-check">
|
|
<label>
|
|
<input type="checkbox" name="extensiones[]" value="jpg" class="form-check-input cb">
|
|
JPG
|
|
</label>
|
|
</div>
|
|
|
|
<div class="form-check">
|
|
<label>
|
|
<input type="checkbox" name="extensiones[]" value="png" class="form-check-input cb">
|
|
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); ?>"
|
|
>
|
|
<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>
|
|
|
|
<button class="btn btn-primary">Guardar</button>
|
|
|
|
</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/create.blade.php ENDPATH**/ ?>
|