@extends('adminlte::page') @section('title', 'Reporte de Pagos a Proveedores') @section('plugins.Datatables', true) @section('content_header')
Total Pagos
Efectivo
Transferencias
Cheques
| ID | Fecha | Proveedor | Compra Asociada | Método | Caja/Banco Origen | Cuenta Destino | Nº Operación | Monto | Usuario |
|---|---|---|---|---|---|---|---|---|---|
| #{{ $pago->id }} | {{ $pago->fecha_pago->format('d/m/Y') }} |
{{ $pago->proveedor->razon_social }}
@if($pago->proveedor->ruc)
RUC: {{ $pago->proveedor->ruc }} @endif |
@if($pago->compra)
{{ $pago->compra->numero_factura }}
S/ {{ number_format($pago->compra->total, 2) }} @else Pago a cuenta @endif |
@php $badgesMetodo = [ 'efectivo' => 'badge-success', 'transferencia' => 'badge-primary', 'deposito' => 'badge-info', 'cheque' => 'badge-warning' ]; @endphp {{ strtoupper($pago->metodo_pago) }} | @if($pago->metodo_pago == 'efectivo' && $pago->caja) Caja #{{ $pago->caja->id }} @elseif($pago->banco) {{ $pago->banco->name }} @else - @endif | @if($pago->cuentaDestino) {{ $pago->cuentaDestino->name }} @else - @endif | {{ $pago->numero_operacion ?? '-' }} | S/ {{ number_format($pago->monto, 2) }} | {{ $pago->usuario->name ?? 'N/A' }} |
| No se encontraron pagos con los filtros seleccionados | |||||||||
| TOTAL GENERAL: | S/ {{ number_format($totales['total'], 2) }} | ||||||||
| Método de Pago | Monto | % del Total |
|---|---|---|
| EFECTIVO | S/ {{ number_format($totalesPorMetodo['efectivo'], 2) }} | {{ $totales['total'] > 0 ? number_format(($totalesPorMetodo['efectivo'] / $totales['total']) * 100, 2) : 0 }}% |
| TRANSFERENCIA | S/ {{ number_format($totalesPorMetodo['transferencia'], 2) }} | {{ $totales['total'] > 0 ? number_format(($totalesPorMetodo['transferencia'] / $totales['total']) * 100, 2) : 0 }}% |
| DEPÓSITO | S/ {{ number_format($totalesPorMetodo['deposito'], 2) }} | {{ $totales['total'] > 0 ? number_format(($totalesPorMetodo['deposito'] / $totales['total']) * 100, 2) : 0 }}% |
| CHEQUE | S/ {{ number_format($totalesPorMetodo['cheque'], 2) }} | {{ $totales['total'] > 0 ? number_format(($totalesPorMetodo['cheque'] / $totales['total']) * 100, 2) : 0 }}% |
| TOTAL | S/ {{ number_format($totales['total'], 2) }} | 100% |