Numer KSeF: {{ $invoice['ksef_id'] }}
Data wystawienia: {{ $invoice['issue_date'] }}
Data sprzedaży od {{ $invoice['period_from'] }} do {{ $invoice['period_to'] }}
-- WIZUALIZACJA --
|
@php
foreach($invoice['invoice_subjects'] as $item){
if ($item['subject_type'] === 'buyer') {
$buyer = $item;
}
}
$addressBuyer = explode(',' , $buyer['address_line_1']);
$buyer['address_line_1'] = $addressBuyer[0];
$buyer['address_line_2'] = $addressBuyer[1] ?? '';
@endphp
Nabywca {{ $buyer['id_name'] }} {{ $buyer['address_line_1'] }} {{ $buyer['address_line_2'] }} @if (!empty($buyer['id_other'])) NIP {{ $buyer['prefix'] }}{{ $buyer['id_other'] }} @elseif(!empty($buyer['id_ue_vat'])) NIP {{ $buyer['prefix'] }}{{ $buyer['id_ue_vat'] }} @else NIP {{ $buyer['id_vat'] }} @endif |
@php
$third = null;
foreach($invoice['invoice_subjects'] as $item){
if ($item['subject_type'] === 'third') {
$third = $item;
}
}
if (!$third) {
$third = $buyer;
$third['address_line_1'] = $buyer['address_line_1'];
$third['address_line_2'] = $buyer['address_line_2'] ?? '';
} else {
$addressThird = explode(',' , $third['address_line_1']);
$third['address_line_1'] = $addressThird[0];
$third['address_line_2'] = $addressThird[1] ?? '';
}
@endphp
Odbiorca {{ $third['id_name'] }} {{ $third['address_line_1'] }} {{ $third['address_line_2'] }} @if (!empty($third['id_other'])) NIP {{ $third['prefix'] }}{{ $third['id_other'] }} @elseif(!empty($third['id_ue_vat'])) NIP {{ $third['prefix'] }}{{ $third['id_ue_vat'] }} @else NIP {{ $third['id_vat'] }} @endif |
Prosimy o podawanie numeru faktury w tytule przelewu.
| Lp | Nazwa | Cena jednostki netto | Ilość | Jedn. | VAT | Wartość netto | Wartość brutto | |
|---|---|---|---|---|---|---|---|---|
| {{ $i + 1 }} | {{ $item['p_7'] }} | {{ number_format($item['p_9a'], 2) }} | {{ $item['p_8b'] }} | {{ $item['p_8a'] }} | @if($item['np2'])NP | @else{{ $item['p_12'] }}% | @endif{{ number_format($item['p_11'], 2) }} | {{ number_format($item['p_11'] * (1 + $item['p_12'] / 100), 2) }} |
| Stawka VAT | Wartość Netto | Kwota Vat | Wartość Brutto | ||
|---|---|---|---|---|---|
| NP | @else{{ $invoice['invoice_positions'][0]['p_12'] }}% | @endif{{ number_format($netValue, 2, ',', ' ') }} | @if ($invoice['invoice_positions'][0]['np2'])NP | @else {{-- Kwota VAT = Brutto - Netto --}}{{ number_format($grossValue - $netValue, 2, ',', ' ') }} | @endif{{ number_format($grossValue, 2, ',', ' ') }} |
Odwrotne obciążenie
@endifDo zapłaty: {{ number_format($grossValue, 2, ',', ' ')}} PLN
Słownie: {{ $invoice['amount_due_words'] }}
Dział Obsługi Klienta: bok@actio.pl
Infolinia: 61 648 90 00