@extends('layouts.app') @section('title', 'Reporte de Caja Chica por Cliente') @section('content')
Gestión de Expedientes Judiciales
Período: {{ $fechaDesde ? \Carbon\Carbon::parse($fechaDesde)->format('d/m/Y') : '—' }} al {{ $fechaHasta ? \Carbon\Carbon::parse($fechaHasta)->format('d/m/Y') : '—' }}
@endifGenerado el {{ now()->format('d/m/Y H:i') }}
| Cliente | DNI / RUC | Expedientes con Gastos | N° Registros | Total Gastos | Detalle |
|---|---|---|---|---|---|
| {{ $row['cliente']->nombre_completo }} | {{ $row['cliente']->dni_ruc ?? '—' }} | {{ $row['expedientes']->count() }} | {{ $row['gastos_directos']->count() + $row['expedientes']->sum(fn($e) => $e['gastos']->count()) }} | S/ {{ number_format($row['total'], 2) }} | Ver |
| TOTAL GENERAL: | S/ {{ number_format($totalGeneral, 2) }} | ||||
DNI/RUC: {{ $row['cliente']->dni_ruc }}
@endif| Fecha | Concepto | Categoría | Monto |
|---|---|---|---|
| {{ $gas->fecha->format('d/m/Y') }} | {{ $gas->concepto }} | {{ $gas->categoria }} | S/ {{ number_format($gas->monto, 2) }} |
| Subtotal: | S/ {{ number_format($expData['subtotal'], 2) }} | ||
| Fecha | Concepto | Categoría | Monto |
|---|---|---|---|
| {{ $gas->fecha->format('d/m/Y') }} | {{ $gas->concepto }} | {{ $gas->categoria }} | S/ {{ number_format($gas->monto, 2) }} |
No se encontraron gastos registrados para ningún cliente en el período seleccionado.
Ir al Registro de Gastos