@if(isset($settings['logo'])) Logo @else @endif
Sistema de Gestión para Entrenadores
{{ $invoice->invoice_number }}
Fecha: {{ $invoice->created_at->format('d/m/Y') }}
{{ $invoice->status === 'paid' ? 'Pagado' : ($invoice->status === 'pending' ? 'Pendiente' : 'Cancelado') }}
Datos del Cliente

{{ $invoice->user->name }}
{{ $invoice->user->email }}
@if($invoice->user->phone) Tel: {{ $invoice->user->phone }} @endif

Detalle de la Factura
@foreach($items as $item) @endforeach
Descripción Cantidad Precio Unit. Total
{{ $item['description'] }} {{ $item['quantity'] }} ${{ number_format($item['unit_price'], 2) }} ${{ number_format($item['total'], 2) }}
@if($invoice->taxes_applied && is_array($invoice->taxes_applied) && count($invoice->taxes_applied) > 0) @foreach($invoice->taxes_applied as $tax) @endforeach @else @endif
Subtotal: ${{ number_format($invoice->subtotal, 2) }}
{{ $tax['name'] }}{{ isset($tax['rate']) ? ' (' . $tax['rate'] . '%)' : '' }}: ${{ number_format($tax['amount'], 2) }}
Impuestos: ${{ number_format($invoice->tax, 2) }}
Total: ${{ number_format($invoice->total, 2) }}
@if($invoice->notes || !empty($settings['note']))
Notas
@if($invoice->notes)

{{ $invoice->notes }}

@endif @if(!empty($settings['note']))

{{ $settings['note'] }}

@endif
@endif