Desarrollo del modulo de alumno y control escolar para subir archivos de expediente
This commit is contained in:
@@ -0,0 +1,290 @@
|
||||
<div>
|
||||
|
||||
<?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php if($full): ?>
|
||||
<button onclick="Livewire.dispatch('create-prospecto')" class="d-sm-inline-block btn btn-sm btn-primary shadow-sm"><i class="fas fa-download fa-sm text-white-50"></i> Inscribir</button>
|
||||
<?php endif; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
|
||||
|
||||
<div wire:key="modal-prospecto-<?php echo e($prospecto?->id ?? ''); ?>">
|
||||
|
||||
|
||||
<?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php if($prospecto): ?>
|
||||
|
||||
<form wire:submit.prevent="<?php echo e($prospecto ? 'actualizarProspecto' : 'guardarProspecto'); ?>" autocomplete="off">
|
||||
|
||||
<div class="row">
|
||||
|
||||
<div class="col-md-6">
|
||||
<label>Nombre</label>
|
||||
<input class="form-control"
|
||||
wire:model.defer="pname"
|
||||
name="prospecto_name"
|
||||
autocomplete="off">
|
||||
</div>
|
||||
|
||||
<div class="col-md-6">
|
||||
<label>Apellido Paterno</label>
|
||||
<input class="form-control"
|
||||
wire:model.defer="papellidoPaterno"
|
||||
name="prospecto_apellidoPaterno"
|
||||
autocomplete="off">
|
||||
</div>
|
||||
|
||||
<div class="col-md-6">
|
||||
<label>Apellido Materno</label>
|
||||
<input class="form-control"
|
||||
wire:model.defer="papellidoMaterno"
|
||||
name="prospecto_apellidoMaterno"
|
||||
autocomplete="off">
|
||||
</div>
|
||||
|
||||
<div class="col-md-6">
|
||||
<label>Correo</label>
|
||||
<input class="form-control"
|
||||
wire:model.defer="pemail"
|
||||
name="prospecto_email"
|
||||
autocomplete="off">
|
||||
</div>
|
||||
|
||||
<div class="col-md-6 mt-2">
|
||||
<label>Teléfono</label>
|
||||
<input class="form-control"
|
||||
wire:model.defer="ptelefono"
|
||||
name="prospecto_phone"
|
||||
autocomplete="off">
|
||||
</div>
|
||||
|
||||
<div class="col-md-6 mt-2">
|
||||
<label>Dirección</label>
|
||||
<input class="form-control"
|
||||
wire:model.defer="pdireccion"
|
||||
name="prospecto_address"
|
||||
autocomplete="off">
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<hr>
|
||||
|
||||
|
||||
<div class="mt-2">
|
||||
<label>Campus</label>
|
||||
<select class="form-control" wire:model.live="pplantels" name="prospecto_plantel">
|
||||
<option value="">Seleccione</option>
|
||||
<?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php $__currentLoopData = $plantels; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $p): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
|
||||
<?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php if($user->existe($p->id)): ?>
|
||||
<option value="<?php echo e($p->id); ?>"><?php echo e($p->name); ?></option>
|
||||
<?php endif; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
|
||||
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="mt-2">
|
||||
<label>Rol</label>
|
||||
<select class="form-control" wire:model="proles" name="prospecto_rol">
|
||||
<option value="">Seleccione</option>
|
||||
<?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php $__currentLoopData = $roles; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $r): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
|
||||
<option value="<?php echo e($r->id); ?>"><?php echo e($r->name); ?></option>
|
||||
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<hr>
|
||||
|
||||
|
||||
<div class="mt-2">
|
||||
<label>Nivel</label>
|
||||
<select class="form-control" wire:model.live="selectedNivel" name="prospecto_nivel">
|
||||
<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 $n): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
|
||||
<option value="<?php echo e($n->id); ?>"><?php echo e($n->name); ?></option>
|
||||
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="mt-2">
|
||||
<label>Plan</label>
|
||||
<select class="form-control" wire:model.live="selectedplan" name="prospecto_plan" <?php echo e($active); ?>>
|
||||
<option value="">Seleccione</option>
|
||||
<?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php $__currentLoopData = $plans; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $pl): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
|
||||
<option value="<?php echo e($pl->id); ?>">
|
||||
<?php echo e($pl->name); ?> - <?php echo e($pl->rvoe); ?>
|
||||
|
||||
</option>
|
||||
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="mt-2">
|
||||
<label>Campaña</label>
|
||||
<select class="form-control" wire:model="pciclo" name="prospecto_ciclo">
|
||||
<option value="">Seleccione</option>
|
||||
<?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php $__currentLoopData = $campans; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $c): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
|
||||
<option value="<?php echo e($c->id); ?>"><?php echo e($c->name); ?></option>
|
||||
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="mt-2">
|
||||
<label>Turno</label>
|
||||
<select class="form-control" wire:model="pturno" name="prospecto_turno">
|
||||
<option value="">Seleccione</option>
|
||||
<?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php $__currentLoopData = $turnos; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $t): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
|
||||
<option value="<?php echo e($t->id); ?>"><?php echo e($t->name); ?></option>
|
||||
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="mt-2">
|
||||
<label>Medio</label>
|
||||
<select class="form-control" wire:model="pmedio" name="prospecto_medio">
|
||||
<option value="">Seleccione</option>
|
||||
<?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php $__currentLoopData = $medios; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $m): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
|
||||
<option value="<?php echo e($m->id); ?>"><?php echo e($m->name); ?></option>
|
||||
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="text-end mt-4">
|
||||
<button class="btn btn-primary">
|
||||
<?php echo e($prospecto ? 'Actualizar' : 'Guardar'); ?>
|
||||
|
||||
</button>
|
||||
</div>
|
||||
|
||||
</form>
|
||||
|
||||
<div class="row pt-5">
|
||||
<div class="col-md-4">
|
||||
<div class="mt-2">
|
||||
<label>Plan de pago</label>
|
||||
<select wire:model.live="selectedplane" class="form-control">
|
||||
<option value="">Selecciona plan de pago</option>
|
||||
<?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php $__currentLoopData = $planesPago; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $plan): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
|
||||
<option value="<?php echo e($plan->id); ?>">
|
||||
<?php echo e($plan->name); ?>
|
||||
|
||||
</option>
|
||||
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
|
||||
</select>
|
||||
<button type="button" class="btn btn-success" wire:click="plan">
|
||||
Asignar plan
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-8">
|
||||
<?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php if(count($conceptos)): ?>
|
||||
<ul class="list-group mt-3">
|
||||
<?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php $__currentLoopData = $conceptos; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $concepto): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
|
||||
<li class="list-group-item d-flex justify-content-between">
|
||||
|
||||
<span><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php $__currentLoopData = $conceptosNombres; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $tconcepto): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
|
||||
<?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php if($concepto->name == $tconcepto->id): ?>
|
||||
<?php echo e($tconcepto->name); ?>
|
||||
|
||||
<?php endif; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
|
||||
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?></span>
|
||||
<span><?php echo e($concepto->fecha_pago); ?></span>
|
||||
<span><?php echo e($concepto->monto); ?></span>
|
||||
</li>
|
||||
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
|
||||
</ul>
|
||||
<?php endif; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row pt-5">
|
||||
|
||||
<div>
|
||||
<h5>Expediente del alumno</h5>
|
||||
|
||||
<?php
|
||||
$tipos = ['curp', 'acta', 'comprobante','certificadoPrepa','certificadoLicenciatura'];
|
||||
$documentos = collect($prospecto?->documentos)->keyBy('tipo');
|
||||
?>
|
||||
|
||||
<?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php $__currentLoopData = $tipos; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $tipo): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
|
||||
<?php
|
||||
$doc = $documentos[$tipo] ?? null;
|
||||
?>
|
||||
|
||||
<div class="mb-3">
|
||||
<strong><?php echo e(strtoupper($tipo)); ?></strong> :
|
||||
|
||||
<?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php if($doc): ?>
|
||||
|
||||
<?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php if($doc->status == 1): ?>
|
||||
<span class="badge bg-success">✔ Validado</span>
|
||||
|
||||
<?php elseif($doc->status == 2): ?>
|
||||
<span class="badge bg-danger">❌ Rechazado</span>
|
||||
|
||||
<?php else: ?>
|
||||
<span class="badge bg-warning">Pendiente de revision</span>
|
||||
|
||||
<button
|
||||
onclick="verDocumento('<?php echo e(url('documento/ver/'.$doc->id)); ?>', <?php echo e($doc->id); ?>)"
|
||||
class="btn btn-sm btn-primary mt-2">
|
||||
<i class="fa-duotone fa-solid fa-eye"></i> Ver documento
|
||||
</button>
|
||||
<?php endif; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
|
||||
|
||||
|
||||
|
||||
<?php else: ?>
|
||||
<span class="text-danger">❌ Faltante</span>
|
||||
<?php endif; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
|
||||
|
||||
</div>
|
||||
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php else: ?>
|
||||
|
||||
<?php endif; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<div class="modal fade"
|
||||
id="visorModal"
|
||||
tabindex="-1"
|
||||
wire:ignore.self>
|
||||
<div class="modal-dialog modal-xl">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<h5 class="modal-title">Vista previa</h5>
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
||||
<span aria-hidden="true">×</span>
|
||||
</button>
|
||||
</div>
|
||||
|
||||
<div class="modal-body">
|
||||
<iframe id="visorFrame" width="100%" height="500px" style="border:none;" wire:ignore></iframe>
|
||||
|
||||
<div class="m-5 text-center">
|
||||
|
||||
|
||||
<button wire:click="rechazarDocumento" class="btn btn-danger">
|
||||
<i class="fa-solid fa-trash-can"></i> Rechazar
|
||||
</button>
|
||||
|
||||
<button wire:click="aprobarDocumento" class="btn btn-success">
|
||||
<i class="fa-duotone fa-regular fa-circle-check"></i> Aprobar
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<?php /**PATH C:\proyectos\primeros\sistemaEducativo\resources\views/livewire/data-prospecto.blade.php ENDPATH**/ ?>
|
||||
Reference in New Issue
Block a user