183 lines
12 KiB
PHP
183 lines
12 KiB
PHP
<div>
|
|
|
|
<div wire:ignore.self class="modal fade" id="exampleModal" tabindex="-1">
|
|
<div class="modal-dialog modal-lg">
|
|
<div class="modal-content">
|
|
|
|
|
|
<div wire:key="modal-prospecto-<?php echo e($prospecto?->id ?? 'create'); ?>">
|
|
|
|
<div class="modal-header">
|
|
<h5 class="modal-title">
|
|
<?php echo e($prospecto ? 'Modificar prospecto' : 'Nuevo prospecto'); ?>
|
|
|
|
</h5>
|
|
<button type="button" class="close" data-dismiss="modal">
|
|
<span>×</span>
|
|
</button>
|
|
</div>
|
|
|
|
<div class="modal-body">
|
|
|
|
|
|
<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>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<?php /**PATH C:\proyectos\primeros\sistemaEducativo\resources\views/livewire/modal-prospecto.blade.php ENDPATH**/ ?>
|