@if($invoice->tax_per_item) @else @endif @if($invoice->tax_per_item) @endif @if($invoice->discount_per_item) @endif @php $index = 1 @endphp @foreach ($invoice->items as $item) @if($invoice->tax_per_item) @endif @if($invoice->discount_per_item) @endif @php $index += 1 @endphp @endforeach
 Servicio  ServicioCantidad PrecioImpuestoDescuentoTotal
{{ preg_replace('/\((.*?)\)/i', '', $item->product->name)}}
{!! nl2br(htmlspecialchars($item->product->description)) !!}
{{ $item->quantity }}
{!! money($item->price, $invoice->currency_code)->format() !!} @foreach ($item->getTotalPercentageOfTaxesWithNames() as $key => $value) {{$key.''}}
@endforeach
{{ $item->discount_val }}% {!! money($item->total, $invoice->currency_code)->format() !!}

@if ($invoice->discount_per_item == false) @if($invoice->discount_val > 0) @endif @else @php $discount_val = $invoice->getItemsTotalDiscount() @endphp @if($discount_val > 0) @endif @endif @if ($currentCompany->getSetting('invoice_show_payments_on_pdf')) @if (count($invoice->payments) > 0) @foreach ($invoice->payments as $payment) @endforeach @endif @endif @if (count($invoice->payments) > 0) @endif

Subtotal

{!! money($invoice->total, $invoice->currency_code)->format() !!}

{{ __('messages.total') }}

{!! money($invoice->total, $invoice->currency_code)->format() !!}

{{ __('messages.discount') . ' (' . $invoice->discount_val . '%)' }}

- {!! money(($invoice->discount_val / 100) * $invoice->sub_total, $invoice->currency_code)->format() !!}

{{ __('messages.discount') }}

- {!! money($discount_val, $invoice->currency_code)->format() !!}

{{ $payment->payment_number }} ({{ $payment->payment_method->name ?? "-"}})

- {!! money($payment->amount, $payment->currency_code)->format() !!}

Saldo Pendiente

{!! money($invoice->due_amount, $invoice->currency_code)->format() !!}