@stack('company_logo_start') @if (!$hideCompanyLogo) @if (!empty($document->contact->logo) && !empty($document->contact->logo->id)) {{ $document->contact_name }} @else {{ setting('company.name') }} @endif @if (!$hideCompanyName) {{ setting('company.name') }} @endif @endif @stack('company_logo_end')
@stack('company_details_start') @if (!$hideCompanyDetails) @if (!$hideCompanyAddress) {!! nl2br(setting('company.address')) !!}

@endif @if (!$hideCompanyTaxNumber) @if (setting('company.tax_number')) {{ trans('general.tax_number') }}: {{ setting('company.tax_number') }} @endif

@endif @if (!$hideCompanyPhone) @if (setting('company.phone')) {{ setting('company.phone') }} @endif

@endif @if (!$hideCompanyEmail) {{ setting('company.email') }}

@endif @endif @stack('company_details_end')
@if (!$hideContactInfo) {{ trans($textContactInfo) }}
@endif @stack('name_input_start') @if (!$hideContactName) {{ $document->contact_name }}

@endif @stack('name_input_end') @stack('address_input_start') @if (!$hideContactAddress) {!! nl2br($document->contact_address) !!}

@endif @stack('address_input_end') @stack('tax_number_input_start') @if (!$hideContactTaxNumber) @if ($document->contact_tax_number) {{ trans('general.tax_number') }}: {{ $document->contact_tax_number }}

@endif @endif @stack('tax_number_input_end') @stack('phone_input_start') @if (!$hideContactPhone) @if ($document->contact_phone) {{ $document->contact_phone }}

@endif @endif @stack('phone_input_end') @stack('email_start') @if (!$hideContactEmail) {{ $document->contact_email }}

@endif @stack('email_input_end')
@stack('order_number_input_start') @if (!$hideOrderNumber) @if ($document->order_number) {{ trans($textOrderNumber) }}: {{ $document->order_number }}

@endif @endif @stack('order_number_input_end') @stack('invoice_number_input_start') @if (!$hideDocumentNumber) {{ trans($textDocumentNumber) }}: {{ $document->document_number }}

@endif @stack('invoice_number_input_end') @stack('issued_at_input_start') @if (!$hideIssuedAt) {{ trans($textIssuedAt) }}: @date($document->issued_at)

@endif @stack('issued_at_input_end') @stack('due_at_input_start') @if (!$hideDueAt) {{ trans($textDueAt) }}: @date($document->due_at) @endif @stack('due_at_input_end')
@stack('name_th_start') @if (!$hideItems || (!$hideName && !$hideDescription)) @endif @stack('name_th_end') @stack('quantity_th_start') @if (!$hideQuantity) @endif @stack('quantity_th_end') @stack('price_th_start') @if (!$hidePrice) @endif @stack('price_th_end') @if (!$hideDiscount) @if (in_array(setting('localisation.discount_location', 'total'), ['item', 'both'])) @stack('discount_td_start') @stack('discount_td_end') @endif @endif @stack('total_th_start') @if (!$hideAmount) @endif @stack('total_th_end') @if ($document->items->count()) @foreach($document->items as $item) @endforeach @else @endif
{{ (trans_choice($textItems, 2) != $textItems) ? trans_choice($textItems, 2) : trans($textItems) }}{{ trans($textQuantity) }}{{ trans($textPrice) }}{{ trans('invoices.discount') }}{{ trans($textAmount) }}
{{ trans('documents.empty_items') }}
@stack('notes_input_start') @if($hideNote) @if ($document->notes) {{ trans_choice('general.notes', 2) }}

{!! nl2br($document->notes) !!} @endif @endif @stack('notes_input_end')
@foreach ($document->totals_sorted as $total) @if ($total->code != 'total') @stack($total->code . '_total_tr_start') {{ trans($total->title) }}: @money($total->amount, $document->currency_code, true)

@stack($total->code . '_total_tr_end') @else @if ($document->paid) @stack('paid_total_tr_start') {{ trans('invoices.paid') }}: - @money($document->paid, $document->currency_code, true)

@stack('paid_total_tr_end') @endif @stack('grand_total_tr_start') {{ trans($total->name) }}: @money($total->amount - $document->paid, $document->currency_code, true) @stack('grand_total_tr_end') @endif @endforeach
@if (!$hideFooter) @if ($document->footer)
{!! nl2br($document->footer) !!}
@endif @endif