{{ Lang::get('invoice.show.customerTitle') }}

{{-- --}}
{{ Lang::get('invoice.show.customerName') }} {{ $invoice['company_name'] }} ({{ $invoice->company->customer_number }})
{{ Lang::get('invoice.show.customerStreet') }} {{ $invoice['company_address'] }}
{{ Lang::get('invoice.show.customerZip') }} {{ $invoice['company_zip'] }}, {{ $invoice['company_city'] }}
{{ Lang::get('invoice.show.customerCity') }} {{ $invoice['company_city'] }}
{{ Lang::get('invoice.show.customerEmail') }} {{ (!is_null($invoice['company_email']))?$invoice['company_email']:'' }}

{{ Lang::get('invoice.show.invoiceTitle') }}

@if(\App\Services\Billing\InvoiceElsewhere::showsPaymentDetails($invoice)) {{-- Invoice elsewhere (#254): this PDF is the invoice, paid to the Bankgiro with the OCR. Unpaid ordinary invoices only (#5507). --}} @endif
{{ Lang::get('invoice.show.invoiceNumber') }} {{ $invoice['number'] }}
{{ Lang::get('invoice.show.status') }} @if($invoice->status == Invoice::_get('statusTypes')['credit']) {{-- Invoice is a credit invoice --}} {{ Lang::get('invoice.sent') }} @elseif($invoice->isCredited()) {{-- Invoice is credited --}} {{ Lang::get('invoice.credited') }} ({{ $invoice->credited()->number }}) @elseif($invoice->isPaid()) {{-- Invoice is paid --}} {{ Lang::get('invoice.paid') }} ({{ $invoice->payments[0]->created_at->format('Y-m-d') }}) @else {{-- Invoice is not paid or part paid --}} {{ Lang::get('invoice.notPaid') }} @endif
{{ Lang::get('invoice.show.created') }} {{ $invoice['created_at']->format('Y-m-d') }}
{{ Lang::get('invoice.show.due') }} {{ $invoice['duedate']->format('Y-m-d') }}
{{ Lang::get('invoice.email.elsewhere.bankgiro') }} {{ $invoice['bankgiro'] }}
{{ Lang::get('invoice.show.ocr') }} {{ $invoice['ocr'] }}

{{ Lang::get('invoice.show.rowsTitle') }}

{{-- --}} @foreach($invoice->rows()->get()->toArray() as $key => $row) {{-- --}} @endforeach
{{ Lang::get('invoice.show.row.line') }} {{ Lang::get('invoice.show.row.description') }}{{ Lang::get('invoice.show.row.period') }}{{ Lang::get('invoice.show.row.items') }} {{ Lang::get('invoice.show.row.itemPrice') }} {{ Lang::get('invoice.show.row.total') }}
{{ ($key + 1) * 10 }} {{ $row['row_text'] }}{{ $row['period'] }}1 {{ formatNumber($row['price'], 2, ',', ' ') }} {{ formatNumber($row['price'], 2, ',', ' ') }}
@if($invoice->isPaid()) @endif {{ Lang::get('invoice.show.row.vat_rate') }} {{ $invoice['vat_rate'] * 100 }}% {{ formatNumber($invoice->vatTotal(), 2, ',', ' ') }}
{{ Lang::get('invoice.show.row.total') }} {{ formatNumber($invoice->totalWithVat(true), 2, ',', ' ') }}
@if($invoice->paid == 1)

Detta är ett underlag för bokföring och kommer markeras som betald efter att vi har mottagit betalningen. Detta kan ta upp till ett par dagar i vissa fall.

@elseif(!is_null($invoice->reference))

OBS: En PDF-faktura har skickats till den e-post som är registrerad hos oss. Detta är endast underlag för bokföring och kommer markeras som betald efter att vi har mottagit betalningen. Detta kan ta upp till ett par dagar.

@elseif(\App\Services\Billing\InvoiceElsewhere::showsPaymentDetails($invoice))

{{ Lang::get('invoice.email.elsewhere.pdfNote', ['bankgiro' => $invoice->bankgiro, 'ocr' => $invoice->ocr]) }}

@elseif(\App\Services\Billing\InvoiceElsewhere::appliesTo($invoice->company)) {{-- Credit note or credited invoice of an invoice-elsewhere account: nothing to pay, no note (#5507). --}} @else

OBS: Detta är inte din faktura, utan ditt fakturaunderlag. För att betala fakturan klickar du på fakturanumret, klickar sedan på BETALA knappen och väljer betalningsalternativ. När fakturan är betald kan du skriva ut den kvitterade fakturan som PDF.

@endif

{{-- Seller details a Swedish invoice needs, as on the Visma invoices (#6025). --}} Xile Software AB, Södra Förstadsgatan 24, 211 43 Malmö
Organisationsnr 559101-3452, Momsreg.nr SE559101345201, Godkänd för F-skatt
Telefon: 0728580444, E-post: info@xilesoftware.com, www.xilesoftware.com
Support och/eller frågor ang. Nuhet: support@nuhet.se