- @foreach($errors->all() as $e)
- {{ $e }} @endforeach
Se eliminará permanentemente:
@if($change->entity_type === 'rule') @php $d = $change->previous_payload['rule'] ?? []; @endphpNombre: {{ $d['name'] ?? '-' }} | Contexto: {{ $d['context'] ?? '-' }} | Prioridad: {{ $d['priority'] ?? '-' }}
{{ count($change->previous_payload['conditions'] ?? []) }} condiciones · {{ count($change->previous_payload['actions'] ?? []) }} acciones
@elseif($change->entity_type === 'coverage') @php $d = $change->previous_payload['coverage'] ?? []; @endphpNombre: {{ $d['commercial_name'] ?? '-' }} | Código: {{ $d['base_code_equis'] ?? '-' }}
{{ count($change->previous_payload['conditions'] ?? []) }} condiciones
@endifReordenamiento de {{ count($change->payload['ordered_ids'] ?? []) }} coberturas.
@elseif($change->operation === 'create')Nuevo registro a crear
@include('approvals._entity_detail', [ 'payload' => $change->payload, 'entityType' => $change->entity_type, 'mode' => 'new', 'compareTo' => null, ]) @elseif($change->operation === 'update') {{-- Leyenda de highlighting --}}Estado actual (antes)
@include('approvals._entity_detail', [ 'payload' => $change->previous_payload, 'entityType' => $change->entity_type, 'mode' => 'old', 'compareTo' => $change->payload, ])Propuesto (después)
@include('approvals._entity_detail', [ 'payload' => $change->payload, 'entityType' => $change->entity_type, 'mode' => 'new', 'compareTo' => $change->previous_payload, ])Sin cambios pendientes
Todo está al día. No hay cambios esperando aprobación.
| Operación | Entidad | IP Solicitante | Fecha Solicitud | Revisado | Estado | Acción |
|---|---|---|---|---|---|---|
| {{ $change->operationLabel() }} | {{ $change->entityTypeLabel() }} {{ $change->entity_label }} @if($change->isRolledBack()) (revertido) @endif | {{ $change->requested_ip }} | {{ $change->created_at->format('d/m/Y H:i') }} |
{{ $change->reviewed_at ? $change->reviewed_at->format('d/m/Y H:i') : '-' }}
@if($change->rejection_reason)
{{ $change->rejection_reason }} @endif |
{{ $statusLabels[$change->status] ?? $change->status }} | @if($change->status === 'approved' && !$change->isRolledBack()) @elseif($change->isRolledBack()) Revertido @else — @endif |
| No hay cambios en el historial. | ||||||