128 lines
6.1 KiB
PHP
128 lines
6.1 KiB
PHP
<div wire:ignore.self
|
|
class="modal fade"
|
|
id="exampleModal"
|
|
tabindex="-1"
|
|
role="dialog"
|
|
data-backdrop="static"
|
|
data-keyboard="false">
|
|
<div class="modal-dialog" role="document">
|
|
<div class="modal-content">
|
|
<div class="modal-header">
|
|
<h5 class="modal-title">Carga de documentos</h5>
|
|
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
|
<span aria-hidden="true">×</span>
|
|
</button>
|
|
</div>
|
|
<div class="modal-body">
|
|
|
|
<?php
|
|
$pendientes = collect(['curp','acta','comprobante'])->filter(function($tipo) {
|
|
$doc = $documentosPorTipo[$tipo] ?? null;
|
|
return !$doc || $doc->status == 2;
|
|
});
|
|
?>
|
|
|
|
<?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php if($pendientes->isEmpty()): ?>
|
|
<div class="alert alert-success">
|
|
✔ Todos los documentos están validados
|
|
</div>
|
|
<?php endif; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
|
|
|
|
<form wire:submit.prevent="store" enctype="multipart/form-data">
|
|
|
|
<?php
|
|
$doc = $documentosPorTipo['curp'] ?? null;
|
|
?>
|
|
|
|
<?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php if(!$doc || $doc->status == 2): ?>
|
|
<div class="mb-3">
|
|
<label class="small mb-1">CURP:</label>
|
|
|
|
<?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php if($doc && $doc->status == 2): ?>
|
|
<span class="badge bg-danger">❌ Rechazado</span>
|
|
<?php endif; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
|
|
|
|
<div class="custom-file-upload" wire:ignore>
|
|
<input type="file" id="curp" hidden
|
|
onchange="updateFileName(this, 'curp-name')"
|
|
wire:model="curp">
|
|
|
|
<label for="curp" class="btn btn-outline-primary btn-sm">
|
|
📄 Seleccionar archivo
|
|
</label>
|
|
|
|
<span id="curp-name" class="ml-2 text-muted">
|
|
Ningún archivo seleccionado
|
|
</span>
|
|
</div>
|
|
</div>
|
|
<?php endif; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
|
|
|
|
|
|
<?php
|
|
$doc = $documentosPorTipo['acta'] ?? null;
|
|
?>
|
|
|
|
<?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php if(!$doc || $doc->status == 2): ?>
|
|
<div class="mb-3">
|
|
<label class="small mb-1">Acta:</label>
|
|
|
|
<?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php if($doc && $doc->status == 2): ?>
|
|
<span class="badge bg-danger">❌ Rechazado</span>
|
|
<?php endif; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
|
|
|
|
<div class="custom-file-upload" wire:ignore>
|
|
<input type="file" id="acta" hidden
|
|
onchange="updateFileName(this, 'acta-name')"
|
|
wire:model="acta">
|
|
|
|
<label for="acta" class="btn btn-outline-primary btn-sm">
|
|
📄 Seleccionar archivo
|
|
</label>
|
|
|
|
<span id="acta-name" class="ml-2 text-muted">
|
|
Ningún archivo seleccionado
|
|
</span>
|
|
</div>
|
|
</div>
|
|
<?php endif; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
|
|
|
|
|
|
|
|
<?php
|
|
$doc = $documentosPorTipo['comprobante'] ?? null;
|
|
?>
|
|
|
|
<?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php if(!$doc || $doc->status == 2): ?>
|
|
<div class="mb-3">
|
|
<label class="small mb-1">Comprobante de domicilio:</label>
|
|
|
|
<?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php if($doc && $doc->status == 2): ?>
|
|
<span class="badge bg-danger">❌ Rechazado</span>
|
|
<?php endif; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
|
|
|
|
<div class="custom-file-upload" wire:ignore>
|
|
<input type="file" id="comprobante" hidden
|
|
onchange="updateFileName(this, 'comprobante-name')"
|
|
wire:model="comprobante">
|
|
|
|
<label for="comprobante" class="btn btn-outline-primary btn-sm">
|
|
📄 Seleccionar archivo
|
|
</label>
|
|
|
|
<span id="comprobante-name" class="ml-2 text-muted">
|
|
Ningún archivo seleccionado
|
|
</span>
|
|
</div>
|
|
</div>
|
|
<?php endif; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
|
|
|
|
|
|
<button class="btn btn-primary" type="submit">Subir</button>
|
|
</form>
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<?php /**PATH C:\proyectos\primeros\sistemaEducativo\resources\views/livewire/documentos.blade.php ENDPATH**/ ?>
|