@foreach ($languages as $lang) @php app()->setLocale($lang); @endphp @if ($invoiceConditions['isStudent']) @include('draft') @endif @isset($isInBulk)
@include('sales::invoices.template1.layout.header', $headerData) @endisset
@if ($invoice->description)
@lang('sales::invoice_template.description'):
{{ $invoice->description ?? '..................' }}
@endif @if ($invoice->notes)
@lang('sales::invoice_template.notes'):
{{ $invoice->notes ?? '..................' }}
@endif
@if ($formDesign->product_image) @endif @if($formDesign->product_description) @endif @if ($formDesign->unit) @endif @if ($formDesign->discount) @endif @if ($invoiceConditions['shouldDisplayProductVatAmount']) @endif @isset($invoice) @foreach ($invoice->invoiceDetails as $record) @if ($formDesign->product_image) @endif @if ($formDesign->product_description) @endif @if ($formDesign->unit) @endif @if ($formDesign->discount) @endif @if ($invoiceConditions['shouldDisplayProductVatAmount']) @endif @endforeach @endisset
@lang('products::product.Image')@lang('inventory::requisitions.products')@lang('sales::invoices.Description')@lang('sales::invoices.qty') @lang('sales::invoices.unit_price')@lang('settings::forms_design.unit')@lang('sales::invoices.discount')@lang('sales::invoices.vat') @lang('sales::invoices.vat_value')@lang('sales::invoices.Amount')
Product Image {{ $record->product->name }}
{{ $record->shortDescription }}
{{ number_format($record->quantity, 2, '.', ',') }} {{ number_format($record->price, 2, '.', ',') }}{{ $record->product->unit->name }}{{ number_format($record->discount, 2, '.', ',') }}{{ $record->tax ? $record->tax->percentage : 0 }} {{ number_format($record->vat_value, 2, '.', ',') }} {{ number_format($record->total_price, 2, '.', ',') }}

@if ($formDesign->discount)
@lang('sales::estimates.discount') :
@php $discountBase = $invoice->gross + $invoice->total_discount; @endphp {{ $discountBase != 0 ? number_format(($invoice->total_discount / $discountBase) * 100, 2, '.', ',') . ' %' : '0.00 %' }}
@lang('sales::estimates.discount amount') :
{{ number_format($invoice->total_discount, 2, '.', ',') }} {!! __('settings::currencies.' . (env('DEFAULT_CURRENCY_CODE'))) !!}
@endif
@lang('sales::invoices.gross without vat') :
{{ number_format(isset($invoice) ? $invoice->gross : 0, 2, '.', ',') }} {!! __('settings::currencies.' . (env('DEFAULT_CURRENCY_CODE'))) !!}
@lang('sales::invoices.total_vat') :
{{ number_format(isset($invoice) ? $invoice->total_vat : 0, 2, '.', ',') }} {!! __('settings::currencies.' . (env('DEFAULT_CURRENCY_CODE'))) !!}
@lang('sales::invoices.total_amount') :
{{ number_format(isset($invoice) ? $invoice->total : 0, 2, '.', ',') }} {!! __('settings::currencies.' . (env('DEFAULT_CURRENCY_CODE'))) !!}
@if (!$loop->last)
@endif @endforeach