{{ $companyInfo->name ?? '' }}

{{ $companyInfo->address ?? '' }}
{{ $companyInfo->society_email ?? '' }}
@if (isset($companyInfo->phone_code) && isset($companyInfo->phone)) {{ $companyInfo->phone_code }} {{ $companyInfo->phone }} @endif
@if ($companyInfo->ifu_number) {{ trans('invoice.pdf_invoice_ifu') }}: {{ $companyInfo->ifu_number ?? '' }}
@endif @if ($companyInfo->rccm_number) {{ trans('invoice.pdf_invoice_rccm') }}: {{ $companyInfo->rccm_number ?? '' }}
@endif

{{ trans('payment.pdf_acompte_payment_label') }} - {{ $advance->advance_number }}

{{ $invoice['invoice_date'] }}

@if ($logo) Logo @endif

{{ trans('invoice.to') }},
{!! $invoice->contact->full_name !!}
{!! $invoice->contact->first_address_infos !!}
{!! $invoice->contact->phones !!}

@foreach ($invoice['productsSaleElements'] as $key => $item) @endforeach
{{ trans('invoice.product') }} {{ trans('invoice.quantity') }} {{ trans('invoice.unit_price') }} {{ trans('invoice.discount') }} {{ trans('invoice.taxes') }} {{ trans('invoice.amount') }}
{{ $key + 1 }} {{ $item['name'] }} {{ $item['quantity'] }} {!! number_format($item['price']) !!} {!! $invoice->currency->symbol !!} @if ($item['discount_type'] === 'amount') {!! number_format($item['discount_value']) !!} {!! $invoice->currency->symbol !!} @endif @if ($item['discount_type'] === 'percent') {{ $item['discount_value'] }}% @endif {!! number_format($item['tax_amount_total']) !!} {!! $invoice->currency->symbol !!} {!! number_format($item['total_price_with_taxes']) !!} {!! $invoice->currency->symbol !!}
{{ trans('invoice.subtotal') }}
{!! number_format($invoice->sub_total, 2) !!} {!! $invoice->currency->symbol !!}
{{ trans('invoice.taxes') }}
{!! number_format($invoice->invoice_total_tax, 2) !!} {!! $invoice->currency->symbol !!}
{{ trans('invoice.total_ttc') }}
{!! number_format($invoice->total, 2) !!} {!! $invoice->currency->symbol !!}
{{ trans('invoice.discount') }}
{!! number_format($invoice->invoice_discount_value, 2) !!} {!! $invoice->currency->symbol !!}
Total
{!! number_format($invoice->total, 2) !!} {!! $invoice->currency->symbol !!}
{{ trans('payment.acompte_detail') }} {{ trans('payment.acompte') }}
{{ $advanceCount }} {{ trans('payment.acompte_number') }} {!! $advance->advance_number !!} {{ trans('payment.of') }} {!! $advance->percentage !!} % {!! $advance->amount !!} {!! $invoice->currency->symbol !!}

{{ trans('payment.remaining_amount') }} {!! $remainingAmount ?? 0 !!} {!! $invoice->currency->symbol !!}

{{ trans('invoice.condition_and_them') }}

{{ trans('invoice.payment_condition') }} : {{ $invoice?->paymentCondition->name }}

{{ trans('invoice.payment_type') }} : {{ $invoice?->paymentType->name }}