@extends('layouts.app') @section('title', 'Detalles del Ajuste de Precios') @section('content')

Detalles del Ajuste de Precios

Código: {{ $priceAdjustment->adjustment_code }}

Información del Ajuste
Código: {{ $priceAdjustment->adjustment_code }}
Descripción: {{ $priceAdjustment->description }}
Tipo de Ajuste: {{ $priceAdjustment->adjustment_type_formatted }}
Dirección: {{ $priceAdjustment->adjustment_direction_formatted }}
Valor: {{ $priceAdjustment->adjustment_direction === 'increase' ? '+' : '-' }}{{ $priceAdjustment->adjustment_value_formatted }}
Estado: {{ $priceAdjustment->status_formatted }}
Fecha: {{ $priceAdjustment->adjustment_date_formatted }}
Usuario:
{{ substr($priceAdjustment->user_name, 0, 1) }}
{{ $priceAdjustment->user_name }}
{{ $priceAdjustment->user_email }}
Productos: {{ $priceAdjustment->total_products }}
Verificación: @if($priceAdjustment->math_verified) Verificado @else No Verificado @endif
@if($priceAdjustment->notes)
Notas:
{{ $priceAdjustment->notes }}
@endif
Estadísticas
{{ $priceAdjustment->total_products }}

Productos

{{ $priceAdjustment->total_price_changes }}

Cambios

Información de Seguridad:
IP: {{ $priceAdjustment->ip_address ?? 'N/A' }}
Pregunta: {{ $priceAdjustment->math_question ?? 'N/A' }}
Respuesta: {{ $priceAdjustment->math_user_answer ?? 'N/A' }}
Detalles por Producto
@if($priceAdjustment->details->count() > 0)
@foreach($priceAdjustment->details as $detail) @endforeach
Producto Precios Antes Precios Después Cambios Resumen
{{ $detail->product_name }}
{{ $detail->product_code }}
@foreach($detail->prices_before as $key => $price) @if($price > 0)
{{ ucfirst(str_replace('_', ' ', $key)) }}: ${{ number_format($price, 2) }}
@endif @endforeach
@foreach($detail->prices_after as $key => $price) @if($price > 0)
{{ ucfirst(str_replace('_', ' ', $key)) }}: ${{ number_format($price, 2) }}
@endif @endforeach
@foreach($detail->price_changes as $key => $change)
{{ ucfirst(str_replace('_', ' ', $key)) }}: {{ $change['difference'] > 0 ? '+' : '' }}${{ number_format($change['difference'], 2) }} ({{ $change['difference'] > 0 ? '+' : '' }}{{ number_format($change['percentage'], 1) }}%)
@endforeach
Total Cambios: {{ $detail->total_changes }}
Cambio Promedio: ${{ number_format($detail->average_change, 2) }}
% Promedio: {{ number_format($detail->average_percentage_change, 1) }}%
@else

No hay detalles disponibles para este ajuste

@endif
Información de Auditoría
Información del Sistema:
Creado: {{ $priceAdjustment->created_at->format('d/m/Y H:i:s') }}
Actualizado: {{ $priceAdjustment->updated_at->format('d/m/Y H:i:s') }}
ID: {{ $priceAdjustment->id }}
Información de Red:
IP Address: {{ $priceAdjustment->ip_address ?? 'N/A' }}
User Agent:
{{ $priceAdjustment->user_agent ?? 'N/A' }}
@endsection @push('styles') @endpush @push('scripts') @endpush