@extends('adminlte::page') @section('title', 'Estado de Cuenta - Proveedor') @section('plugins.Datatables', true) @section('content_header')
RUC: {{ $proveedor->ruc ?? 'N/A' }}
Teléfono: {{ $proveedor->telefono ?? 'N/A' }}
Email: {{ $proveedor->email ?? 'N/A' }}
Total Comprado
Total Pagado
Total Compras
Total Pagos
| Fecha | Tipo | Descripción | Monto | Saldo Anterior | Saldo Nuevo |
|---|---|---|---|---|---|
| {{ $mov->fecha_movimiento->format('d/m/Y') }} | @php $badges = [ 'compra' => 'badge-danger', 'pago' => 'badge-success', 'nota_credito' => 'badge-info', 'nota_debito' => 'badge-warning', 'ajuste' => 'badge-secondary', 'anulacion_compra' => 'badge-dark' ]; @endphp {{ strtoupper(str_replace('_', ' ', $mov->tipo_movimiento)) }} | {{ $mov->descripcion }} | @if(in_array($mov->tipo_movimiento, ['compra', 'nota_debito', 'ajuste'])) +S/ {{ number_format($mov->monto, 2) }} @else -S/ {{ number_format($mov->monto, 2) }} @endif | S/ {{ number_format($mov->saldo_anterior, 2) }} | S/ {{ number_format($mov->saldo_nuevo, 2) }} |
| No hay movimientos registrados | |||||