{{-- The body of a proforma for its client: shared by the PDF and the emails. --}} @php use App\Support\DocumentTotals; @endphp
{{ $p['supplier_name'] }}
@if ($p['supplier_tax_id'])
ΑΦΜ: {{ $p['supplier_tax_id'] }}
@endif @if ($p['supplier_contact']['address'])
{{ $p['supplier_contact']['address'] }}
@endif @if ($p['supplier_contact']['phone'])
Τηλ.: {{ $p['supplier_contact']['phone'] }}
@endif @if ($p['supplier_contact']['email'])
{{ $p['supplier_contact']['email'] }}
@endif
Proforma {{ $p['number'] }}@if ($p['status'] === 'cancelled') (ακυρώθηκε)@endif
Έκδοση: {{ $p['issued_on']?->format('d/m/Y') }}
@if ($p['due_on'])
Προθεσμία πληρωμής: {{ $p['due_on']->format('d/m/Y') }}
@endif

Προς: {{ $p['client_name'] ?? '—' }}@if ($p['client_vat_number']) (ΑΦΜ {{ $p['client_vat_number'] }})@endif

@foreach ($p['lines'] as $line) @endforeach
Προϊόν / Υπηρεσία Ποσότητα Τιμή / μονάδα Σύνολο
{{ $line['product'] }}@if ($line['description'])
{{ $line['description'] }}@endif
{{ $line['quantity'] }}@if ($line['unit']) {{ $line['unit'] }}@endif {{ DocumentTotals::money($line['unit_price']) }} {{ DocumentTotals::money($line['total']) }}
@if ($p['withholding'] > 0)@endif
Υποσύνολο{{ DocumentTotals::money($p['subtotal']) }}
ΦΠΑ {{ rtrim(rtrim(number_format($p['vat_percentage'], 2, ',', '.'), '0'), ',') }}%{{ DocumentTotals::money($p['vat']) }}
Παρακράτηση{{ DocumentTotals::money(-$p['withholding']) }}
Σύνολο γραμμών{{ DocumentTotals::money($p['total']) }}

Ποσό προς πληρωμή: {{ DocumentTotals::money($p['requested_amount']) }}

Πώς πληρώνετε
{!! nl2br(e($p['payment_instructions'])) !!}

@if ($p['notes'])

Σημειώσεις
{!! nl2br(e($p['notes'])) !!}

@endif

Το έγγραφο αυτό είναι προτιμολόγιο (proforma) και δεν αποτελεί φορολογικό παραστατικό.