@if($invoice)
Factura Seleccionada:
Número: {{ $invoice->invoice_number }}
{{ $type === 'purchase' ? 'Proveedor' : 'Cliente' }}:
{{ $type === 'purchase' ? ($invoice->supplier->business_name ?? 'N/A') : ($invoice->client->business_name ?? 'N/A') }}
Fecha: {{ $invoice->invoice_date->format('d/m/Y') }}
Total: {{ number_format($invoice->total_amount, 2) }} {{ $invoice->currency ?? 'USD' }}
@endif