@extends('pdf.base') @section('title', 'Estado de Cuenta - ' . $user->name) @section('styles') @endsection @section('content')

Estado de Cuenta

{{ $user->name }} · Generado el {{ now()->format('d/m/Y') }}

👤 Información de la Cuenta
@if($user->phone) @endif
Nombre: {{ $user->name }}
Email: {{ $user->email }}
Teléfono: {{ $user->phone }}
Cuenta desde: {{ $user->created_at->format('d/m/Y') }}
Saldo Disponible
${{ number_format($wallet->balance ?? 0, 2) }}
{{ $currency ?? 'USD' }}
@if(isset($summary))
${{ number_format($summary['total_in'] ?? 0, 2) }} Total Ingresos
${{ number_format($summary['total_out'] ?? 0, 2) }} Total Egresos
{{ $summary['total_transactions'] ?? 0 }} Transacciones
@endif @if(isset($transactions) && count($transactions) > 0)
📋 Historial de Transacciones @if(isset($period)) · {{ $period }} @endif
@foreach($transactions as $transaction) @endforeach
Fecha Descripción Tipo Monto Saldo
{{ $transaction->created_at->format('d/m/Y') }} {{ $transaction->description }} {{ $transaction->type === 'credit' ? 'Ingreso' : 'Egreso' }} {{ $transaction->type === 'credit' ? '+' : '-' }}${{ number_format($transaction->amount, 2) }} ${{ number_format($transaction->balance_after ?? 0, 2) }}
@else

No hay transacciones registradas en este período.

@endif @if(isset($invoices) && count($invoices) > 0)
📄 Facturas del Período
@foreach($invoices as $invoice) @endforeach
Número Fecha Concepto Estado Total
{{ $invoice->invoice_number }} {{ $invoice->created_at->format('d/m/Y') }} {{ $invoice->subscription?->plan?->name ?? 'Servicio' }} {{ $invoice->status === 'paid' ? 'Pagada' : ($invoice->status === 'pending' ? 'Pendiente' : 'Cancelada') }} ${{ number_format($invoice->total, 2) }}
@endif @endsection