@inject('helperService', \App\Services\HelperService::class) @php $i = 0; @endphp Factura {{ $invoice->invoice_series }} {{ $invoice->invoice_no }}
{{ __('Provider') }}:

{{ Str::upper($invoice->brand_invoice_profile_name) }}

{{ __('Fiscal Code') }}: {{ $invoice->brand_invoice_profile_fiscal_code }}
{{ __('Chamber of Commerce Code') }}: {{ $invoice->brand_invoice_profile_chamber_of_commerce_code }}
{{ __('Address') }}: {{ $invoice->brand_invoice_profile_address }}, {{ $invoice->brand_invoice_profile_city }}
{{ __('Country') }}: {{ $invoice->brand_invoice_profile_country }}
{{ __('Bank') }}: {{ $invoice->brand_invoice_profile_bank }}
{{ __('Bank Account') }}: {{ $invoice->invoiceSeries->currency === 'EUR' ? $invoice->brand_invoice_profile_foreign_currency_bank_account : $invoice->brand_invoice_profile_bank_account }}
{{ __('SWIFT') }}: {{ $invoice->brand_invoice_profile_swift }}
{{ __('Client') }}:

{{ Str::upper($invoice->partner_name) }}

{{ __('Fiscal Code') }}: {{ $invoice->partner_fiscal_code }}
@if (!empty($invoice->partner_chamber_of_commerce_code))
{{ __('Chamber of Commerce Code') }}: {{ $invoice->partner_chamber_of_commerce_code }}
@endif
{{ __('Address') }}: {{ $invoice->partner_address }}
{{ __('Country') }}: {{ $invoice->partner_country }}
{{ __('Invoice') }}:

{{ $invoice->invoiceSeries->series }} {{ $invoice->number }}

{{ __('Issue Date') }}:

{{ Carbon\Carbon::parse($invoice->date)->format('d.m.Y') }}

@foreach ($invoice->invoice_services as $invoiceService) @endforeach
{{ __('No.') }} {{ __('Service') }} {{ __('Qty') }}
{{ __('Unit Price') }}
{{ __(' w/o VAT') }}
{{ __('Value') }} {!! __('VAT Value') !!}
{{ ++$i }} {{ $invoiceService['service_name'] }}
{{ $helperService->formatAsDecimal($invoiceService['service_quantity'], 2, ' ') }}
{{ __($invoiceService['service_measurement_unit']) }}
{{ $helperService->formatAsDecimal($invoiceService['unitary_service_price'], 2, ' ') }} {{ $helperService->formatAsDecimal($invoiceService['service_value'], 2, ' ') }} {{ $helperService->formatAsDecimal($invoiceService['service_vat_value'], 2, ' ') }}
{{ __('SUBTOTAL') }} {{ $helperService->formatAsDecimal($invoice->value_with_vat - $invoice->vat_value, 2, ' ') }} {{ $helperService->formatAsDecimal($invoice->vat_value, 2, ' ') }}
{{ __('TOTAL') }} {{ $helperService->formatAsDecimal($invoice->value_with_vat, 2, ' ') }}
{{ __('Issued by') }}: {{ Str::upper($invoice->user->last_name) }} {{ Str::upper($invoice->user->first_name) }}{{ isset($invoice->user->id_card_series) ? ', ' . Str::upper($invoice->user->id_card_series) : '' }}