@extends('adminlte::page') @section('title', env('APP_NAME') . ' - Historial de Ajustes de Corte de Caja') @section('plugins.Datatables', true) @section('content_header')
# | ID Historial | Cliente | Usuario | Monto Anterior | Monto Nuevo | Diferencia | Descripción | Fecha de Ajuste |
---|---|---|---|---|---|---|---|---|
{{ $ajuste->id }} | #{{ $ajuste->ajuste_corte_id }} | @if($ajuste->historialSaldoCorteCaja && $ajuste->historialSaldoCorteCaja->cliente) {{ $ajuste->historialSaldoCorteCaja->cliente->razon_social ?? $ajuste->historialSaldoCorteCaja->cliente->nombre }} @else Cliente no encontrado @endif | @if($ajuste->user) {{ $ajuste->user->name ?? $ajuste->user->email }} @else Usuario no encontrado @endif | S/. {{ number_format($ajuste->monto_corte_anterior, 2) }} | @if($ajuste->monto_corte_nuevo > $ajuste->monto_corte_anterior) S/. {{ number_format($ajuste->monto_corte_nuevo, 2) }} @elseif($ajuste->monto_corte_nuevo < $ajuste->monto_corte_anterior) S/. {{ number_format($ajuste->monto_corte_nuevo, 2) }} @else S/. {{ number_format($ajuste->monto_corte_nuevo, 2) }} @endif | @php $diferencia = $ajuste->monto_corte_nuevo - $ajuste->monto_corte_anterior; @endphp @if($diferencia > 0) +S/. {{ number_format($diferencia, 2) }} @elseif($diferencia < 0) S/. {{ number_format($diferencia, 2) }} @else S/. {{ number_format($diferencia, 2) }} @endif | {{ Str::limit($ajuste->descripcion, 50) }} | {{ $ajuste->created_at ? $ajuste->created_at->format('d/m/Y H:i:s') : 'N/A' }} |