{{-- ===================================================== --}} {{-- ENCABEZADO --}} {{-- ===================================================== --}}

Firmar documento

Seleccione el certificado digital que utilizará para firmar el PDF.

Ver PDF original
{{-- ===================================================== --}} {{-- MENSAJE CORRECTO --}} {{-- ===================================================== --}} @if($mensaje)
{{ $mensaje }}
@endif {{-- ===================================================== --}} {{-- ERROR GENERAL --}} {{-- ===================================================== --}} @error('firma')
{{ $message }}
@enderror {{-- ===================================================== --}} {{-- INFORMACIÓN DEL DOCUMENTO --}} {{-- ===================================================== --}}

Documento

{{-- NOMBRE --}}

Nombre

{{ $documento->nombre_original }}

{{-- ESTADO --}}

Estado

@if($documento->estado === 'firmado') Firmado @else Pendiente @endif
{{-- FECHA DE CARGA --}}

Fecha de carga

{{ $documento->created_at ? $documento->created_at->format('d/m/Y H:i') : '—' }}

{{-- ===================================================== --}} {{-- DOCUMENTO YA FIRMADO --}} {{-- ===================================================== --}} @if( $documento->estado === 'firmado' && $documento->ruta_firmado )

Documento firmado correctamente

Fecha de firma: {{ $documento->fecha_firma ? $documento->fecha_firma->format('d/m/Y H:i') : '—' }}

@if($documento->certificadoDigital)

Certificado: {{ $documento->certificadoDigital->nombre }}

@if($documento->certificadoDigital->titular)

Titular: {{ $documento->certificadoDigital->titular }}

@endif @endif
Ver PDF firmado
@else {{-- ===================================================== --}} {{-- FORMULARIO DE FIRMA --}} {{-- ===================================================== --}}

Datos de la firma digital

Estos datos se incorporarán a la información de la firma del PDF.

@if($certificados->isEmpty()) {{-- SIN CERTIFICADOS --}}

No hay certificados disponibles

Debe registrar un certificado digital activo y vigente antes de firmar.

Ir a Certificados Digitales
@else
{{-- ===================================================== --}} {{-- CERTIFICADO --}} {{-- ===================================================== --}}
@error('certificadoId')

{{ $message }}

@enderror
{{-- ===================================================== --}} {{-- MOTIVO --}} {{-- ===================================================== --}}
@error('motivo')

{{ $message }}

@enderror
{{-- ===================================================== --}} {{-- UBICACIÓN --}} {{-- ===================================================== --}}
@error('ubicacion')

{{ $message }}

@enderror
{{-- ===================================================== --}} {{-- ADVERTENCIA --}} {{-- ===================================================== --}}

Firma digital

El sistema utilizará la clave privada contenida en el certificado PFX seleccionado. El archivo del certificado permanece almacenado en el almacenamiento privado del servidor.

{{-- ===================================================== --}} {{-- BOTÓN --}} {{-- ===================================================== --}}
@endif
@endif {{-- ===================================================== --}} {{-- REGRESAR --}} {{-- ===================================================== --}}
Volver a documentos