{{-- The body of an offer for its client: shared by the PDF, the email and the page where the client answers. --}} @php use App\Support\DocumentTotals; @endphp
{{ $doc['supplier']['name'] }}
@if ($doc['supplier']['tax_id'])
ΑΦΜ: {{ $doc['supplier']['tax_id'] }}@if ($doc['supplier']['tax_office']) · ΔΟΥ {{ $doc['supplier']['tax_office'] }}@endif
@endif @if ($doc['supplier']['address'])
{{ $doc['supplier']['address'] }}
@endif @if ($doc['supplier']['phone'])
Τηλ.: {{ $doc['supplier']['phone'] }}
@endif @if ($doc['supplier']['email'])
{{ $doc['supplier']['email'] }}
@endif
Προσφορά {{ $doc['number'] }}
Ημερομηνία: {{ $doc['offer_date']?->format('d/m/Y') }}
@if ($doc['valid_until'])
Ισχύει έως: {{ $doc['valid_until']->format('d/m/Y') }}
@endif

Προς: {{ $doc['client']['name'] ?? '—' }}@if ($doc['client']['vat_number']) (ΑΦΜ {{ $doc['client']['vat_number'] }})@endif

@if ($doc['message'])

{!! nl2br(e($doc['message'])) !!}

@endif @foreach ($doc['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']) }}
Υποσύνολο{{ DocumentTotals::money($doc['subtotal']) }}
ΦΠΑ {{ rtrim(rtrim(number_format($doc['vat_percentage'], 2, ',', '.'), '0'), ',') }}%{{ DocumentTotals::money($doc['vat']) }}
Σύνολο{{ DocumentTotals::money($doc['total']) }}
@if ($doc['deposit_percentage'])

Προκαταβολή: {{ rtrim(rtrim(number_format($doc['deposit_percentage'], 2, ',', '.'), '0'), ',') }}% του συνόλου.

@endif